@gofynd/fdk-client-javascript 3.25.0 → 3.27.0

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 (28) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +7 -4
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +8 -2
  5. package/sdk/partner/Theme/ThemePartnerModel.d.ts +2 -1
  6. package/sdk/partner/Theme/ThemePartnerModel.js +3 -0
  7. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -0
  8. package/sdk/platform/Catalog/CatalogPlatformClient.js +75 -0
  9. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +31 -2
  10. package/sdk/platform/Catalog/CatalogPlatformModel.js +23 -0
  11. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +5 -1
  12. package/sdk/platform/Catalog/CatalogPlatformValidator.js +7 -0
  13. package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -1
  14. package/sdk/platform/Content/ContentPlatformModel.js +3 -0
  15. package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -18
  16. package/sdk/platform/Order/OrderPlatformModel.js +18 -18
  17. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  18. package/sdk/platform/PlatformApplicationClient.js +0 -4
  19. package/sdk/platform/Theme/ThemePlatformModel.d.ts +2 -1
  20. package/sdk/platform/Theme/ThemePlatformModel.js +3 -0
  21. package/sdk/platform/index.d.ts +0 -1
  22. package/sdk/platform/index.js +0 -2
  23. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -44
  24. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -263
  25. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -42
  26. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -45
  27. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -136
  28. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -95
@@ -1,95 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- /**
4
- * @typedef Page
5
- * @property {number} [item_total] - The total number of all items across all pages.
6
- * @property {string} [next_id] - The identifier for the next page.
7
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
8
- * @property {boolean} [has_next] - Indicates whether there is a next page.
9
- * @property {number} [current] - The current page number.
10
- * @property {string} type - The type of the page, can be 'cursor' or 'number'.
11
- * @property {number} [size] - The number of items per page.
12
- * @property {number} [page_size] - The number of items per page.
13
- */
14
-
15
- /**
16
- * @typedef FileDownloadRequestBody
17
- * @property {string} query - Base64 encoded SQL query to execute on ClickHouse.
18
- * @property {boolean} [split_files] - Flag indicating whether to split the
19
- * files for larger datasets.
20
- */
21
-
22
- /**
23
- * @typedef JobExecute
24
- * @property {string} query - Base64 encoded SQL query to execute on ClickHouse.
25
- * @property {Page} [page]
26
- */
27
-
28
- /**
29
- * @typedef JobExecutionResult
30
- * @property {Object[]} [rows] - Array of rows resulting from the job execution.
31
- * @property {Page} [page]
32
- */
33
-
34
- /**
35
- * @typedef JobStatus
36
- * @property {string} [start_date] - The start date and time of the job.
37
- * @property {string} [end_date] - The end date and time of the job.
38
- * @property {string} [status] - The current status of the job.
39
- * @property {string} [message] - Message providing additional details about the
40
- * job status.
41
- * @property {Object[]} [file_metadata] - Metadata about files associated with
42
- * the job, if any.
43
- */
44
-
45
- class AnalyticsPlatformModel {
46
- /** @returns {Page} */
47
- static Page() {
48
- return Joi.object({
49
- item_total: Joi.number(),
50
- next_id: Joi.string().allow(""),
51
- has_previous: Joi.boolean(),
52
- has_next: Joi.boolean(),
53
- current: Joi.number(),
54
- type: Joi.string().allow("").required(),
55
- size: Joi.number(),
56
- page_size: Joi.number(),
57
- });
58
- }
59
-
60
- /** @returns {FileDownloadRequestBody} */
61
- static FileDownloadRequestBody() {
62
- return Joi.object({
63
- query: Joi.string().allow("").required(),
64
- split_files: Joi.boolean(),
65
- });
66
- }
67
-
68
- /** @returns {JobExecute} */
69
- static JobExecute() {
70
- return Joi.object({
71
- query: Joi.string().allow("").required(),
72
- page: AnalyticsPlatformModel.Page(),
73
- });
74
- }
75
-
76
- /** @returns {JobExecutionResult} */
77
- static JobExecutionResult() {
78
- return Joi.object({
79
- rows: Joi.array().items(Joi.any()),
80
- page: AnalyticsPlatformModel.Page(),
81
- });
82
- }
83
-
84
- /** @returns {JobStatus} */
85
- static JobStatus() {
86
- return Joi.object({
87
- start_date: Joi.string().allow(""),
88
- end_date: Joi.string().allow("").allow(null),
89
- status: Joi.string().allow(""),
90
- message: Joi.string().allow(""),
91
- file_metadata: Joi.array().items(Joi.any()).allow(null, ""),
92
- });
93
- }
94
- }
95
- module.exports = AnalyticsPlatformModel;