@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.
- package/demo/README.md +28 -0
- package/demo/default.html +34 -0
- package/demo/with-base.html +37 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/src/definitions/portal.d.ts +4 -0
- package/dist/cjs/src/definitions/portal.js +22 -18
- package/dist/cjs/src/functions/setBaseURL.js +12 -6
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +18 -0
- package/dist/cjs/src/generated/portal/index.js +5 -1
- package/dist/cjs/src/generated/portal/models/AdminUserLevelResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/AdminUserLevelResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/AdminUserResponseDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/AdminUserResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/AlbumImageResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/AlbumImageResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/CreateUpdateAdminUserRequestDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/CreateUpdateAdminUserRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/CreateUpdateAlbumRequestDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/CreateUpdateAlbumRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/CreateUpdateWaitlistRequestDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/DeleteAlbumImageRequestDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/DeleteAlbumImageRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/LandingPageAlbumResponseDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/LandingPageAlbumResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/LandingPageResponseDto.d.ts +23 -0
- package/dist/cjs/src/generated/portal/models/LandingPageResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PolicyDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +29 -0
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ReorderImageRequestDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/ReorderImageRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/TemplateResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/TemplateResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ThemeBannerImageResponseDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/ThemeBannerImageResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ThemeDesignResponseDto.d.ts +32 -0
- package/dist/cjs/src/generated/portal/models/ThemeDesignResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/UpdateImageUploadRequestDto.d.ts +2 -0
- package/dist/cjs/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.d.ts +18 -0
- package/dist/cjs/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/UpdateLandingPageRequestDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/UpdateLandingPageRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/UpdateThemeDesignRequestDto.d.ts +27 -0
- package/dist/cjs/src/generated/portal/models/UpdateThemeDesignRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +62 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.js +119 -0
- package/dist/cjs/src/generated/portal/services/FeaturesLandingPageService.d.ts +125 -0
- package/dist/cjs/src/generated/portal/services/FeaturesLandingPageService.js +248 -0
- package/dist/cjs/src/generated/portal/services/FeaturesProductsService.d.ts +29 -19
- package/dist/cjs/src/generated/portal/services/FeaturesProductsService.js +63 -43
- package/dist/cjs/src/generated/portal/services/SettingsService.d.ts +60 -4
- package/dist/cjs/src/generated/portal/services/SettingsService.js +118 -4
- package/dist/cjs/src/generated/portal/types.d.ts +16 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/scripts/build-all.js +18 -3
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/src/definitions/portal.d.ts +4 -0
- package/dist/esm/src/definitions/portal.js +4 -0
- package/dist/esm/src/functions/setBaseURL.js +15 -9
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +18 -0
- package/dist/esm/src/generated/portal/index.js +2 -0
- package/dist/esm/src/generated/portal/models/AdminUserLevelResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/AdminUserLevelResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/AdminUserResponseDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/AdminUserResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/AlbumImageResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/AlbumImageResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/CreateUpdateAdminUserRequestDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/CreateUpdateAdminUserRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/CreateUpdateAlbumRequestDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/CreateUpdateAlbumRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/CreateUpdateWaitlistRequestDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/DeleteAlbumImageRequestDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/DeleteAlbumImageRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/LandingPageAlbumResponseDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/LandingPageAlbumResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/LandingPageResponseDto.d.ts +23 -0
- package/dist/esm/src/generated/portal/models/LandingPageResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PolicyDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +29 -0
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ReorderImageRequestDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/ReorderImageRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/TemplateResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/TemplateResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ThemeBannerImageResponseDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/ThemeBannerImageResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ThemeDesignResponseDto.d.ts +32 -0
- package/dist/esm/src/generated/portal/models/ThemeDesignResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/UpdateImageUploadRequestDto.d.ts +2 -0
- package/dist/esm/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.d.ts +18 -0
- package/dist/esm/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/UpdateLandingPageRequestDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/UpdateLandingPageRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/UpdateThemeDesignRequestDto.d.ts +27 -0
- package/dist/esm/src/generated/portal/models/UpdateThemeDesignRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +62 -0
- package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.js +115 -0
- package/dist/esm/src/generated/portal/services/FeaturesLandingPageService.d.ts +125 -0
- package/dist/esm/src/generated/portal/services/FeaturesLandingPageService.js +244 -0
- package/dist/esm/src/generated/portal/services/FeaturesProductsService.d.ts +29 -19
- package/dist/esm/src/generated/portal/services/FeaturesProductsService.js +63 -43
- package/dist/esm/src/generated/portal/services/SettingsService.d.ts +60 -4
- package/dist/esm/src/generated/portal/services/SettingsService.js +118 -4
- package/dist/esm/src/generated/portal/types.d.ts +16 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/scripts/build-all.js +19 -4
- package/package.json +1 -1
- package/scripts/fix-import-extensions.mjs +50 -0
- package/src/definitions/portal.ts +4 -0
- package/src/functions/setBaseURL.ts +21 -14
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +18 -0
- package/src/generated/portal/models/AdminUserLevelResponseDto.ts +9 -0
- package/src/generated/portal/models/AdminUserResponseDto.ts +13 -0
- package/src/generated/portal/models/AlbumImageResponseDto.ts +9 -0
- package/src/generated/portal/models/CreateUpdateAdminUserRequestDto.ts +12 -0
- package/src/generated/portal/models/CreateUpdateAlbumRequestDto.ts +8 -0
- package/src/generated/portal/models/CreateUpdateWaitlistRequestDto.ts +1 -0
- package/src/generated/portal/models/DeleteAlbumImageRequestDto.ts +8 -0
- package/src/generated/portal/models/LandingPageAlbumResponseDto.ts +12 -0
- package/src/generated/portal/models/LandingPageResponseDto.ts +28 -0
- package/src/generated/portal/models/PolicyDto.ts +1 -1
- package/src/generated/portal/models/ProductDetailResponseDto.ts +34 -0
- package/src/generated/portal/models/ReorderImageRequestDto.ts +8 -0
- package/src/generated/portal/models/SettingsDetailsResponseDto.ts +1 -0
- package/src/generated/portal/models/TemplateResponseDto.ts +9 -0
- package/src/generated/portal/models/ThemeBannerImageResponseDto.ts +11 -0
- package/src/generated/portal/models/ThemeDesignResponseDto.ts +37 -0
- package/src/generated/portal/models/UpdateImageUploadRequestDto.ts +2 -0
- package/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.ts +23 -0
- package/src/generated/portal/models/UpdateLandingPageRequestDto.ts +13 -0
- package/src/generated/portal/models/UpdateThemeDesignRequestDto.ts +32 -0
- package/src/generated/portal/services/ClientToolsThemeBuilderService.ts +149 -0
- package/src/generated/portal/services/FeaturesLandingPageService.ts +299 -0
- package/src/generated/portal/services/FeaturesProductsService.ts +74 -50
- package/src/generated/portal/services/SettingsService.ts +140 -6
- package/src/generated/portal/types.ts +16 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/scripts/build-all.ts +26 -10
- package/test.ts +1 -1
|
@@ -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,244 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class FeaturesLandingPageService {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch the Landing Page details
|
|
6
|
+
* Fetch the Landing Page details
|
|
7
|
+
* @param xStudioId The ID of the studio
|
|
8
|
+
* @returns LandingPageResponseDto Landing Page details fetched successfully
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getLandingPage(xStudioId) {
|
|
12
|
+
return __request(OpenAPI, {
|
|
13
|
+
method: 'GET',
|
|
14
|
+
url: '/features/landing-page',
|
|
15
|
+
headers: {
|
|
16
|
+
'x-studio-id': xStudioId,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Update the Landing Page details
|
|
22
|
+
* Update the Landing Page details
|
|
23
|
+
* @param xStudioId The ID of the studio
|
|
24
|
+
* @param requestBody Payload to update Landing Page details
|
|
25
|
+
* @returns SuccessResponse Landing Page details updated successfully
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static updateLandingPageSettings(xStudioId, requestBody) {
|
|
29
|
+
return __request(OpenAPI, {
|
|
30
|
+
method: 'PUT',
|
|
31
|
+
url: '/features/landing-page',
|
|
32
|
+
headers: {
|
|
33
|
+
'x-studio-id': xStudioId,
|
|
34
|
+
},
|
|
35
|
+
body: requestBody,
|
|
36
|
+
mediaType: 'application/json',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Fetch the album details
|
|
41
|
+
* Fetch the album details
|
|
42
|
+
* @param xStudioId The ID of the studio
|
|
43
|
+
* @returns LandingPageAlbumResponseDto Albums fetched successfully
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static getAlbums(xStudioId) {
|
|
47
|
+
return __request(OpenAPI, {
|
|
48
|
+
method: 'GET',
|
|
49
|
+
url: '/features/landing-page/albums',
|
|
50
|
+
headers: {
|
|
51
|
+
'x-studio-id': xStudioId,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Fetch the album images
|
|
57
|
+
* Fetch the album images
|
|
58
|
+
* @param xStudioId The ID of the studio
|
|
59
|
+
* @param albumId The ID of the album
|
|
60
|
+
* @returns AlbumImageResponseDto Albums images fetched successfully
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
static getAlbumImages(xStudioId, albumId) {
|
|
64
|
+
return __request(OpenAPI, {
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/features/landing-page/{albumId}/images',
|
|
67
|
+
path: {
|
|
68
|
+
'albumId': albumId,
|
|
69
|
+
},
|
|
70
|
+
headers: {
|
|
71
|
+
'x-studio-id': xStudioId,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete the album images
|
|
77
|
+
* Delete the album images
|
|
78
|
+
* @param xStudioId The ID of the studio
|
|
79
|
+
* @param albumId
|
|
80
|
+
* @param requestBody
|
|
81
|
+
* @returns SuccessResponse Album images deleted successfully
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static deleteAlbumImages(xStudioId, albumId, requestBody) {
|
|
85
|
+
return __request(OpenAPI, {
|
|
86
|
+
method: 'DELETE',
|
|
87
|
+
url: '/features/landing-page/{albumId}/images',
|
|
88
|
+
path: {
|
|
89
|
+
'albumId': albumId,
|
|
90
|
+
},
|
|
91
|
+
headers: {
|
|
92
|
+
'x-studio-id': xStudioId,
|
|
93
|
+
},
|
|
94
|
+
body: requestBody,
|
|
95
|
+
mediaType: 'application/json',
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Create a new album
|
|
100
|
+
* Create a new album
|
|
101
|
+
* @param xStudioId The ID of the studio
|
|
102
|
+
* @param requestBody Payload to create a new album
|
|
103
|
+
* @returns number Album created successfully
|
|
104
|
+
* @throws ApiError
|
|
105
|
+
*/
|
|
106
|
+
static createAlbum(xStudioId, requestBody) {
|
|
107
|
+
return __request(OpenAPI, {
|
|
108
|
+
method: 'POST',
|
|
109
|
+
url: '/features/landing-page/album',
|
|
110
|
+
headers: {
|
|
111
|
+
'x-studio-id': xStudioId,
|
|
112
|
+
},
|
|
113
|
+
body: requestBody,
|
|
114
|
+
mediaType: 'application/json',
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Update the image order
|
|
119
|
+
* Update the image order
|
|
120
|
+
* @param xStudioId The ID of the studio
|
|
121
|
+
* @param requestBody Payload to update image order
|
|
122
|
+
* @returns SuccessResponse Image order updated successfully
|
|
123
|
+
* @throws ApiError
|
|
124
|
+
*/
|
|
125
|
+
static updateImageOrder(xStudioId, requestBody) {
|
|
126
|
+
return __request(OpenAPI, {
|
|
127
|
+
method: 'POST',
|
|
128
|
+
url: '/features/landing-page/reorder-images',
|
|
129
|
+
headers: {
|
|
130
|
+
'x-studio-id': xStudioId,
|
|
131
|
+
},
|
|
132
|
+
body: requestBody,
|
|
133
|
+
mediaType: 'application/json',
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Start image upload
|
|
138
|
+
* Start a new image upload for the given studio ID
|
|
139
|
+
* @param albumId The ID of the album
|
|
140
|
+
* @param xStudioId The ID of the studio
|
|
141
|
+
* @param requestBody Payload to start image upload
|
|
142
|
+
* @returns StartImageUploadResponseDto Image upload started successfully
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
static startImageUpload(albumId, xStudioId, requestBody) {
|
|
146
|
+
return __request(OpenAPI, {
|
|
147
|
+
method: 'POST',
|
|
148
|
+
url: '/features/landing-page/{albumId}/start-image-upload',
|
|
149
|
+
path: {
|
|
150
|
+
'albumId': albumId,
|
|
151
|
+
},
|
|
152
|
+
headers: {
|
|
153
|
+
'x-studio-id': xStudioId,
|
|
154
|
+
},
|
|
155
|
+
body: requestBody,
|
|
156
|
+
mediaType: 'application/json',
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Update image url for the album
|
|
161
|
+
* Update image url for the given album ID
|
|
162
|
+
* @param xStudioId The ID of the studio
|
|
163
|
+
* @param albumId The ID of the album
|
|
164
|
+
* @param requestBody Payload to update image url for album
|
|
165
|
+
* @returns SuccessResponse Image url updated successfully
|
|
166
|
+
* @throws ApiError
|
|
167
|
+
*/
|
|
168
|
+
static updateImageUrl(xStudioId, albumId, requestBody) {
|
|
169
|
+
return __request(OpenAPI, {
|
|
170
|
+
method: 'POST',
|
|
171
|
+
url: '/features/landing-page/{albumId}/update-image-url',
|
|
172
|
+
path: {
|
|
173
|
+
'albumId': albumId,
|
|
174
|
+
},
|
|
175
|
+
headers: {
|
|
176
|
+
'x-studio-id': xStudioId,
|
|
177
|
+
},
|
|
178
|
+
body: requestBody,
|
|
179
|
+
mediaType: 'application/json',
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Update the Landing Page settings
|
|
184
|
+
* Update the Landing Page settings
|
|
185
|
+
* @param xStudioId The ID of the studio
|
|
186
|
+
* @param requestBody Payload to update Landing Page settings
|
|
187
|
+
* @returns SuccessResponse Landing Page settings updated successfully
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
static updateLandingPageSettings1(xStudioId, requestBody) {
|
|
191
|
+
return __request(OpenAPI, {
|
|
192
|
+
method: 'PUT',
|
|
193
|
+
url: '/features/landing-page/settings',
|
|
194
|
+
headers: {
|
|
195
|
+
'x-studio-id': xStudioId,
|
|
196
|
+
},
|
|
197
|
+
body: requestBody,
|
|
198
|
+
mediaType: 'application/json',
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Update the album
|
|
203
|
+
* Update the album
|
|
204
|
+
* @param albumId
|
|
205
|
+
* @param xStudioId The ID of the studio
|
|
206
|
+
* @param requestBody Payload to update Landing Page settings
|
|
207
|
+
* @returns SuccessResponse Album updated successfully
|
|
208
|
+
* @throws ApiError
|
|
209
|
+
*/
|
|
210
|
+
static updateAlbum(albumId, xStudioId, requestBody) {
|
|
211
|
+
return __request(OpenAPI, {
|
|
212
|
+
method: 'PUT',
|
|
213
|
+
url: '/features/landing-page/{albumId}',
|
|
214
|
+
path: {
|
|
215
|
+
'albumId': albumId,
|
|
216
|
+
},
|
|
217
|
+
headers: {
|
|
218
|
+
'x-studio-id': xStudioId,
|
|
219
|
+
},
|
|
220
|
+
body: requestBody,
|
|
221
|
+
mediaType: 'application/json',
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Delete the album
|
|
226
|
+
* Delete the album
|
|
227
|
+
* @param albumId
|
|
228
|
+
* @param xStudioId The ID of the studio
|
|
229
|
+
* @returns SuccessResponse Album deleted successfully
|
|
230
|
+
* @throws ApiError
|
|
231
|
+
*/
|
|
232
|
+
static deleteAlbum(albumId, xStudioId) {
|
|
233
|
+
return __request(OpenAPI, {
|
|
234
|
+
method: 'DELETE',
|
|
235
|
+
url: '/features/landing-page/{albumId}',
|
|
236
|
+
path: {
|
|
237
|
+
'albumId': albumId,
|
|
238
|
+
},
|
|
239
|
+
headers: {
|
|
240
|
+
'x-studio-id': xStudioId,
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -5,6 +5,7 @@ import type { CreateUpdateProductRequestDto } from '../models/CreateUpdateProduc
|
|
|
5
5
|
import type { DeleteProductVariantRequestDto } from '../models/DeleteProductVariantRequestDto';
|
|
6
6
|
import type { DuplicateProductRequestDto } from '../models/DuplicateProductRequestDto';
|
|
7
7
|
import type { IconShowGroupResponseDto } from '../models/IconShowGroupResponseDto';
|
|
8
|
+
import type { ProductDetailResponseDto } from '../models/ProductDetailResponseDto';
|
|
8
9
|
import type { ProductListResponseDto } from '../models/ProductListResponseDto';
|
|
9
10
|
import type { ProductRecipientResponseDto } from '../models/ProductRecipientResponseDto';
|
|
10
11
|
import type { ProductSalesResponseDto } from '../models/ProductSalesResponseDto';
|
|
@@ -68,6 +69,34 @@ export declare class FeaturesProductsService {
|
|
|
68
69
|
* @throws ApiError
|
|
69
70
|
*/
|
|
70
71
|
static createServiceAgreement(xStudioId: string, requestBody: createServiceAgreementRequestDto): CancelablePromise<SuccessResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Fetch the product details
|
|
74
|
+
* Fetch the sales of details
|
|
75
|
+
* @param xStudioId The ID of the studio
|
|
76
|
+
* @param productId The ID of the product
|
|
77
|
+
* @returns ProductDetailResponseDto Product details fetched successfully
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static getProductDetails(xStudioId: string, productId: string): CancelablePromise<ProductDetailResponseDto>;
|
|
81
|
+
/**
|
|
82
|
+
* Update the product
|
|
83
|
+
* Update the product for the given product ID
|
|
84
|
+
* @param xStudioId The ID of the studio
|
|
85
|
+
* @param productId
|
|
86
|
+
* @param requestBody Payload to update product
|
|
87
|
+
* @returns SuccessResponse Product updated successfully
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
static updateProduct(xStudioId: string, productId: string, requestBody: CreateUpdateProductRequestDto): CancelablePromise<SuccessResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Delete the product
|
|
93
|
+
* Delete the product for the given product ID
|
|
94
|
+
* @param xStudioId The ID of the studio
|
|
95
|
+
* @param productId
|
|
96
|
+
* @returns SuccessResponse Product deleted successfully
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static deleteProduct(xStudioId: string, productId: string): CancelablePromise<SuccessResponse>;
|
|
71
100
|
/**
|
|
72
101
|
* Fetch the product recipients
|
|
73
102
|
* Fetch the recipients of product
|
|
@@ -144,25 +173,6 @@ export declare class FeaturesProductsService {
|
|
|
144
173
|
* @throws ApiError
|
|
145
174
|
*/
|
|
146
175
|
static updateVariant(xStudioId: string, productId: string, requestBody: UpdateProductVariantRequestDto): CancelablePromise<SuccessResponse>;
|
|
147
|
-
/**
|
|
148
|
-
* Update the product
|
|
149
|
-
* Update the product for the given product ID
|
|
150
|
-
* @param xStudioId The ID of the studio
|
|
151
|
-
* @param productId
|
|
152
|
-
* @param requestBody Payload to update product
|
|
153
|
-
* @returns SuccessResponse Product updated successfully
|
|
154
|
-
* @throws ApiError
|
|
155
|
-
*/
|
|
156
|
-
static updateProduct(xStudioId: string, productId: string, requestBody: CreateUpdateProductRequestDto): CancelablePromise<SuccessResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* Delete the product
|
|
159
|
-
* Delete the product for the given product ID
|
|
160
|
-
* @param xStudioId The ID of the studio
|
|
161
|
-
* @param productId
|
|
162
|
-
* @returns SuccessResponse Product deleted successfully
|
|
163
|
-
* @throws ApiError
|
|
164
|
-
*/
|
|
165
|
-
static deleteProduct(xStudioId: string, productId: string): CancelablePromise<SuccessResponse>;
|
|
166
176
|
/**
|
|
167
177
|
* Delete the product
|
|
168
178
|
* Delete the product for the given product ID
|
|
@@ -107,6 +107,69 @@ export class FeaturesProductsService {
|
|
|
107
107
|
mediaType: 'application/json',
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Fetch the product details
|
|
112
|
+
* Fetch the sales of details
|
|
113
|
+
* @param xStudioId The ID of the studio
|
|
114
|
+
* @param productId The ID of the product
|
|
115
|
+
* @returns ProductDetailResponseDto Product details fetched successfully
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
static getProductDetails(xStudioId, productId) {
|
|
119
|
+
return __request(OpenAPI, {
|
|
120
|
+
method: 'GET',
|
|
121
|
+
url: '/features/products/{productId}',
|
|
122
|
+
path: {
|
|
123
|
+
'productId': productId,
|
|
124
|
+
},
|
|
125
|
+
headers: {
|
|
126
|
+
'x-studio-id': xStudioId,
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Update the product
|
|
132
|
+
* Update the product for the given product ID
|
|
133
|
+
* @param xStudioId The ID of the studio
|
|
134
|
+
* @param productId
|
|
135
|
+
* @param requestBody Payload to update product
|
|
136
|
+
* @returns SuccessResponse Product updated successfully
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
static updateProduct(xStudioId, productId, requestBody) {
|
|
140
|
+
return __request(OpenAPI, {
|
|
141
|
+
method: 'PUT',
|
|
142
|
+
url: '/features/products/{productId}',
|
|
143
|
+
path: {
|
|
144
|
+
'productId': productId,
|
|
145
|
+
},
|
|
146
|
+
headers: {
|
|
147
|
+
'x-studio-id': xStudioId,
|
|
148
|
+
},
|
|
149
|
+
body: requestBody,
|
|
150
|
+
mediaType: 'application/json',
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Delete the product
|
|
155
|
+
* Delete the product for the given product ID
|
|
156
|
+
* @param xStudioId The ID of the studio
|
|
157
|
+
* @param productId
|
|
158
|
+
* @returns SuccessResponse Product deleted successfully
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static deleteProduct(xStudioId, productId) {
|
|
162
|
+
return __request(OpenAPI, {
|
|
163
|
+
method: 'DELETE',
|
|
164
|
+
url: '/features/products/{productId}',
|
|
165
|
+
path: {
|
|
166
|
+
'productId': productId,
|
|
167
|
+
},
|
|
168
|
+
headers: {
|
|
169
|
+
'x-studio-id': xStudioId,
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
}
|
|
110
173
|
/**
|
|
111
174
|
* Fetch the product recipients
|
|
112
175
|
* Fetch the recipients of product
|
|
@@ -277,49 +340,6 @@ export class FeaturesProductsService {
|
|
|
277
340
|
mediaType: 'application/json',
|
|
278
341
|
});
|
|
279
342
|
}
|
|
280
|
-
/**
|
|
281
|
-
* Update the product
|
|
282
|
-
* Update the product for the given product ID
|
|
283
|
-
* @param xStudioId The ID of the studio
|
|
284
|
-
* @param productId
|
|
285
|
-
* @param requestBody Payload to update product
|
|
286
|
-
* @returns SuccessResponse Product updated successfully
|
|
287
|
-
* @throws ApiError
|
|
288
|
-
*/
|
|
289
|
-
static updateProduct(xStudioId, productId, requestBody) {
|
|
290
|
-
return __request(OpenAPI, {
|
|
291
|
-
method: 'PUT',
|
|
292
|
-
url: '/features/products/{productId}',
|
|
293
|
-
path: {
|
|
294
|
-
'productId': productId,
|
|
295
|
-
},
|
|
296
|
-
headers: {
|
|
297
|
-
'x-studio-id': xStudioId,
|
|
298
|
-
},
|
|
299
|
-
body: requestBody,
|
|
300
|
-
mediaType: 'application/json',
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Delete the product
|
|
305
|
-
* Delete the product for the given product ID
|
|
306
|
-
* @param xStudioId The ID of the studio
|
|
307
|
-
* @param productId
|
|
308
|
-
* @returns SuccessResponse Product deleted successfully
|
|
309
|
-
* @throws ApiError
|
|
310
|
-
*/
|
|
311
|
-
static deleteProduct(xStudioId, productId) {
|
|
312
|
-
return __request(OpenAPI, {
|
|
313
|
-
method: 'DELETE',
|
|
314
|
-
url: '/features/products/{productId}',
|
|
315
|
-
path: {
|
|
316
|
-
'productId': productId,
|
|
317
|
-
},
|
|
318
|
-
headers: {
|
|
319
|
-
'x-studio-id': xStudioId,
|
|
320
|
-
},
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
343
|
/**
|
|
324
344
|
* Delete the product
|
|
325
345
|
* Delete the product for the given product ID
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { AdminUserLevelResponseDto } from '../models/AdminUserLevelResponseDto';
|
|
2
|
+
import type { AdminUserResponseDto } from '../models/AdminUserResponseDto';
|
|
3
|
+
import type { CreateUpdateAdminUserRequestDto } from '../models/CreateUpdateAdminUserRequestDto';
|
|
1
4
|
import type { MessageSettingResponseDto } from '../models/MessageSettingResponseDto';
|
|
2
5
|
import type { NotificationSettingRequestDto } from '../models/NotificationSettingRequestDto';
|
|
3
6
|
import type { NotificationSettingsResponseDto } from '../models/NotificationSettingsResponseDto';
|
|
@@ -52,14 +55,48 @@ export declare class SettingsService {
|
|
|
52
55
|
*/
|
|
53
56
|
static getMessages(xStudioId: string): CancelablePromise<MessageSettingResponseDto>;
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
58
|
+
* Fetch the Users
|
|
59
|
+
* To fetch the Users and details
|
|
60
|
+
* @param xStudioId The ID of the studio
|
|
61
|
+
* @returns AdminUserResponseDto Users fetched successfully
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static getUsers(xStudioId: string): CancelablePromise<Array<AdminUserResponseDto>>;
|
|
65
|
+
/**
|
|
66
|
+
* Fetch the Users login level
|
|
67
|
+
* To fetch the Users login level details
|
|
68
|
+
* @param xStudioId The ID of the studio
|
|
69
|
+
* @returns AdminUserLevelResponseDto Users fetched successfully
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static getUsersLoginLevels(xStudioId: string): CancelablePromise<Array<AdminUserLevelResponseDto>>;
|
|
73
|
+
/**
|
|
74
|
+
* Fetch the Users login level
|
|
75
|
+
* To fetch the Users login level details
|
|
76
|
+
* @param xStudioId The ID of the studio
|
|
77
|
+
* @param loginId The value of the login ID
|
|
78
|
+
* @returns AdminUserLevelResponseDto Users fetched successfully
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static getUsersLoginDetails(xStudioId: string, loginId: string): CancelablePromise<AdminUserLevelResponseDto>;
|
|
82
|
+
/**
|
|
83
|
+
* Create the Users login
|
|
84
|
+
* To create a new Users login
|
|
85
|
+
* @param xStudioId The ID of the studio
|
|
86
|
+
* @param requestBody User login details to be created
|
|
87
|
+
* @returns SuccessResponse User login created successfully
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
static createUserLogin(xStudioId: string, requestBody: CreateUpdateAdminUserRequestDto): CancelablePromise<SuccessResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Update the logged in user's studio settings
|
|
56
93
|
* Updates the studio setting for the logged in user
|
|
57
94
|
* @param xStudioId The ID of the studio
|
|
58
95
|
* @param requestBody Studio settings to be updated
|
|
59
|
-
* @returns SuccessResponse Studio
|
|
96
|
+
* @returns SuccessResponse Studio settings Updated successfully
|
|
60
97
|
* @throws ApiError
|
|
61
98
|
*/
|
|
62
|
-
static
|
|
99
|
+
static updateStudioSettings(xStudioId: string, requestBody: UpdateStudioSettingsRequestDto): CancelablePromise<SuccessResponse>;
|
|
63
100
|
/**
|
|
64
101
|
* Update the notification settings
|
|
65
102
|
* Updates the notification settings for the logged in user
|
|
@@ -86,7 +123,7 @@ export declare class SettingsService {
|
|
|
86
123
|
* @returns SuccessResponse Policy Settings Updated successfully
|
|
87
124
|
* @throws ApiError
|
|
88
125
|
*/
|
|
89
|
-
static updatePolicySettings(xStudioId: string, requestBody:
|
|
126
|
+
static updatePolicySettings(xStudioId: string, requestBody: PolicyRequestDto): CancelablePromise<SuccessResponse>;
|
|
90
127
|
/**
|
|
91
128
|
* Update the Message settings
|
|
92
129
|
* Updates the Message settings for the logged in user
|
|
@@ -96,4 +133,23 @@ export declare class SettingsService {
|
|
|
96
133
|
* @throws ApiError
|
|
97
134
|
*/
|
|
98
135
|
static updateMessageSettings(xStudioId: string, requestBody: UpdateMessageRequestDto): CancelablePromise<SuccessResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Update the Users login
|
|
138
|
+
* To update a Users login
|
|
139
|
+
* @param xStudioId The ID of the studio
|
|
140
|
+
* @param loginId The value of the login ID
|
|
141
|
+
* @param requestBody User login details to be updated
|
|
142
|
+
* @returns SuccessResponse User login updated successfully
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
static updateUserLogin(xStudioId: string, loginId: string, requestBody: CreateUpdateAdminUserRequestDto): CancelablePromise<SuccessResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* Delete the Users login
|
|
148
|
+
* To delete a Users login
|
|
149
|
+
* @param xStudioId The ID of the studio
|
|
150
|
+
* @param loginId The value of the login ID
|
|
151
|
+
* @returns SuccessResponse User login deleted successfully
|
|
152
|
+
* @throws ApiError
|
|
153
|
+
*/
|
|
154
|
+
static deleteUserLogin(xStudioId: string, loginId: string): CancelablePromise<SuccessResponse>;
|
|
99
155
|
}
|