@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.10

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 (154) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +60 -1185
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1293
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +5 -89
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +77 -914
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -12
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +22 -125
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +32 -202
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +86 -472
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +45 -1815
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/common/Utility.d.ts +1 -1
  43. package/sdk/common/Utility.js +10 -7
  44. package/sdk/common/Validator.d.ts +1 -0
  45. package/sdk/common/Validator.js +20 -0
  46. package/sdk/common/utils.d.ts +0 -1
  47. package/sdk/common/utils.js +0 -14
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +2 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
  50. package/sdk/partner/OAuthClient.js +1 -0
  51. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  52. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  53. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -0
  54. package/sdk/platform/Cart/CartPlatformModel.js +12 -0
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
  57. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
  58. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
  59. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
  60. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
  61. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
  62. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
  63. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
  64. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
  65. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  66. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  67. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  68. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  69. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  70. package/sdk/platform/Order/OrderPlatformClient.js +99 -0
  71. package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
  72. package/sdk/platform/Order/OrderPlatformModel.js +3 -0
  73. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  74. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  75. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  77. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
  78. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
  79. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
  80. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
  81. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  82. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  83. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
  84. package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
  85. package/sdk/public/Content/ContentPublicClient.js +14 -2
  86. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  87. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  88. package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
  89. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  90. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  91. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  92. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  93. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  94. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  95. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  96. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  97. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  98. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  99. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  100. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  101. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  102. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  103. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  104. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  105. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  106. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  107. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  108. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  109. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  110. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  111. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  112. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  113. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  114. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  115. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  116. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  117. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  118. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  119. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  120. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  121. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  122. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  123. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  124. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  125. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  126. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  127. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  128. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  129. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  130. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  131. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  132. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  133. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  134. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  135. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  136. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  137. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  138. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  139. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  140. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  141. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  142. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  143. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  144. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  145. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  146. package/sdk/application/User/UserApplicationModel.js +0 -1382
  147. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  148. package/sdk/application/User/UserApplicationValidator.js +0 -573
  149. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  150. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  151. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  152. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  153. package/sdk/common/Clickstream.d.ts +0 -1
  154. package/sdk/common/Clickstream.js +0 -464
@@ -1,284 +0,0 @@
1
- export = ContentApplicationValidator;
2
- /** @typedef GetAnnouncementsParam */
3
- /**
4
- * @typedef GetBlogParam
5
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
6
- * a blog. You can get slug value from the endpoint
7
- * /service/application/content/v1.0/blogs/.
8
- * @property {string} [rootId] - ID given to the HTML element.
9
- */
10
- /**
11
- * @typedef GetBlogsParam
12
- * @property {number} [pageNo] - The page number to navigate through the given
13
- * set of results. Default value is 1. .
14
- * @property {number} [pageSize] - The number of items to retrieve in each page.
15
- * @property {string} [tags] - Blogs retrieve based on the list of tags passed.
16
- * @property {string} [search] - Blogs retrieve based on the title.
17
- */
18
- /**
19
- * @typedef GetCustomFieldsParam
20
- * @property {string} resource - This is the name of resource for which you want
21
- * to fetch custom fields eg. product, collection, customer etc.
22
- * @property {string} resourceId - This is the resource id for which custom fields created
23
- */
24
- /**
25
- * @typedef GetCustomObjectParam
26
- * @property {string} metaobjectId - This is meta object id
27
- */
28
- /** @typedef GetDataLoadersParam */
29
- /**
30
- * @typedef GetFaqBySlugParam
31
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
32
- * an FAQ. You can get slug value from the endpoint
33
- * /service/application/content/v1.0/faq.
34
- */
35
- /** @typedef GetFaqCategoriesParam */
36
- /**
37
- * @typedef GetFaqCategoryBySlugParam
38
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
39
- * an FAQ category. You can get slug value from the endpoint
40
- * /service/application/content/v1.0/faq/categories.
41
- */
42
- /** @typedef GetFaqsParam */
43
- /**
44
- * @typedef GetFaqsByCategorySlugParam
45
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
46
- * an FAQ category. You can get slug value from the endpoint
47
- * /service/application/content/v1.0/faq/categories.
48
- */
49
- /** @typedef GetLandingPageParam */
50
- /** @typedef GetLegalInformationParam */
51
- /**
52
- * @typedef GetNavigationsParam
53
- * @property {number} [pageNo] - The page number to navigate through the given
54
- * set of results. Default value is 1. .
55
- * @property {number} [pageSize] - The number of items to retrieve in each page.
56
- */
57
- /**
58
- * @typedef GetPageParam
59
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
60
- * a page. You can get slug value from the endpoint
61
- * /service/application/content/v2.0/pages/.
62
- * @property {string} [rootId] - ID given to the HTML element.
63
- */
64
- /**
65
- * @typedef GetPagesParam
66
- * @property {number} [pageNo] - The page number to navigate through the given
67
- * set of results. Default value is 1. .
68
- * @property {number} [pageSize] - The number of items to retrieve in each page.
69
- */
70
- /** @typedef GetSEOConfigurationParam */
71
- /**
72
- * @typedef GetSEOMarkupSchemasParam
73
- * @property {string} [pageType] - The type of page against which schema
74
- * template was created.
75
- * @property {boolean} [active] - Boolean value for fetching seo schema.
76
- */
77
- /**
78
- * @typedef GetSlideshowParam
79
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
80
- * a slideshow. You can get slug value from the endpoint
81
- * /service/application/content/v1.0/slideshow/.
82
- */
83
- /**
84
- * @typedef GetSlideshowsParam
85
- * @property {number} [pageNo] - The page number to navigate through the given
86
- * set of results. Default value is 1. .
87
- * @property {number} [pageSize] - The number of items to retrieve in each page.
88
- */
89
- /** @typedef GetSupportInformationParam */
90
- /** @typedef GetTagsParam */
91
- declare class ContentApplicationValidator {
92
- /** @returns {GetAnnouncementsParam} */
93
- static getAnnouncements(): any;
94
- /** @returns {GetBlogParam} */
95
- static getBlog(): GetBlogParam;
96
- /** @returns {GetBlogsParam} */
97
- static getBlogs(): GetBlogsParam;
98
- /** @returns {GetCustomFieldsParam} */
99
- static getCustomFields(): GetCustomFieldsParam;
100
- /** @returns {GetCustomObjectParam} */
101
- static getCustomObject(): GetCustomObjectParam;
102
- /** @returns {GetDataLoadersParam} */
103
- static getDataLoaders(): any;
104
- /** @returns {GetFaqBySlugParam} */
105
- static getFaqBySlug(): GetFaqBySlugParam;
106
- /** @returns {GetFaqCategoriesParam} */
107
- static getFaqCategories(): any;
108
- /** @returns {GetFaqCategoryBySlugParam} */
109
- static getFaqCategoryBySlug(): GetFaqCategoryBySlugParam;
110
- /** @returns {GetFaqsParam} */
111
- static getFaqs(): any;
112
- /** @returns {GetFaqsByCategorySlugParam} */
113
- static getFaqsByCategorySlug(): GetFaqsByCategorySlugParam;
114
- /** @returns {GetLandingPageParam} */
115
- static getLandingPage(): any;
116
- /** @returns {GetLegalInformationParam} */
117
- static getLegalInformation(): any;
118
- /** @returns {GetNavigationsParam} */
119
- static getNavigations(): GetNavigationsParam;
120
- /** @returns {GetPageParam} */
121
- static getPage(): GetPageParam;
122
- /** @returns {GetPagesParam} */
123
- static getPages(): GetPagesParam;
124
- /** @returns {GetSEOConfigurationParam} */
125
- static getSEOConfiguration(): any;
126
- /** @returns {GetSEOMarkupSchemasParam} */
127
- static getSEOMarkupSchemas(): GetSEOMarkupSchemasParam;
128
- /** @returns {GetSlideshowParam} */
129
- static getSlideshow(): GetSlideshowParam;
130
- /** @returns {GetSlideshowsParam} */
131
- static getSlideshows(): GetSlideshowsParam;
132
- /** @returns {GetSupportInformationParam} */
133
- static getSupportInformation(): any;
134
- /** @returns {GetTagsParam} */
135
- static getTags(): any;
136
- }
137
- declare namespace ContentApplicationValidator {
138
- export { GetAnnouncementsParam, GetBlogParam, GetBlogsParam, GetCustomFieldsParam, GetCustomObjectParam, GetDataLoadersParam, GetFaqBySlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugParam, GetFaqsParam, GetFaqsByCategorySlugParam, GetLandingPageParam, GetLegalInformationParam, GetNavigationsParam, GetPageParam, GetPagesParam, GetSEOConfigurationParam, GetSEOMarkupSchemasParam, GetSlideshowParam, GetSlideshowsParam, GetSupportInformationParam, GetTagsParam };
139
- }
140
- type GetBlogParam = {
141
- /**
142
- * - A short, human-readable, URL-friendly identifier of
143
- * a blog. You can get slug value from the endpoint
144
- * /service/application/content/v1.0/blogs/.
145
- */
146
- slug: string;
147
- /**
148
- * - ID given to the HTML element.
149
- */
150
- rootId?: string;
151
- };
152
- type GetBlogsParam = {
153
- /**
154
- * - The page number to navigate through the given
155
- * set of results. Default value is 1. .
156
- */
157
- pageNo?: number;
158
- /**
159
- * - The number of items to retrieve in each page.
160
- */
161
- pageSize?: number;
162
- /**
163
- * - Blogs retrieve based on the list of tags passed.
164
- */
165
- tags?: string;
166
- /**
167
- * - Blogs retrieve based on the title.
168
- */
169
- search?: string;
170
- };
171
- type GetCustomFieldsParam = {
172
- /**
173
- * - This is the name of resource for which you want
174
- * to fetch custom fields eg. product, collection, customer etc.
175
- */
176
- resource: string;
177
- /**
178
- * - This is the resource id for which custom fields created
179
- */
180
- resourceId: string;
181
- };
182
- type GetCustomObjectParam = {
183
- /**
184
- * - This is meta object id
185
- */
186
- metaobjectId: string;
187
- };
188
- type GetFaqBySlugParam = {
189
- /**
190
- * - A short, human-readable, URL-friendly identifier of
191
- * an FAQ. You can get slug value from the endpoint
192
- * /service/application/content/v1.0/faq.
193
- */
194
- slug: string;
195
- };
196
- type GetFaqCategoryBySlugParam = {
197
- /**
198
- * - A short, human-readable, URL-friendly identifier of
199
- * an FAQ category. You can get slug value from the endpoint
200
- * /service/application/content/v1.0/faq/categories.
201
- */
202
- slug: string;
203
- };
204
- type GetFaqsByCategorySlugParam = {
205
- /**
206
- * - A short, human-readable, URL-friendly identifier of
207
- * an FAQ category. You can get slug value from the endpoint
208
- * /service/application/content/v1.0/faq/categories.
209
- */
210
- slug: string;
211
- };
212
- type GetNavigationsParam = {
213
- /**
214
- * - The page number to navigate through the given
215
- * set of results. Default value is 1. .
216
- */
217
- pageNo?: number;
218
- /**
219
- * - The number of items to retrieve in each page.
220
- */
221
- pageSize?: number;
222
- };
223
- type GetPageParam = {
224
- /**
225
- * - A short, human-readable, URL-friendly identifier of
226
- * a page. You can get slug value from the endpoint
227
- * /service/application/content/v2.0/pages/.
228
- */
229
- slug: string;
230
- /**
231
- * - ID given to the HTML element.
232
- */
233
- rootId?: string;
234
- };
235
- type GetPagesParam = {
236
- /**
237
- * - The page number to navigate through the given
238
- * set of results. Default value is 1. .
239
- */
240
- pageNo?: number;
241
- /**
242
- * - The number of items to retrieve in each page.
243
- */
244
- pageSize?: number;
245
- };
246
- type GetSEOMarkupSchemasParam = {
247
- /**
248
- * - The type of page against which schema
249
- * template was created.
250
- */
251
- pageType?: string;
252
- /**
253
- * - Boolean value for fetching seo schema.
254
- */
255
- active?: boolean;
256
- };
257
- type GetSlideshowParam = {
258
- /**
259
- * - A short, human-readable, URL-friendly identifier of
260
- * a slideshow. You can get slug value from the endpoint
261
- * /service/application/content/v1.0/slideshow/.
262
- */
263
- slug: string;
264
- };
265
- type GetSlideshowsParam = {
266
- /**
267
- * - The page number to navigate through the given
268
- * set of results. Default value is 1. .
269
- */
270
- pageNo?: number;
271
- /**
272
- * - The number of items to retrieve in each page.
273
- */
274
- pageSize?: number;
275
- };
276
- type GetAnnouncementsParam = any;
277
- type GetDataLoadersParam = any;
278
- type GetFaqCategoriesParam = any;
279
- type GetFaqsParam = any;
280
- type GetLandingPageParam = any;
281
- type GetLegalInformationParam = any;
282
- type GetSEOConfigurationParam = any;
283
- type GetSupportInformationParam = any;
284
- type GetTagsParam = any;
@@ -1,264 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- const ContentApplicationModel = require("./ContentApplicationModel");
4
-
5
- /** @typedef GetAnnouncementsParam */
6
-
7
- /**
8
- * @typedef GetBlogParam
9
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
10
- * a blog. You can get slug value from the endpoint
11
- * /service/application/content/v1.0/blogs/.
12
- * @property {string} [rootId] - ID given to the HTML element.
13
- */
14
-
15
- /**
16
- * @typedef GetBlogsParam
17
- * @property {number} [pageNo] - The page number to navigate through the given
18
- * set of results. Default value is 1. .
19
- * @property {number} [pageSize] - The number of items to retrieve in each page.
20
- * @property {string} [tags] - Blogs retrieve based on the list of tags passed.
21
- * @property {string} [search] - Blogs retrieve based on the title.
22
- */
23
-
24
- /**
25
- * @typedef GetCustomFieldsParam
26
- * @property {string} resource - This is the name of resource for which you want
27
- * to fetch custom fields eg. product, collection, customer etc.
28
- * @property {string} resourceId - This is the resource id for which custom fields created
29
- */
30
-
31
- /**
32
- * @typedef GetCustomObjectParam
33
- * @property {string} metaobjectId - This is meta object id
34
- */
35
-
36
- /** @typedef GetDataLoadersParam */
37
-
38
- /**
39
- * @typedef GetFaqBySlugParam
40
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
41
- * an FAQ. You can get slug value from the endpoint
42
- * /service/application/content/v1.0/faq.
43
- */
44
-
45
- /** @typedef GetFaqCategoriesParam */
46
-
47
- /**
48
- * @typedef GetFaqCategoryBySlugParam
49
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
50
- * an FAQ category. You can get slug value from the endpoint
51
- * /service/application/content/v1.0/faq/categories.
52
- */
53
-
54
- /** @typedef GetFaqsParam */
55
-
56
- /**
57
- * @typedef GetFaqsByCategorySlugParam
58
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
59
- * an FAQ category. You can get slug value from the endpoint
60
- * /service/application/content/v1.0/faq/categories.
61
- */
62
-
63
- /** @typedef GetLandingPageParam */
64
-
65
- /** @typedef GetLegalInformationParam */
66
-
67
- /**
68
- * @typedef GetNavigationsParam
69
- * @property {number} [pageNo] - The page number to navigate through the given
70
- * set of results. Default value is 1. .
71
- * @property {number} [pageSize] - The number of items to retrieve in each page.
72
- */
73
-
74
- /**
75
- * @typedef GetPageParam
76
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
77
- * a page. You can get slug value from the endpoint
78
- * /service/application/content/v2.0/pages/.
79
- * @property {string} [rootId] - ID given to the HTML element.
80
- */
81
-
82
- /**
83
- * @typedef GetPagesParam
84
- * @property {number} [pageNo] - The page number to navigate through the given
85
- * set of results. Default value is 1. .
86
- * @property {number} [pageSize] - The number of items to retrieve in each page.
87
- */
88
-
89
- /** @typedef GetSEOConfigurationParam */
90
-
91
- /**
92
- * @typedef GetSEOMarkupSchemasParam
93
- * @property {string} [pageType] - The type of page against which schema
94
- * template was created.
95
- * @property {boolean} [active] - Boolean value for fetching seo schema.
96
- */
97
-
98
- /**
99
- * @typedef GetSlideshowParam
100
- * @property {string} slug - A short, human-readable, URL-friendly identifier of
101
- * a slideshow. You can get slug value from the endpoint
102
- * /service/application/content/v1.0/slideshow/.
103
- */
104
-
105
- /**
106
- * @typedef GetSlideshowsParam
107
- * @property {number} [pageNo] - The page number to navigate through the given
108
- * set of results. Default value is 1. .
109
- * @property {number} [pageSize] - The number of items to retrieve in each page.
110
- */
111
-
112
- /** @typedef GetSupportInformationParam */
113
-
114
- /** @typedef GetTagsParam */
115
-
116
- class ContentApplicationValidator {
117
- /** @returns {GetAnnouncementsParam} */
118
- static getAnnouncements() {
119
- return Joi.object({});
120
- }
121
-
122
- /** @returns {GetBlogParam} */
123
- static getBlog() {
124
- return Joi.object({
125
- slug: Joi.string().allow("").required(),
126
- rootId: Joi.string().allow(""),
127
- }).required();
128
- }
129
-
130
- /** @returns {GetBlogsParam} */
131
- static getBlogs() {
132
- return Joi.object({
133
- pageNo: Joi.number(),
134
- pageSize: Joi.number(),
135
- tags: Joi.string().allow(""),
136
- search: Joi.string().allow(""),
137
- });
138
- }
139
-
140
- /** @returns {GetCustomFieldsParam} */
141
- static getCustomFields() {
142
- return Joi.object({
143
- resource: Joi.string().allow("").required(),
144
- resourceId: Joi.string().allow("").required(),
145
- }).required();
146
- }
147
-
148
- /** @returns {GetCustomObjectParam} */
149
- static getCustomObject() {
150
- return Joi.object({
151
- metaobjectId: Joi.string().allow("").required(),
152
- }).required();
153
- }
154
-
155
- /** @returns {GetDataLoadersParam} */
156
- static getDataLoaders() {
157
- return Joi.object({});
158
- }
159
-
160
- /** @returns {GetFaqBySlugParam} */
161
- static getFaqBySlug() {
162
- return Joi.object({
163
- slug: Joi.string().allow("").required(),
164
- }).required();
165
- }
166
-
167
- /** @returns {GetFaqCategoriesParam} */
168
- static getFaqCategories() {
169
- return Joi.object({});
170
- }
171
-
172
- /** @returns {GetFaqCategoryBySlugParam} */
173
- static getFaqCategoryBySlug() {
174
- return Joi.object({
175
- slug: Joi.string().allow("").required(),
176
- }).required();
177
- }
178
-
179
- /** @returns {GetFaqsParam} */
180
- static getFaqs() {
181
- return Joi.object({});
182
- }
183
-
184
- /** @returns {GetFaqsByCategorySlugParam} */
185
- static getFaqsByCategorySlug() {
186
- return Joi.object({
187
- slug: Joi.string().allow("").required(),
188
- }).required();
189
- }
190
-
191
- /** @returns {GetLandingPageParam} */
192
- static getLandingPage() {
193
- return Joi.object({});
194
- }
195
-
196
- /** @returns {GetLegalInformationParam} */
197
- static getLegalInformation() {
198
- return Joi.object({});
199
- }
200
-
201
- /** @returns {GetNavigationsParam} */
202
- static getNavigations() {
203
- return Joi.object({
204
- pageNo: Joi.number(),
205
- pageSize: Joi.number(),
206
- });
207
- }
208
-
209
- /** @returns {GetPageParam} */
210
- static getPage() {
211
- return Joi.object({
212
- slug: Joi.string().allow("").required(),
213
- rootId: Joi.string().allow(""),
214
- }).required();
215
- }
216
-
217
- /** @returns {GetPagesParam} */
218
- static getPages() {
219
- return Joi.object({
220
- pageNo: Joi.number(),
221
- pageSize: Joi.number(),
222
- });
223
- }
224
-
225
- /** @returns {GetSEOConfigurationParam} */
226
- static getSEOConfiguration() {
227
- return Joi.object({});
228
- }
229
-
230
- /** @returns {GetSEOMarkupSchemasParam} */
231
- static getSEOMarkupSchemas() {
232
- return Joi.object({
233
- pageType: Joi.string().allow(""),
234
- active: Joi.boolean(),
235
- });
236
- }
237
-
238
- /** @returns {GetSlideshowParam} */
239
- static getSlideshow() {
240
- return Joi.object({
241
- slug: Joi.string().allow("").required(),
242
- }).required();
243
- }
244
-
245
- /** @returns {GetSlideshowsParam} */
246
- static getSlideshows() {
247
- return Joi.object({
248
- pageNo: Joi.number(),
249
- pageSize: Joi.number(),
250
- });
251
- }
252
-
253
- /** @returns {GetSupportInformationParam} */
254
- static getSupportInformation() {
255
- return Joi.object({});
256
- }
257
-
258
- /** @returns {GetTagsParam} */
259
- static getTags() {
260
- return Joi.object({});
261
- }
262
- }
263
-
264
- module.exports = ContentApplicationValidator;