@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5

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 (239) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +161 -56
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +56 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
  83. package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
  127. package/sdk/platform/Content/ContentPlatformModel.js +631 -394
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
  157. package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  194. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  195. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  196. package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
  197. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  198. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  199. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  200. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  201. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  202. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  203. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  204. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  205. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  206. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  207. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  208. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  209. package/sdk/platform/User/UserPlatformModel.js +23 -23
  210. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  211. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  212. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  213. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  214. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  215. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  216. package/sdk/platform/index.d.ts +0 -1
  217. package/sdk/platform/index.js +0 -2
  218. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  219. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  220. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  221. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  222. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  223. package/sdk/public/Content/ContentPublicClient.js +810 -6
  224. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  225. package/sdk/public/Content/ContentPublicModel.js +649 -3
  226. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  227. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  228. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  229. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  230. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  231. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  232. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  233. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  234. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  235. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  236. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  237. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  238. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  239. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,13 +1,96 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef ProxyResponse
5
- * @property {Object} [data]
6
- * @property {Object} [support]
4
+ * @typedef UpdatePdfType
5
+ * @property {number} [pdf_type_id]
6
+ * @property {string} [name]
7
+ * @property {string[]} [format]
8
+ * @property {boolean} [visibility]
9
+ * @property {Object} [schema]
10
+ * @property {boolean} [store_os]
11
+ * @property {string} [country_code]
12
+ */
13
+
14
+ /**
15
+ * @typedef PdfTypeByIdDetails
16
+ * @property {boolean} [store_os]
17
+ * @property {string} [country_code]
18
+ * @property {number} [pdf_type_id]
19
+ * @property {number} [__v]
20
+ * @property {string} [_id]
21
+ * @property {string[]} [format]
22
+ * @property {string} [name]
23
+ * @property {boolean} [visibility]
24
+ */
25
+
26
+ /**
27
+ * @typedef PdfConfigurationData
28
+ * @property {string} [_id]
29
+ * @property {number} [pdf_type_id]
30
+ * @property {string} [format]
31
+ * @property {string} [template]
32
+ * @property {string} [country_code]
33
+ * @property {number} [__v]
34
+ */
35
+
36
+ /**
37
+ * @typedef UpdatedDefaultTemplateById
38
+ * @property {PdfConfigurationData} [data]
39
+ * @property {boolean} [success]
40
+ */
41
+
42
+ /**
43
+ * @typedef UpdateTemplate
44
+ * @property {number} [pdf_type_id]
45
+ * @property {string} [format] - This is invoice document format such as A4, A6, POS, A5
46
+ * @property {string} [country_code] - This is iso code of a country
47
+ * @property {string} [template] - This is html template string
48
+ * @property {boolean} [store_os] - This flag is to identify store-os
49
+ */
50
+
51
+ /**
52
+ * @typedef PdfDefaultTemplateById
53
+ * @property {string} [_id] - The ID of the PDF default template
54
+ * @property {string} [country_code] - The country code associated with the template
55
+ * @property {string} [format] - The format of the template (e.g., "A4")
56
+ * @property {number} [pdf_type_id] - The ID of the PDF type
57
+ * @property {number} [__v] - Version number
58
+ * @property {string} [template] - The HTML template content
59
+ */
60
+
61
+ /**
62
+ * @typedef PdfTemplateCreateSuccess
63
+ * @property {number} [code]
64
+ * @property {boolean} [success]
65
+ * @property {PdfTemplateCreateSuccessData} [data]
66
+ */
67
+
68
+ /**
69
+ * @typedef PdfTemplateCreateSuccessData
70
+ * @property {string} [_id]
71
+ * @property {number} [pdf_type_id]
72
+ * @property {string} [format]
73
+ * @property {string} [template]
74
+ * @property {string} [country_code]
75
+ * @property {number} [__v]
76
+ */
77
+
78
+ /**
79
+ * @typedef CreateTemplate
80
+ * @property {number} pdf_type_id
81
+ * @property {string} format - This is invoice document format such as A4, A6, POS, A5
82
+ * @property {string} country_code - This is iso code of a country
83
+ * @property {string} [template] - This is html template string
84
+ */
85
+
86
+ /**
87
+ * @typedef PdfDefaultTemplateSuccess
88
+ * @property {Document[]} [data]
89
+ * @property {boolean} [success] - Indicates if the request was successful.
7
90
  */
8
91
 
9
92
  /**
10
- * @typedef FailedResponse
93
+ * @typedef FailedBrowseFilesResult
11
94
  * @property {string} message
12
95
  */
13
96
 
@@ -25,7 +108,7 @@ const Joi = require("joi");
25
108
  */
26
109
 
27
110
  /**
28
- * @typedef StartResponse
111
+ * @typedef FileUpload
29
112
  * @property {string} file_name
30
113
  * @property {string} file_path
31
114
  * @property {string} content_type
@@ -34,23 +117,16 @@ const Joi = require("joi");
34
117
  * @property {string} operation
35
118
  * @property {number} size
36
119
  * @property {Upload} upload
37
- * @property {CDN} cdn
38
120
  * @property {string[]} [tags]
39
121
  */
40
122
 
41
123
  /**
42
- * @typedef Params
43
- * @property {string} [subpath] - The subpath for the file.
44
- */
45
-
46
- /**
47
- * @typedef StartRequest
124
+ * @typedef FileUploadStart
48
125
  * @property {string} file_name
49
126
  * @property {string} content_type
50
127
  * @property {number} size
51
128
  * @property {string[]} [tags]
52
129
  * @property {Object} [params]
53
- * @property {string} [enc_key]
54
130
  */
55
131
 
56
132
  /**
@@ -59,7 +135,7 @@ const Joi = require("joi");
59
135
  */
60
136
 
61
137
  /**
62
- * @typedef CompleteResponse
138
+ * @typedef FileUploadComplete
63
139
  * @property {string} _id
64
140
  * @property {string} file_name
65
141
  * @property {string} file_path
@@ -77,6 +153,12 @@ const Joi = require("joi");
77
153
  * @property {CreatedBy} [created_by]
78
154
  */
79
155
 
156
+ /**
157
+ * @typedef ProxyFileAccess
158
+ * @property {Object} [data]
159
+ * @property {Object} [support]
160
+ */
161
+
80
162
  /**
81
163
  * @typedef DestinationNamespace
82
164
  * @property {string} [namespace]
@@ -96,25 +178,18 @@ const Joi = require("joi");
96
178
  */
97
179
 
98
180
  /**
99
- * @typedef SignUrlResponse
181
+ * @typedef SignUrlResult
100
182
  * @property {Urls[]} urls
101
183
  */
102
184
 
103
185
  /**
104
- * @typedef EncryptionMapping
105
- * @property {string} [enc_url]
106
- * @property {string} [value]
107
- */
108
-
109
- /**
110
- * @typedef SignUrlRequest
186
+ * @typedef SignUrl
111
187
  * @property {number} expiry
112
188
  * @property {string[]} urls
113
- * @property {EncryptionMapping[]} [enc_url_mapping]
114
189
  */
115
190
 
116
191
  /**
117
- * @typedef InvoiceTypesDataResponse
192
+ * @typedef InvoiceTypesData
118
193
  * @property {boolean} [status]
119
194
  * @property {string} _id
120
195
  * @property {number} pdf_type_id
@@ -122,12 +197,13 @@ const Joi = require("joi");
122
197
  * @property {string[]} format
123
198
  * @property {number} __v
124
199
  * @property {boolean} visibility
200
+ * @property {boolean} store_os
125
201
  * @property {string} country_code
126
202
  */
127
203
 
128
204
  /**
129
- * @typedef InvoiceTypesResponse
130
- * @property {InvoiceTypesDataResponse[]} data
205
+ * @typedef InvoiceTypes
206
+ * @property {InvoiceTypesData[]} data
131
207
  * @property {boolean} success
132
208
  */
133
209
 
@@ -440,7 +516,7 @@ const Joi = require("joi");
440
516
  */
441
517
 
442
518
  /**
443
- * @typedef DummyTemplateDataPayload
519
+ * @typedef PdfPayloadDetails
444
520
  * @property {boolean} [is_export]
445
521
  * @property {boolean} [is_export_shipment]
446
522
  * @property {string} [app_domain_name]
@@ -474,8 +550,6 @@ const Joi = require("joi");
474
550
  * @property {boolean} [is_self_ship]
475
551
  * @property {string} [mode]
476
552
  * @property {boolean} [is_self_pickup]
477
- * @property {Object} [shipment_meta] - This field represents the shipment meta details
478
- * @property {Object} [order_meta] - This field represents the order meta details
479
553
  * @property {string} [platform_name]
480
554
  * @property {number} [amount_to_be_collected]
481
555
  * @property {number} [amount_paid]
@@ -495,13 +569,29 @@ const Joi = require("joi");
495
569
  * @property {string} [_id] - This field contains the unique identifier for the
496
570
  * PDF payload.
497
571
  * @property {number} [pdf_type_id] - This is invoice unique id
498
- * @property {DummyTemplateDataPayload} payload
572
+ * @property {PdfPayloadDetails} payload
499
573
  * @property {string} [country_code] - This field represents the country code.
574
+ * @property {number} [__v]
575
+ */
576
+
577
+ /**
578
+ * @typedef savePdfPayload
579
+ * @property {number} [pdf_type_id]
580
+ * @property {PdfPayloadDetails} [payload]
581
+ * @property {string} [country_code]
582
+ */
583
+
584
+ /**
585
+ * @typedef MapperDetails
586
+ * @property {string} [_id]
587
+ * @property {number} [pdf_type_id]
588
+ * @property {PdfPayloadDetails} [payload]
589
+ * @property {string} [country_code]
500
590
  * @property {number} [__v] - This field holds the version number.
501
591
  */
502
592
 
503
593
  /**
504
- * @typedef DummyTemplateDataItems
594
+ * @typedef PdfDataItemsDetails
505
595
  * @property {DummyTemplateData[]} data
506
596
  * @property {boolean} success
507
597
  */
@@ -509,22 +599,37 @@ const Joi = require("joi");
509
599
  /**
510
600
  * @typedef PdfConfig
511
601
  * @property {string} [format] - This is invoice document format such as A4, A6, POS
512
- * @property {string} [template] - This is html template string
513
- * @property {number} [pdf_type_id]
602
+ * @property {string} [template] - This is html template string.
603
+ * @property {number} [pdf_type_id] - This field holds an identifier for the type of PDF.
604
+ * @property {string} [country_code] - This field contains the country code.
605
+ * @property {boolean} [default_template] - This field indicates whether the
606
+ * fetched HTML template is the default template.
514
607
  */
515
608
 
516
609
  /**
517
610
  * @typedef PdfConfigSuccessData
518
- * @property {string} [_id]
519
- * @property {number} [company_id]
520
- * @property {string} [application_id]
521
- * @property {number} [pdf_type_id]
522
- * @property {string} [format]
523
- * @property {string} [template]
524
- * @property {number} [__v]
611
+ * @property {string} [_id] - This field contains the unique identifier for the
612
+ * PDF configuration.
613
+ * @property {number} [company_id] - This field holds the identifier for the
614
+ * company associated with the PDF configuration.
615
+ * @property {string} [application_id] - This field contains the identifier for
616
+ * the application that uses this PDF configuration.
617
+ * @property {number} [pdf_type_id] - This field holds an identifier for the type of PDF.
618
+ * @property {string} [format] - This field specifies the format of the invoice document.
619
+ * @property {string} [template] - This field contains the HTML template string
620
+ * for the PDF document.
621
+ * @property {number} [__v] - This field holds the version number of the PDF
622
+ * configuration document.
525
623
  * @property {string} [country_code]
526
624
  */
527
625
 
626
+ /**
627
+ * @typedef DeleteMapperById
628
+ * @property {string} [message] - This field represents the country code.
629
+ * @property {boolean} [default_template] - This field indicates whether the
630
+ * HTML template is the default template.
631
+ */
632
+
528
633
  /**
529
634
  * @typedef PdfConfigSuccess
530
635
  * @property {PdfConfigSuccessData[]} [data]
@@ -548,12 +653,6 @@ const Joi = require("joi");
548
653
  * @property {boolean} [success]
549
654
  */
550
655
 
551
- /**
552
- * @typedef PdfDefaultTemplateSuccess
553
- * @property {Document[]} [data]
554
- * @property {boolean} [success] - Indicates if the request was successful.
555
- */
556
-
557
656
  /**
558
657
  * @typedef Document
559
658
  * @property {string} [_id]
@@ -644,16 +743,117 @@ const Joi = require("joi");
644
743
  */
645
744
 
646
745
  class FileStoragePlatformModel {
647
- /** @returns {ProxyResponse} */
648
- static ProxyResponse() {
746
+ /** @returns {UpdatePdfType} */
747
+ static UpdatePdfType() {
649
748
  return Joi.object({
650
- data: Joi.object().pattern(/\S/, Joi.any()),
651
- support: Joi.object().pattern(/\S/, Joi.any()),
749
+ pdf_type_id: Joi.number(),
750
+ name: Joi.string().allow(""),
751
+ format: Joi.array().items(Joi.string().allow("")),
752
+ visibility: Joi.boolean(),
753
+ schema: Joi.object().pattern(/\S/, Joi.any()),
754
+ store_os: Joi.boolean(),
755
+ country_code: Joi.string().allow(""),
652
756
  });
653
757
  }
654
758
 
655
- /** @returns {FailedResponse} */
656
- static FailedResponse() {
759
+ /** @returns {PdfTypeByIdDetails} */
760
+ static PdfTypeByIdDetails() {
761
+ return Joi.object({
762
+ store_os: Joi.boolean(),
763
+ country_code: Joi.string().allow(""),
764
+ pdf_type_id: Joi.number(),
765
+ __v: Joi.number(),
766
+ _id: Joi.string().allow(""),
767
+ format: Joi.array().items(Joi.string().allow("")),
768
+ name: Joi.string().allow(""),
769
+ visibility: Joi.boolean(),
770
+ });
771
+ }
772
+
773
+ /** @returns {PdfConfigurationData} */
774
+ static PdfConfigurationData() {
775
+ return Joi.object({
776
+ _id: Joi.string().allow(""),
777
+ pdf_type_id: Joi.number(),
778
+ format: Joi.string().allow(""),
779
+ template: Joi.string().allow(""),
780
+ country_code: Joi.string().allow(""),
781
+ __v: Joi.number(),
782
+ });
783
+ }
784
+
785
+ /** @returns {UpdatedDefaultTemplateById} */
786
+ static UpdatedDefaultTemplateById() {
787
+ return Joi.object({
788
+ data: FileStoragePlatformModel.PdfConfigurationData(),
789
+ success: Joi.boolean(),
790
+ });
791
+ }
792
+
793
+ /** @returns {UpdateTemplate} */
794
+ static UpdateTemplate() {
795
+ return Joi.object({
796
+ pdf_type_id: Joi.number(),
797
+ format: Joi.string().allow(""),
798
+ country_code: Joi.string().allow(""),
799
+ template: Joi.string().allow(""),
800
+ store_os: Joi.boolean(),
801
+ });
802
+ }
803
+
804
+ /** @returns {PdfDefaultTemplateById} */
805
+ static PdfDefaultTemplateById() {
806
+ return Joi.object({
807
+ _id: Joi.string().allow(""),
808
+ country_code: Joi.string().allow(""),
809
+ format: Joi.string().allow(""),
810
+ pdf_type_id: Joi.number(),
811
+ __v: Joi.number(),
812
+ template: Joi.string().allow(""),
813
+ });
814
+ }
815
+
816
+ /** @returns {PdfTemplateCreateSuccess} */
817
+ static PdfTemplateCreateSuccess() {
818
+ return Joi.object({
819
+ code: Joi.number(),
820
+ success: Joi.boolean(),
821
+ data: FileStoragePlatformModel.PdfTemplateCreateSuccessData(),
822
+ });
823
+ }
824
+
825
+ /** @returns {PdfTemplateCreateSuccessData} */
826
+ static PdfTemplateCreateSuccessData() {
827
+ return Joi.object({
828
+ _id: Joi.string().allow(""),
829
+ pdf_type_id: Joi.number(),
830
+ format: Joi.string().allow(""),
831
+ template: Joi.string().allow(""),
832
+ country_code: Joi.string().allow(""),
833
+ __v: Joi.number(),
834
+ });
835
+ }
836
+
837
+ /** @returns {CreateTemplate} */
838
+ static CreateTemplate() {
839
+ return Joi.object({
840
+ pdf_type_id: Joi.number().required(),
841
+ format: Joi.string().allow("").required(),
842
+ country_code: Joi.string().allow("").required(),
843
+ template: Joi.string().allow(""),
844
+ });
845
+ }
846
+
847
+ /** @returns {PdfDefaultTemplateSuccess} */
848
+ static PdfDefaultTemplateSuccess() {
849
+ return Joi.object({
850
+ data: Joi.array().items(FileStoragePlatformModel.Document()),
851
+ success: Joi.boolean(),
852
+ });
853
+ }
854
+
855
+ /** @returns {FailedBrowseFilesResult} */
856
+ static FailedBrowseFilesResult() {
657
857
  return Joi.object({
658
858
  message: Joi.string().allow("").required(),
659
859
  });
@@ -676,8 +876,8 @@ class FileStoragePlatformModel {
676
876
  });
677
877
  }
678
878
 
679
- /** @returns {StartResponse} */
680
- static StartResponse() {
879
+ /** @returns {FileUpload} */
880
+ static FileUpload() {
681
881
  return Joi.object({
682
882
  file_name: Joi.string().allow("").required(),
683
883
  file_path: Joi.string().allow("").required(),
@@ -687,27 +887,18 @@ class FileStoragePlatformModel {
687
887
  operation: Joi.string().allow("").required(),
688
888
  size: Joi.number().required(),
689
889
  upload: FileStoragePlatformModel.Upload().required(),
690
- cdn: FileStoragePlatformModel.CDN().required(),
691
890
  tags: Joi.array().items(Joi.string().allow("")),
692
891
  });
693
892
  }
694
893
 
695
- /** @returns {Params} */
696
- static Params() {
697
- return Joi.object({
698
- subpath: Joi.string().allow(""),
699
- });
700
- }
701
-
702
- /** @returns {StartRequest} */
703
- static StartRequest() {
894
+ /** @returns {FileUploadStart} */
895
+ static FileUploadStart() {
704
896
  return Joi.object({
705
897
  file_name: Joi.string().allow("").required(),
706
898
  content_type: Joi.string().allow("").required(),
707
899
  size: Joi.number().required(),
708
900
  tags: Joi.array().items(Joi.string().allow("")),
709
901
  params: Joi.object().pattern(/\S/, Joi.any()),
710
- enc_key: Joi.string().allow(""),
711
902
  });
712
903
  }
713
904
 
@@ -718,8 +909,8 @@ class FileStoragePlatformModel {
718
909
  });
719
910
  }
720
911
 
721
- /** @returns {CompleteResponse} */
722
- static CompleteResponse() {
912
+ /** @returns {FileUploadComplete} */
913
+ static FileUploadComplete() {
723
914
  return Joi.object({
724
915
  _id: Joi.string().allow("").required(),
725
916
  file_name: Joi.string().allow("").required(),
@@ -739,6 +930,14 @@ class FileStoragePlatformModel {
739
930
  });
740
931
  }
741
932
 
933
+ /** @returns {ProxyFileAccess} */
934
+ static ProxyFileAccess() {
935
+ return Joi.object({
936
+ data: Joi.object().pattern(/\S/, Joi.any()),
937
+ support: Joi.object().pattern(/\S/, Joi.any()),
938
+ });
939
+ }
940
+
742
941
  /** @returns {DestinationNamespace} */
743
942
  static DestinationNamespace() {
744
943
  return Joi.object({
@@ -763,34 +962,23 @@ class FileStoragePlatformModel {
763
962
  });
764
963
  }
765
964
 
766
- /** @returns {SignUrlResponse} */
767
- static SignUrlResponse() {
965
+ /** @returns {SignUrlResult} */
966
+ static SignUrlResult() {
768
967
  return Joi.object({
769
968
  urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
770
969
  });
771
970
  }
772
971
 
773
- /** @returns {EncryptionMapping} */
774
- static EncryptionMapping() {
775
- return Joi.object({
776
- enc_url: Joi.string().allow(""),
777
- value: Joi.string().allow(""),
778
- });
779
- }
780
-
781
- /** @returns {SignUrlRequest} */
782
- static SignUrlRequest() {
972
+ /** @returns {SignUrl} */
973
+ static SignUrl() {
783
974
  return Joi.object({
784
975
  expiry: Joi.number().required(),
785
976
  urls: Joi.array().items(Joi.string().allow("")).required(),
786
- enc_url_mapping: Joi.array().items(
787
- FileStoragePlatformModel.EncryptionMapping()
788
- ),
789
977
  });
790
978
  }
791
979
 
792
- /** @returns {InvoiceTypesDataResponse} */
793
- static InvoiceTypesDataResponse() {
980
+ /** @returns {InvoiceTypesData} */
981
+ static InvoiceTypesData() {
794
982
  return Joi.object({
795
983
  status: Joi.boolean(),
796
984
  _id: Joi.string().allow("").required(),
@@ -799,15 +987,16 @@ class FileStoragePlatformModel {
799
987
  format: Joi.array().items(Joi.string().allow("")).required(),
800
988
  __v: Joi.number().required(),
801
989
  visibility: Joi.boolean().required(),
990
+ store_os: Joi.boolean().required(),
802
991
  country_code: Joi.string().allow("").required(),
803
992
  });
804
993
  }
805
994
 
806
- /** @returns {InvoiceTypesResponse} */
807
- static InvoiceTypesResponse() {
995
+ /** @returns {InvoiceTypes} */
996
+ static InvoiceTypes() {
808
997
  return Joi.object({
809
998
  data: Joi.array()
810
- .items(FileStoragePlatformModel.InvoiceTypesDataResponse())
999
+ .items(FileStoragePlatformModel.InvoiceTypesData())
811
1000
  .required(),
812
1001
  success: Joi.boolean().required(),
813
1002
  });
@@ -1178,8 +1367,8 @@ class FileStoragePlatformModel {
1178
1367
  });
1179
1368
  }
1180
1369
 
1181
- /** @returns {DummyTemplateDataPayload} */
1182
- static DummyTemplateDataPayload() {
1370
+ /** @returns {PdfPayloadDetails} */
1371
+ static PdfPayloadDetails() {
1183
1372
  return Joi.object({
1184
1373
  is_export: Joi.boolean(),
1185
1374
  is_export_shipment: Joi.boolean(),
@@ -1214,8 +1403,6 @@ class FileStoragePlatformModel {
1214
1403
  is_self_ship: Joi.boolean(),
1215
1404
  mode: Joi.string().allow(""),
1216
1405
  is_self_pickup: Joi.boolean(),
1217
- shipment_meta: Joi.object().pattern(/\S/, Joi.any()),
1218
- order_meta: Joi.object().pattern(/\S/, Joi.any()),
1219
1406
  platform_name: Joi.string().allow(""),
1220
1407
  amount_to_be_collected: Joi.number(),
1221
1408
  amount_paid: Joi.number(),
@@ -1236,14 +1423,34 @@ class FileStoragePlatformModel {
1236
1423
  return Joi.object({
1237
1424
  _id: Joi.string().allow(""),
1238
1425
  pdf_type_id: Joi.number(),
1239
- payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
1426
+ payload: FileStoragePlatformModel.PdfPayloadDetails().required(),
1240
1427
  country_code: Joi.string().allow(""),
1241
1428
  __v: Joi.number(),
1242
1429
  });
1243
1430
  }
1244
1431
 
1245
- /** @returns {DummyTemplateDataItems} */
1246
- static DummyTemplateDataItems() {
1432
+ /** @returns {savePdfPayload} */
1433
+ static savePdfPayload() {
1434
+ return Joi.object({
1435
+ pdf_type_id: Joi.number(),
1436
+ payload: FileStoragePlatformModel.PdfPayloadDetails(),
1437
+ country_code: Joi.string().allow(""),
1438
+ });
1439
+ }
1440
+
1441
+ /** @returns {MapperDetails} */
1442
+ static MapperDetails() {
1443
+ return Joi.object({
1444
+ _id: Joi.string().allow(""),
1445
+ pdf_type_id: Joi.number(),
1446
+ payload: FileStoragePlatformModel.PdfPayloadDetails(),
1447
+ country_code: Joi.string().allow(""),
1448
+ __v: Joi.number(),
1449
+ });
1450
+ }
1451
+
1452
+ /** @returns {PdfDataItemsDetails} */
1453
+ static PdfDataItemsDetails() {
1247
1454
  return Joi.object({
1248
1455
  data: Joi.array()
1249
1456
  .items(FileStoragePlatformModel.DummyTemplateData())
@@ -1258,6 +1465,8 @@ class FileStoragePlatformModel {
1258
1465
  format: Joi.string().allow(""),
1259
1466
  template: Joi.string().allow(""),
1260
1467
  pdf_type_id: Joi.number(),
1468
+ country_code: Joi.string().allow(""),
1469
+ default_template: Joi.boolean(),
1261
1470
  });
1262
1471
  }
1263
1472
 
@@ -1275,6 +1484,14 @@ class FileStoragePlatformModel {
1275
1484
  });
1276
1485
  }
1277
1486
 
1487
+ /** @returns {DeleteMapperById} */
1488
+ static DeleteMapperById() {
1489
+ return Joi.object({
1490
+ message: Joi.string().allow(""),
1491
+ default_template: Joi.boolean(),
1492
+ });
1493
+ }
1494
+
1278
1495
  /** @returns {PdfConfigSuccess} */
1279
1496
  static PdfConfigSuccess() {
1280
1497
  return Joi.object({
@@ -1304,14 +1521,6 @@ class FileStoragePlatformModel {
1304
1521
  });
1305
1522
  }
1306
1523
 
1307
- /** @returns {PdfDefaultTemplateSuccess} */
1308
- static PdfDefaultTemplateSuccess() {
1309
- return Joi.object({
1310
- data: Joi.array().items(FileStoragePlatformModel.Document()),
1311
- success: Joi.boolean(),
1312
- });
1313
- }
1314
-
1315
1524
  /** @returns {Document} */
1316
1525
  static Document() {
1317
1526
  return Joi.object({
@@ -1405,7 +1614,7 @@ class FileStoragePlatformModel {
1405
1614
  return Joi.object({
1406
1615
  job_type: Joi.string().allow(""),
1407
1616
  action: Joi.string().allow(""),
1408
- event: Joi.any(),
1617
+ event: Joi.object().pattern(/\S/, Joi.any()),
1409
1618
  organizaton_id: Joi.string().allow(""),
1410
1619
  company_id: Joi.number(),
1411
1620
  application_id: Joi.array().items(Joi.string().allow("")),
@@ -1413,7 +1622,7 @@ class FileStoragePlatformModel {
1413
1622
  trace_id: Joi.array().items(Joi.string().allow("")),
1414
1623
  created_timestamp: Joi.number(),
1415
1624
  service: FileStoragePlatformModel.PaymentReceiptService(),
1416
- event_trace_info: Joi.any(),
1625
+ event_trace_info: Joi.object().pattern(/\S/, Joi.any()),
1417
1626
  trace: Joi.string().allow(""),
1418
1627
  });
1419
1628
  }