@gofynd/fdk-client-javascript 1.5.2 → 1.6.1

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 (55) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.js +293 -0
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +408 -0
  5. package/sdk/application/Common/CommonApplicationClient.js +21 -0
  6. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  7. package/sdk/application/Configuration/ConfigurationApplicationClient.js +147 -0
  8. package/sdk/application/Content/ContentApplicationClient.js +226 -0
  9. package/sdk/application/FileStorage/FileStorageApplicationClient.js +43 -0
  10. package/sdk/application/Finance/FinanceApplicationClient.js +21 -0
  11. package/sdk/application/Lead/LeadApplicationClient.js +73 -0
  12. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
  13. package/sdk/application/Logistic/LogisticApplicationClient.js +192 -3
  14. package/sdk/application/Order/OrderApplicationClient.js +202 -0
  15. package/sdk/application/Payment/PaymentApplicationClient.js +454 -0
  16. package/sdk/application/Rewards/RewardsApplicationClient.js +68 -0
  17. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  18. package/sdk/application/Theme/ThemeApplicationClient.js +64 -0
  19. package/sdk/application/User/UserApplicationClient.js +412 -0
  20. package/sdk/application/Webhook/WebhookApplicationClient.js +13 -0
  21. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -0
  22. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +75 -0
  23. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  24. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  25. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -0
  26. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +6 -0
  27. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +16 -3
  28. package/sdk/partner/Webhook/WebhookPartnerModel.js +5 -3
  29. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  30. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  31. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +46 -23
  32. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -23
  33. package/sdk/platform/Cart/CartPlatformModel.d.ts +90 -1
  34. package/sdk/platform/Cart/CartPlatformModel.js +51 -0
  35. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
  36. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
  37. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
  38. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
  39. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -0
  40. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +82 -0
  41. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +10 -1
  42. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +12 -0
  43. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +108 -1
  44. package/sdk/platform/Payment/PaymentPlatformModel.js +77 -0
  45. package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
  46. package/sdk/platform/User/UserPlatformModel.js +2 -2
  47. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -14
  48. package/sdk/platform/Webhook/WebhookPlatformModel.js +15 -14
  49. package/sdk/public/Catalog/CatalogPublicClient.js +15 -0
  50. package/sdk/public/Configuration/ConfigurationPublicClient.js +16 -0
  51. package/sdk/public/Content/ContentPublicClient.js +116 -0
  52. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  53. package/sdk/public/Webhook/WebhookPublicClient.js +40 -0
  54. package/sdk/public/Webhook/WebhookPublicModel.d.ts +194 -46
  55. package/sdk/public/Webhook/WebhookPublicModel.js +51 -46
@@ -2,104 +2,109 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef EventConfig
5
- * @property {number} [id]
6
- * @property {string} [event_name]
7
- * @property {string} [event_type]
8
- * @property {string} [event_category]
9
- * @property {Object} [event_schema]
10
- * @property {string} [version]
11
- * @property {string} [display_name]
12
- * @property {string} [description]
13
- * @property {string} [created_on]
14
- * @property {string} [updated_on]
15
- * @property {string} [group]
5
+ * @property {number} [id] - The unique identifier for the event configuration.
6
+ * @property {string} [event_name] - The name of the event.
7
+ * @property {string} [event_type] - The type of the event.
8
+ * @property {string} [event_category] - The category of the event.
9
+ * @property {Object} [event_schema] - The schema defining the event data structure.
10
+ * @property {string} [version] - The version of the event configuration.
11
+ * @property {string} [display_name] - A user-friendly name for the event.
12
+ * @property {string} [description] - A detailed description of the event.
13
+ * @property {string} [created_on] - The timestamp when the event configuration
14
+ * was created.
15
+ * @property {string} [updated_on] - The timestamp when the event configuration
16
+ * was last updated.
17
+ * @property {string} [group] - The group to which the event belongs.
16
18
  */
17
19
 
18
20
  /**
19
21
  * @typedef EventDetails
20
- * @property {EventConfig[]} [event_configs]
22
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
21
23
  */
22
24
 
23
25
  /**
24
26
  * @typedef EventConfigBase
25
- * @property {string} [event_name]
26
- * @property {string} [event_type]
27
- * @property {string} [event_category]
28
- * @property {string} [version]
27
+ * @property {string} [event_name] - The name of the event.
28
+ * @property {string} [event_type] - The type of the event.
29
+ * @property {string} [event_category] - The category of the event.
30
+ * @property {string} [version] - The version of the event configuration.
29
31
  */
30
32
 
31
33
  /**
32
34
  * @typedef EventNotifier
33
- * @property {string} [message]
34
- * @property {string[]} [emails]
35
+ * @property {string} [message] - The message to be sent in the notification.
36
+ * @property {string[]} [emails] - List of email addresses to notify.
35
37
  */
36
38
 
37
39
  /**
38
40
  * @typedef EventSchema
39
- * @property {Object} [payload]
40
- * @property {Object} [meta]
41
+ * @property {Object} [payload] - The event data payload.
42
+ * @property {Object} [meta] - Metadata related to the event.
41
43
  */
42
44
 
43
45
  /**
44
46
  * @typedef InternalTransformEvent
45
- * @property {string[]} [trace_id]
46
- * @property {string} [name]
47
- * @property {string} [type]
48
- * @property {string} [version]
49
- * @property {number} [created_timestamp]
47
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
48
+ * @property {string} [name] - The name of the transformation event.
49
+ * @property {string} [type] - The type of the transformation event.
50
+ * @property {string} [version] - The version of the transformation event.
51
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
50
52
  */
51
53
 
52
54
  /**
53
55
  * @typedef TransformEventData
54
56
  * @property {InternalTransformEvent} [event]
55
- * @property {number} [company_id]
56
- * @property {string[]} [contains]
57
- * @property {Object} [payload]
57
+ * @property {number} [company_id] - The company ID associated with the event.
58
+ * @property {string[]} [contains] - List of strings related to the event.
59
+ * @property {Object} [payload] - Event data payload.
58
60
  */
59
61
 
60
62
  /**
61
63
  * @typedef TransformEventServiceMeta
62
- * @property {string} [name]
64
+ * @property {string} [name] - The name of the transformation service.
63
65
  */
64
66
 
65
67
  /**
66
68
  * @typedef TransformEventAssociation
67
- * @property {number} [company_id]
69
+ * @property {number} [company_id] - The company ID associated with the event.
68
70
  */
69
71
 
70
72
  /**
71
73
  * @typedef TransformEventPayload
72
- * @property {string} event_name
73
- * @property {string} event_type
74
- * @property {string} event_category
75
- * @property {string} event_version
74
+ * @property {string} event_name - The name of the event.
75
+ * @property {string} event_type - The type of the event.
76
+ * @property {string} event_category - The category of the event.
77
+ * @property {string} event_version - The version of the event.
76
78
  * @property {EventSchema} event
77
79
  */
78
80
 
79
81
  /**
80
82
  * @typedef ValidateSchemaPayload
81
- * @property {string} event_name
82
- * @property {string} event_type
83
- * @property {string} event_category
84
- * @property {string} event_version
83
+ * @property {string} event_name - The name of the event to validate.
84
+ * @property {string} event_type - The type of the event.
85
+ * @property {string} event_category - The category of the event.
86
+ * @property {string} event_version - The version of the event to validate.
85
87
  * @property {EventSchema} event
86
- * @property {Object} event_schema
88
+ * @property {Object} event_schema - The schema defining the structure of the event.
87
89
  */
88
90
 
89
91
  /**
90
92
  * @typedef ValidateSchemaResult
91
- * @property {boolean} [status]
92
- * @property {string} [message]
93
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
94
+ * or invalid (false).
95
+ * @property {string} [message] - A message providing additional details about
96
+ * the validation result.
93
97
  */
94
98
 
95
99
  /**
96
100
  * @typedef TransformEventResult
97
- * @property {string[]} [event_trace_id]
101
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
102
+ * transformation event.
98
103
  * @property {TransformEventData} [data]
99
- * @property {string} [event_name]
100
- * @property {string} [version]
101
- * @property {boolean} [status]
102
- * @property {string} [event_type]
104
+ * @property {string} [event_name] - The name of the transformation event.
105
+ * @property {string} [version] - The version of the transformation event.
106
+ * @property {boolean} [status] - The status of the event processing.
107
+ * @property {string} [event_type] - The type of the transformation event.
103
108
  * @property {TransformEventServiceMeta} [service_meta]
104
109
  * @property {TransformEventAssociation} [association]
105
110
  */