@gofynd/fdk-client-javascript 1.3.6-beta.1 → 1.3.6

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 (76) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationConfig.d.ts +11 -3
  4. package/sdk/application/ApplicationConfig.js +21 -3
  5. package/sdk/application/Cart/CartApplicationClient.js +228 -113
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +244 -121
  7. package/sdk/application/Common/CommonApplicationClient.js +20 -9
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +28 -13
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.js +132 -65
  10. package/sdk/application/Content/ContentApplicationClient.js +156 -77
  11. package/sdk/application/FileStorage/FileStorageApplicationClient.js +28 -13
  12. package/sdk/application/Lead/LeadApplicationClient.js +60 -29
  13. package/sdk/application/Logistic/LogisticApplicationClient.js +44 -21
  14. package/sdk/application/Order/OrderApplicationClient.js +100 -49
  15. package/sdk/application/Payment/PaymentApplicationClient.js +340 -169
  16. package/sdk/application/PosCart/PosCartApplicationClient.js +220 -109
  17. package/sdk/application/Rewards/RewardsApplicationClient.js +60 -29
  18. package/sdk/application/Share/ShareApplicationClient.js +60 -29
  19. package/sdk/application/Theme/ThemeApplicationClient.js +36 -17
  20. package/sdk/application/User/UserApplicationClient.js +324 -161
  21. package/sdk/common/AxiosHelper.js +3 -3
  22. package/sdk/common/FDKError.d.ts +4 -0
  23. package/sdk/common/FDKError.js +9 -0
  24. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +16 -40
  25. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +160 -38
  26. package/sdk/partner/PartnerConfig.d.ts +10 -0
  27. package/sdk/partner/PartnerConfig.js +10 -1
  28. package/sdk/partner/Theme/ThemePartnerClient.d.ts +96 -199
  29. package/sdk/partner/Theme/ThemePartnerClient.js +935 -170
  30. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +36 -17
  31. package/sdk/platform/Billing/BillingPlatformClient.js +140 -69
  32. package/sdk/platform/Cart/CartPlatformApplicationClient.js +456 -228
  33. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +512 -256
  34. package/sdk/platform/Catalog/CatalogPlatformClient.js +620 -309
  35. package/sdk/platform/Common/CommonPlatformClient.js +20 -9
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +472 -236
  37. package/sdk/platform/Communication/CommunicationPlatformClient.js +12 -5
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +14 -1
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +16 -0
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +116 -57
  41. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +256 -128
  42. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +148 -73
  43. package/sdk/platform/Content/ContentPlatformApplicationClient.js +552 -276
  44. package/sdk/platform/Discount/DiscountPlatformClient.js +92 -45
  45. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +88 -44
  46. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +52 -25
  47. package/sdk/platform/Finance/FinancePlatformClient.js +196 -97
  48. package/sdk/platform/Inventory/InventoryPlatformClient.js +100 -49
  49. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +104 -52
  50. package/sdk/platform/Lead/LeadPlatformClient.js +92 -45
  51. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +26 -0
  52. package/sdk/platform/Order/OrderPlatformApplicationClient.js +239 -5
  53. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +57 -1
  54. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +55 -0
  55. package/sdk/platform/Order/OrderPlatformClient.js +356 -177
  56. package/sdk/platform/Order/OrderPlatformModel.d.ts +44 -5
  57. package/sdk/platform/Order/OrderPlatformModel.js +52 -4
  58. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +16 -8
  59. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +336 -168
  60. package/sdk/platform/Payment/PaymentPlatformClient.js +84 -41
  61. package/sdk/platform/PlatformConfig.d.ts +10 -0
  62. package/sdk/platform/PlatformConfig.js +10 -1
  63. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +96 -48
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +112 -56
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +148 -73
  66. package/sdk/platform/Share/SharePlatformApplicationClient.js +40 -20
  67. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +224 -112
  68. package/sdk/platform/Theme/ThemePlatformClient.js +28 -13
  69. package/sdk/platform/User/UserPlatformApplicationClient.js +144 -72
  70. package/sdk/platform/Webhook/WebhookPlatformClient.js +132 -65
  71. package/sdk/public/Configuration/ConfigurationPublicClient.js +20 -9
  72. package/sdk/public/Inventory/InventoryPublicClient.js +52 -25
  73. package/sdk/public/Partner/PartnerPublicClient.js +12 -5
  74. package/sdk/public/PublicConfig.d.ts +11 -1
  75. package/sdk/public/PublicConfig.js +10 -1
  76. package/sdk/public/Webhook/WebhookPublicClient.js +20 -9
@@ -3,297 +3,194 @@ declare class Theme {
3
3
  constructor(config: any);
4
4
  config: any;
5
5
  /**
6
- * @param {Object} arg - Arg object.
7
- * @param {number} arg.companyId - Company ID
8
- * @param {string} arg.applicationId - Application ID
9
- * @param {string} arg.themeId - ID of the theme to be retrieved
6
+ * @param {ThemePartnerValidator.GetAllPagesParam} arg - Arg object.
10
7
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
11
8
  * @param {import("../PartnerAPIClient").Options} - Options
9
+ * @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
10
+ * @name getAllPages
12
11
  * @summary: Get all pages of a theme
13
- * @description: Use this API to retrieve all the available pages of a theme by its ID.
12
+ * @description: Use this API to retrieve all the available pages of a theme by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getAllPages/).
14
13
  */
15
- getAllPages({ companyId, applicationId, themeId, requestHeaders }?: {
16
- companyId: number;
17
- applicationId: string;
18
- themeId: string;
19
- requestHeaders?: object;
20
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
14
+ getAllPages({ companyId, applicationId, themeId, requestHeaders }?: ThemePartnerValidator.GetAllPagesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AllAvailablePageSchema>;
21
15
  /**
22
- * @param {Object} arg - Arg object.
23
- * @param {number} arg.companyId - Company ID
24
- * @param {string} arg.applicationId - Application ID
25
- * @param {string} arg.themeId - ID of the theme
26
- * @param {AvailablePageSchema} arg.body
16
+ * @param {ThemePartnerValidator.CreatePageParam} arg - Arg object.
27
17
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
18
  * @param {import("../PartnerAPIClient").Options} - Options
19
+ * @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
20
+ * @name createPage
29
21
  * @summary: Create a page
30
- * @description: Use this API to create a page for a theme by its ID.
22
+ * @description: Use this API to create a page for a theme by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createPage/).
31
23
  */
32
- createPage({ companyId, applicationId, themeId, body, requestHeaders }?: {
33
- companyId: number;
34
- applicationId: string;
35
- themeId: string;
36
- body: AvailablePageSchema;
37
- requestHeaders?: object;
38
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
24
+ createPage({ companyId, applicationId, themeId, body, requestHeaders }?: ThemePartnerValidator.CreatePageParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AvailablePageSchema>;
39
25
  /**
40
- * @param {Object} arg - Arg object.
41
- * @param {number} arg.companyId - Company ID
42
- * @param {string} arg.applicationId - Application ID
43
- * @param {string} arg.themeId - ID of the theme to be retrieved
44
- * @param {AllAvailablePageSchema} arg.body
26
+ * @param {ThemePartnerValidator.UpdateMultiplePagesParam} arg - Arg object.
45
27
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
46
28
  * @param {import("../PartnerAPIClient").Options} - Options
29
+ * @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
30
+ * @name updateMultiplePages
47
31
  * @summary: Update multiple pages of a theme
48
- * @description: Use this API to update multiple pages of a theme by its ID.
32
+ * @description: Use this API to update multiple pages of a theme by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/updateMultiplePages/).
49
33
  */
50
- updateMultiplePages({ companyId, applicationId, themeId, body, requestHeaders }?: {
51
- companyId: number;
52
- applicationId: string;
53
- themeId: string;
54
- body: AllAvailablePageSchema;
55
- requestHeaders?: object;
56
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
34
+ updateMultiplePages({ companyId, applicationId, themeId, body, requestHeaders }?: ThemePartnerValidator.UpdateMultiplePagesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AllAvailablePageSchema>;
57
35
  /**
58
- * @param {Object} arg - Arg object.
59
- * @param {number} arg.companyId - Company ID
60
- * @param {string} arg.applicationId - Application ID
61
- * @param {string} arg.themeId - ID of the theme to be retrieved
62
- * @param {string} arg.pageValue - Value of the page to be retrieved
36
+ * @param {ThemePartnerValidator.GetPageParam} arg - Arg object.
63
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
64
38
  * @param {import("../PartnerAPIClient").Options} - Options
39
+ * @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
40
+ * @name getPage
65
41
  * @summary: Get page of a theme
66
- * @description: Use this API to retrieve a page of a theme.
42
+ * @description: Use this API to retrieve a page of a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getPage/).
67
43
  */
68
- getPage({ companyId, applicationId, themeId, pageValue, requestHeaders }?: {
69
- companyId: number;
70
- applicationId: string;
71
- themeId: string;
72
- pageValue: string;
73
- requestHeaders?: object;
74
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
44
+ getPage({ companyId, applicationId, themeId, pageValue, requestHeaders }?: ThemePartnerValidator.GetPageParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AvailablePageSchema>;
75
45
  /**
76
- * @param {Object} arg - Arg object.
77
- * @param {number} arg.companyId - Company ID
78
- * @param {string} arg.applicationId - Application ID
79
- * @param {string} arg.themeId - ID of the theme
80
- * @param {string} arg.pageValue - Value of the page to be updated
81
- * @param {AvailablePageSchema} arg.body
46
+ * @param {ThemePartnerValidator.UpdatePageParam} arg - Arg object.
82
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
83
48
  * @param {import("../PartnerAPIClient").Options} - Options
49
+ * @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
50
+ * @name updatePage
84
51
  * @summary: Updates a page
85
- * @description: Use this API to update a page for a theme by its ID.
52
+ * @description: Use this API to update a page for a theme by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/updatePage/).
86
53
  */
87
- updatePage({ companyId, applicationId, themeId, pageValue, body, requestHeaders }?: {
88
- companyId: number;
89
- applicationId: string;
90
- themeId: string;
91
- pageValue: string;
92
- body: AvailablePageSchema;
93
- requestHeaders?: object;
94
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
54
+ updatePage({ companyId, applicationId, themeId, pageValue, body, requestHeaders }?: ThemePartnerValidator.UpdatePageParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AvailablePageSchema>;
95
55
  /**
96
- * @param {Object} arg - Arg object.
97
- * @param {number} arg.companyId - Company ID
98
- * @param {string} arg.applicationId - Application ID
99
- * @param {string} arg.themeId - ID of the theme
100
- * @param {string} arg.pageValue - Value of the page to be updated
56
+ * @param {ThemePartnerValidator.DeletePageParam} arg - Arg object.
101
57
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
102
58
  * @param {import("../PartnerAPIClient").Options} - Options
59
+ * @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
60
+ * @name deletePage
103
61
  * @summary: Deletes a page
104
- * @description: Use this API to delete a page for a theme by its ID and page_value.
62
+ * @description: Use this API to delete a page for a theme by its ID and page_value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/deletePage/).
105
63
  */
106
- deletePage({ companyId, applicationId, themeId, pageValue, requestHeaders }?: {
107
- companyId: number;
108
- applicationId: string;
109
- themeId: string;
110
- pageValue: string;
111
- requestHeaders?: object;
112
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
64
+ deletePage({ companyId, applicationId, themeId, pageValue, requestHeaders }?: ThemePartnerValidator.DeletePageParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AvailablePageSchema>;
113
65
  /**
114
- * @param {Object} arg - Arg object.
115
- * @param {number} arg.companyId - The ID of the company
116
- * @param {string} arg.applicationId - The ID of the application
66
+ * @param {ThemePartnerValidator.GetApplicationThemesParam} arg - Arg object.
117
67
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
118
68
  * @param {import("../PartnerAPIClient").Options} - Options
69
+ * @returns {Promise<ThemePartnerModel.ThemesSchema[]>} - Success response
70
+ * @name getApplicationThemes
119
71
  * @summary: Get all the themes for a specific application
120
- * @description: Use this API to get list of theme
72
+ * @description: Use this API to get list of theme - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getApplicationThemes/).
121
73
  */
122
- getApplicationThemes({ companyId, applicationId, requestHeaders }?: {
123
- companyId: number;
124
- applicationId: string;
125
- requestHeaders?: object;
126
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
74
+ getApplicationThemes({ companyId, applicationId, requestHeaders }?: ThemePartnerValidator.GetApplicationThemesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema[]>;
127
75
  /**
128
- * @param {Object} arg - Arg object.
129
- * @param {number} arg.companyId - The ID of the company
130
- * @param {string} arg.applicationId - The ID of the application
131
- * @param {string} arg.themeId - The ID of the theme
76
+ * @param {ThemePartnerValidator.GetThemeByIdParam} arg - Arg object.
132
77
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
133
78
  * @param {import("../PartnerAPIClient").Options} - Options
79
+ * @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
80
+ * @name getThemeById
134
81
  * @summary: Get Theme By Theme Id
135
- * @description: Use this API to get theme details
82
+ * @description: Use this API to get theme details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeById/).
136
83
  */
137
- getThemeById({ companyId, applicationId, themeId, requestHeaders }?: {
138
- companyId: number;
139
- applicationId: string;
140
- themeId: string;
141
- requestHeaders?: object;
142
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
84
+ getThemeById({ companyId, applicationId, themeId, requestHeaders }?: ThemePartnerValidator.GetThemeByIdParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
143
85
  /**
144
- * @param {Object} arg - Arg object.
145
- * @param {number} arg.companyId - The ID of the company.
146
- * @param {string} arg.applicationId - The ID of the application.
147
- * @param {string} arg.themeId - The ID of the theme.
148
- * @param {UpdateThemeRequestBody} arg.body
86
+ * @param {ThemePartnerValidator.UpdateThemeParam} arg - Arg object.
149
87
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
150
88
  * @param {import("../PartnerAPIClient").Options} - Options
89
+ * @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
90
+ * @name updateTheme
151
91
  * @summary: Update theme for a specific company and application
152
- * @description: Update theme for a specific company and application
92
+ * @description: Update theme for a specific company and application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/updateTheme/).
153
93
  */
154
- updateTheme({ companyId, applicationId, themeId, body, requestHeaders }?: {
155
- companyId: number;
156
- applicationId: string;
157
- themeId: string;
158
- body: UpdateThemeRequestBody;
159
- requestHeaders?: object;
160
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
94
+ updateTheme({ companyId, applicationId, themeId, body, requestHeaders }?: ThemePartnerValidator.UpdateThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
161
95
  /**
162
- * @param {Object} arg - Arg object.
163
- * @param {number} arg.companyId - The ID of the company.
164
- * @param {string} arg.applicationId - The ID of the application.
165
- * @param {string} arg.themeId - The ID of the theme to be deleted.
96
+ * @param {ThemePartnerValidator.DeleteThemeParam} arg - Arg object.
166
97
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
167
98
  * @param {import("../PartnerAPIClient").Options} - Options
99
+ * @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
100
+ * @name deleteTheme
168
101
  * @summary: Delete a theme
169
- * @description: This endpoint is used to delete a theme from the specified company and application.
102
+ * @description: This endpoint is used to delete a theme from the specified company and application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/deleteTheme/).
170
103
  */
171
- deleteTheme({ companyId, applicationId, themeId, requestHeaders }?: {
172
- companyId: number;
173
- applicationId: string;
174
- themeId: string;
175
- requestHeaders?: object;
176
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
104
+ deleteTheme({ companyId, applicationId, themeId, requestHeaders }?: ThemePartnerValidator.DeleteThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
177
105
  /**
178
- * @param {Object} arg - Arg object.
179
- * @param {string} [arg.status] - The status of the theme
180
- * @param {number} [arg.pageSize] - Number of themes per page
181
- * @param {number} [arg.pageNo] - Page number to retrieve
106
+ * @param {ThemePartnerValidator.GetOrganizationThemesParam} arg - Arg object.
182
107
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
183
108
  * @param {import("../PartnerAPIClient").Options} - Options
109
+ * @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
110
+ * @name getOrganizationThemes
184
111
  * @summary: Get organization's themes
185
- * @description: Get organization's themes
112
+ * @description: Get organization's themes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getOrganizationThemes/).
186
113
  */
187
- getOrganizationThemes({ status, pageSize, pageNo, requestHeaders }?: {
188
- status?: string;
189
- pageSize?: number;
190
- pageNo?: number;
191
- requestHeaders?: object;
192
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
114
+ getOrganizationThemes({ status, pageSize, pageNo, requestHeaders }?: ThemePartnerValidator.GetOrganizationThemesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceThemeSchema>;
193
115
  /**
194
- * @param {Object} arg - Arg object.
195
- * @param {string} arg.themeId - The ID of the theme
116
+ * @param {ThemePartnerValidator.GetOrganizationThemeDetailsParam} arg - Arg object.
196
117
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
197
118
  * @param {import("../PartnerAPIClient").Options} - Options
119
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
120
+ * @name getOrganizationThemeDetails
198
121
  * @summary: Get theme details for an organization
199
- * @description: Fetches the theme details for a specific organization and theme ID
122
+ * @description: Fetches the theme details for a specific organization and theme ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getOrganizationThemeDetails/).
200
123
  */
201
- getOrganizationThemeDetails({ themeId, requestHeaders }?: {
202
- themeId: string;
203
- requestHeaders?: object;
204
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
124
+ getOrganizationThemeDetails({ themeId, requestHeaders }?: ThemePartnerValidator.GetOrganizationThemeDetailsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
205
125
  /**
206
- * @param {Object} arg - Arg object.
207
- * @param {string} arg.themeId - The ID of the theme
208
- * @param {MarketplaceTheme} arg.body
126
+ * @param {ThemePartnerValidator.UpdateDraftThemeParam} arg - Arg object.
209
127
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
210
128
  * @param {import("../PartnerAPIClient").Options} - Options
129
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
130
+ * @name updateDraftTheme
211
131
  * @summary: Update theme draft/submitted
212
- * @description: Update theme draft/submitted
132
+ * @description: Update theme draft/submitted - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/updateDraftTheme/).
213
133
  */
214
- updateDraftTheme({ themeId, body, requestHeaders }?: {
215
- themeId: string;
216
- body: MarketplaceTheme;
217
- requestHeaders?: object;
218
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
134
+ updateDraftTheme({ themeId, body, requestHeaders }?: ThemePartnerValidator.UpdateDraftThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
219
135
  /**
220
- * @param {Object} arg - Arg object.
221
- * @param {string} arg.themeId - The ID of the theme
222
- * @param {MarketplaceTheme} arg.body
136
+ * @param {ThemePartnerValidator.SubmitOrganizationThemeParam} arg - Arg object.
223
137
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
224
138
  * @param {import("../PartnerAPIClient").Options} - Options
139
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
140
+ * @name submitOrganizationTheme
225
141
  * @summary: Submit a theme
226
- * @description: Use this api to Submit a theme
142
+ * @description: Use this api to Submit a theme - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/submitOrganizationTheme/).
227
143
  */
228
- submitOrganizationTheme({ themeId, body, requestHeaders }?: {
229
- themeId: string;
230
- body: MarketplaceTheme;
231
- requestHeaders?: object;
232
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
144
+ submitOrganizationTheme({ themeId, body, requestHeaders }?: ThemePartnerValidator.SubmitOrganizationThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
233
145
  /**
234
- * @param {Object} arg - Arg object.
235
- * @param {string} arg.themeId - The ID of the theme
146
+ * @param {ThemePartnerValidator.DeleteOrganizationThemeParam} arg - Arg object.
236
147
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
237
148
  * @param {import("../PartnerAPIClient").Options} - Options
149
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
150
+ * @name deleteOrganizationTheme
238
151
  * @summary: Delete a theme
239
- * @description: This endpoint allows you to delete a theme by providing the organization and theme IDs.
152
+ * @description: This endpoint allows you to delete a theme by providing the organization and theme IDs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/deleteOrganizationTheme/).
240
153
  */
241
- deleteOrganizationTheme({ themeId, requestHeaders }?: {
242
- themeId: string;
243
- requestHeaders?: object;
244
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
154
+ deleteOrganizationTheme({ themeId, requestHeaders }?: ThemePartnerValidator.DeleteOrganizationThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
245
155
  /**
246
- * @param {Object} arg - Arg object.
247
- * @param {string} arg.slugName - Slug of theme
156
+ * @param {ThemePartnerValidator.GetLatestVersionOfThemeBySlugParam} arg - Arg object.
248
157
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
249
158
  * @param {import("../PartnerAPIClient").Options} - Options
159
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme[]>} - Success response
160
+ * @name getLatestVersionOfThemeBySlug
250
161
  * @summary: Get latest version of specified theme
251
- * @description: Use this api to get latest version of specified theme
162
+ * @description: Use this api to get latest version of specified theme - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getLatestVersionOfThemeBySlug/).
252
163
  */
253
- getLatestVersionOfThemeBySlug({ slugName, requestHeaders }?: {
254
- slugName: string;
255
- requestHeaders?: object;
256
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
164
+ getLatestVersionOfThemeBySlug({ slugName, requestHeaders }?: ThemePartnerValidator.GetLatestVersionOfThemeBySlugParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme[]>;
257
165
  /**
258
- * @param {Object} arg - Arg object.
259
- * @param {string} [arg.slug] - The slug of the theme.
260
- * @param {MarketplaceTheme} arg.body
166
+ * @param {ThemePartnerValidator.CreateNewThemeInOrganizationParam} arg - Arg object.
261
167
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
262
168
  * @param {import("../PartnerAPIClient").Options} - Options
169
+ * @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
170
+ * @name createNewThemeInOrganization
263
171
  * @summary: Create a new theme for the organization
264
- * @description: Use this api to create a new theme for the organization
172
+ * @description: Use this api to create a new theme for the organization - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createNewThemeInOrganization/).
265
173
  */
266
- createNewThemeInOrganization({ body, slug, requestHeaders }?: {
267
- slug?: string;
268
- body: MarketplaceTheme;
269
- requestHeaders?: object;
270
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
174
+ createNewThemeInOrganization({ body, slug, requestHeaders }?: ThemePartnerValidator.CreateNewThemeInOrganizationParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
271
175
  /**
272
- * @param {Object} arg - Arg object.
273
- * @param {string} arg.themeId - The ID of the theme
176
+ * @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
274
177
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
275
178
  * @param {import("../PartnerAPIClient").Options} - Options
179
+ * @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
180
+ * @name getThemeRejectionReasons
276
181
  * @summary: Get theme rejection reasons
277
- * @description: Use this api to get theme rejection reasons
182
+ * @description: Use this api to get theme rejection reasons - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeRejectionReasons/).
278
183
  */
279
- getThemeRejectionReasons({ themeId, requestHeaders }?: {
280
- themeId: string;
281
- requestHeaders?: object;
282
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
184
+ getThemeRejectionReasons({ themeId, requestHeaders }?: ThemePartnerValidator.GetThemeRejectionReasonsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemeRejectionReasons>;
283
185
  /**
284
- * @param {Object} arg - Arg object.
285
- * @param {string} arg.themeSlug - The slug of the theme.
286
- * @param {number} [arg.pageSize] - The number of items to return per page.
287
- * @param {number} [arg.pageNo] - The page number to return.
186
+ * @param {ThemePartnerValidator.GetThemeVersionsParam} arg - Arg object.
288
187
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
289
188
  * @param {import("../PartnerAPIClient").Options} - Options
189
+ * @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
190
+ * @name getThemeVersions
290
191
  * @summary: Get theme versions
291
- * @description: Retrieve a list of theme versions for a specific theme in an organization.
192
+ * @description: Retrieve a list of theme versions for a specific theme in an organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeVersions/).
292
193
  */
293
- getThemeVersions({ themeSlug, pageSize, pageNo, requestHeaders }?: {
294
- themeSlug: string;
295
- pageSize?: number;
296
- pageNo?: number;
297
- requestHeaders?: object;
298
- }, { responseHeaders }?: import("../PartnerAPIClient").Options): Promise<any>;
194
+ getThemeVersions({ themeSlug, pageSize, pageNo, requestHeaders }?: ThemePartnerValidator.GetThemeVersionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceThemeSchema>;
299
195
  }
196
+ import ThemePartnerModel = require("./ThemePartnerModel");