@gofynd/fdk-client-javascript 1.2.0 → 1.3.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 (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +4 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -28,376 +28,12 @@ const Joi = require("joi");
28
28
  * @property {string} [request_id]
29
29
  */
30
30
 
31
- /**
32
- * @typedef ApplicationPermissions
33
- * @property {string[]} [permissions]
34
- * @property {string[]} [roles]
35
- */
36
-
37
- /**
38
- * @typedef ApprovedPermissions
39
- * @property {string[]} [application_role]
40
- * @property {string[]} [company_permissions]
41
- * @property {string[]} [company_role]
42
- */
43
-
44
- /**
45
- * @typedef ApprovedPermissionsInfo
46
- * @property {Object} [application_permissions]
47
- * @property {string[]} [company_permissions]
48
- */
49
-
50
- /**
51
- * @typedef Benefits
52
- * @property {string} [description]
53
- * @property {string} [title]
54
- */
55
-
56
- /**
57
- * @typedef Callback
58
- * @property {string} [auth]
59
- * @property {string} [auto_install]
60
- * @property {string} [install]
61
- * @property {string} [setup]
62
- * @property {string} [uninstall]
63
- */
64
-
65
- /**
66
- * @typedef Category
67
- * @property {CategoryL1[]} [category_l1]
68
- * @property {CategoryL2[]} [category_l2]
69
- */
70
-
71
- /**
72
- * @typedef CategoryL1
73
- * @property {string} [_id]
74
- * @property {string} [description]
75
- * @property {string} [display]
76
- * @property {number} [level]
77
- * @property {string} [logo]
78
- * @property {string} [slug]
79
- * @property {string} [value]
80
- */
81
-
82
- /**
83
- * @typedef CategoryL2
84
- * @property {string} [_id]
85
- * @property {string} [display]
86
- * @property {number} [level]
87
- * @property {string} [parent]
88
- * @property {string} [slug]
89
- * @property {string} [value]
90
- */
91
-
92
- /**
93
- * @typedef CommingSoon
94
- * @property {boolean} [is_coming_soon]
95
- * @property {number} [upvote_count]
96
- */
97
-
98
- /**
99
- * @typedef ContactInfo
100
- * @property {Support} [support]
101
- */
102
-
103
- /**
104
- * @typedef ExtensionCommon
105
- * @property {string} [base_url]
106
- * @property {Callback} [callbacks]
107
- * @property {string} [contact_email]
108
- * @property {string} [current_status]
109
- * @property {string} [description]
110
- * @property {string} [developed_by_name]
111
- * @property {string} [ext_version]
112
- * @property {string} [extention_type]
113
- * @property {boolean} [is_application_level]
114
- * @property {boolean} [is_coming_soon]
115
- * @property {boolean} [is_saleschannel]
116
- * @property {Logo} [logo]
117
- * @property {string} [name]
118
- * @property {string[]} [scope]
119
- */
120
-
121
- /**
122
- * @typedef ExtensionDetails
123
- * @property {Benefits[]} [benefits]
124
- * @property {string} [demo_url]
125
- * @property {string} [description]
126
- * @property {string[]} [integration]
127
- * @property {Screenshots} [screenshots]
128
- * @property {Object[]} [video_url]
129
- * @property {string[]} [youtube]
130
- */
131
-
132
- /**
133
- * @typedef ExtensionItems
134
- * @property {string} [base_url]
135
- * @property {string} [company]
136
- * @property {string} [description]
137
- * @property {string} [developed_by_name]
138
- * @property {string} [ext_version]
139
- * @property {string} [extension_id]
140
- * @property {string} [extention_type]
141
- * @property {boolean} [installed]
142
- * @property {boolean} [is_saleschannel]
143
- * @property {string} [launch_url]
144
- * @property {Logo} [logo]
145
- * @property {string} [name]
146
- * @property {Scope[]} [scope]
147
- */
148
-
149
- /**
150
- * @typedef ExtensionList
151
- * @property {ExtensionItems[]} [items]
152
- * @property {Pagination} [page]
153
- */
154
-
155
- /**
156
- * @typedef ExtensionListItems
157
- * @property {string} [_id]
158
- * @property {string} [base_url]
159
- * @property {Callback} [callbacks]
160
- * @property {string} [contact_email]
161
- * @property {string} [created_at]
162
- * @property {string} [current_status]
163
- * @property {string} [description]
164
- * @property {string} [developed_by_name]
165
- * @property {string} [ext_version]
166
- * @property {string} [extention_type]
167
- * @property {boolean} [is_application_level]
168
- * @property {boolean} [is_coming_soon]
169
- * @property {boolean} [is_hidden]
170
- * @property {boolean} [is_saleschannel]
171
- * @property {Logo} [logo]
172
- * @property {string} [modified_at]
173
- * @property {string} [name]
174
- * @property {string} [organization_id]
175
- * @property {string[]} [scope]
176
- * @property {string[]} [whitelisted_urls]
177
- */
178
-
179
- /**
180
- * @typedef ExtensionResponse
181
- * @property {ExtensionListItems[]} [items]
182
- * @property {Pagination} [page]
183
- */
184
-
185
- /**
186
- * @typedef ExtensionSuggestion
187
- * @property {ListingInfo} [listing_info]
188
- * @property {OrganizationBasicInfo} [organization]
189
- * @property {string} [organization_id]
190
- * @property {Plan[]} [plans]
191
- * @property {string} [slug]
192
- */
193
-
194
- /**
195
- * @typedef ExtensionSuggestionList
196
- * @property {ExtensionSuggestion[]} [items]
197
- */
198
-
199
- /**
200
- * @typedef getProxyPathRes
201
- * @property {AddProxyResponse[]} [items]
202
- * @property {Pagination} [page]
203
- */
204
-
205
- /**
206
- * @typedef ListingInfo
207
- * @property {string} [icon]
208
- * @property {string[]} [keywords]
209
- * @property {string} [name]
210
- * @property {string} [tagline]
211
- */
212
-
213
- /**
214
- * @typedef Logo
215
- * @property {string} [large]
216
- * @property {string} [small]
217
- */
218
-
219
- /**
220
- * @typedef ModifyPartnerReq
221
- * @property {string} [_id]
222
- * @property {string} [account_type]
223
- * @property {ApprovedPermissionsInfo} [approved_permissions]
224
- * @property {string} [comment]
225
- * @property {number} [company_id]
226
- * @property {string} [company_name]
227
- * @property {string} [organization_id]
228
- * @property {string} [organization_name]
229
- * @property {string} [request_status]
230
- * @property {RequestedPermissions} [requested_permissions]
231
- * @property {string} [user_id]
232
- */
233
-
234
- /**
235
- * @typedef OrganizationBasicInfo
236
- * @property {string} [name]
237
- * @property {string} [slug]
238
- */
239
-
240
- /**
241
- * @typedef Pagination
242
- * @property {number} [current]
243
- * @property {boolean} [has_next]
244
- * @property {number} [item_total]
245
- * @property {number} [size]
246
- * @property {string} [type]
247
- */
248
-
249
- /**
250
- * @typedef PartnerInviteDetails
251
- * @property {string} [_id]
252
- * @property {string} [account_type]
253
- * @property {ApprovedPermissions} [approved_permissions]
254
- * @property {string} [comment]
255
- * @property {number} [company_id]
256
- * @property {string} [company_name]
257
- * @property {string} [created_at]
258
- * @property {string} [modified_at]
259
- * @property {string} [organization_id]
260
- * @property {string} [organization_name]
261
- * @property {string} [request_status]
262
- * @property {RequestedPermissions} [requested_permissions]
263
- * @property {string} [user_id]
264
- */
265
-
266
- /**
267
- * @typedef PartnerList
268
- * @property {string} [_id]
269
- * @property {string} [account_type]
270
- * @property {ApprovedPermissionsInfo} [approved_permissions]
271
- * @property {string} [approver_id]
272
- * @property {string} [comment]
273
- * @property {number} [company_id]
274
- * @property {string} [company_name]
275
- * @property {string} [created_at]
276
- * @property {string} [modified_at]
277
- * @property {string} [organization_id]
278
- * @property {string} [organization_name]
279
- * @property {string} [request_status]
280
- * @property {RequestedPermissions} [requested_permissions]
281
- * @property {string} [user_id]
282
- */
283
-
284
- /**
285
- * @typedef PartnerRequestList
286
- * @property {PartnerList} [items]
287
- * @property {Pagination} [page]
288
- */
289
-
290
- /**
291
- * @typedef Plan
292
- * @property {string} [additional_charges]
293
- * @property {string} [features]
294
- * @property {string} [name]
295
- * @property {Price} [price]
296
- * @property {number} [trial_days]
297
- * @property {string} [type]
298
- */
299
-
300
- /**
301
- * @typedef Plans
302
- * @property {string} [additional_charges]
303
- * @property {string} [features]
304
- * @property {string} [name]
305
- * @property {Price} [price]
306
- * @property {number} [trial_days]
307
- * @property {string} [type]
308
- */
309
-
310
- /**
311
- * @typedef Price
312
- * @property {number} [amount]
313
- * @property {string} [currency]
314
- */
315
-
316
- /**
317
- * @typedef PublicExtension
318
- * @property {string} [_id]
319
- * @property {Category} [category]
320
- * @property {CommingSoon} [coming_soon]
321
- * @property {ContactInfo} [contact_info]
322
- * @property {string} [created_at]
323
- * @property {string} [current_status]
324
- * @property {ExtensionDetails} [details]
325
- * @property {string} [extension_id]
326
- * @property {boolean} [is_coming_soon]
327
- * @property {ListingInfo} [listing_info]
328
- * @property {string} [modified_at]
329
- * @property {OrganizationBasicInfo} [organization]
330
- * @property {string} [organization_id]
331
- * @property {string} [plan_type]
332
- * @property {Plans[]} [plans]
333
- * @property {string} [plans_url]
334
- * @property {string} [review_instructions]
335
- * @property {string[]} [scope]
336
- * @property {string} [slug]
337
- */
338
-
339
31
  /**
340
32
  * @typedef RemoveProxyResponse
341
33
  * @property {Object} [data]
342
34
  * @property {string} [message]
343
35
  */
344
36
 
345
- /**
346
- * @typedef RequestedPermissions
347
- * @property {string[]} [application_permissions]
348
- * @property {string[]} [application_role]
349
- * @property {string[]} [company_permissions]
350
- * @property {string[]} [company_role]
351
- */
352
-
353
- /**
354
- * @typedef Scope
355
- * @property {string} [description]
356
- * @property {string} [name]
357
- */
358
-
359
- /**
360
- * @typedef Screenshots
361
- * @property {string[]} [desktop]
362
- * @property {string[]} [mobile]
363
- */
364
-
365
- /**
366
- * @typedef SetupProductRes
367
- * @property {number} [cli_wait_time]
368
- * @property {string} [message]
369
- * @property {number} [next_step]
370
- * @property {string} [request_id]
371
- */
372
-
373
- /**
374
- * @typedef SubscriptionRequest
375
- * @property {string} [approved]
376
- * @property {string} [client_id]
377
- * @property {string} [company_id]
378
- * @property {string} [credit_balance]
379
- * @property {string} [request_id]
380
- */
381
-
382
- /**
383
- * @typedef SubscriptionRes
384
- * @property {string} [redirect_url]
385
- */
386
-
387
- /**
388
- * @typedef Support
389
- * @property {string} [email]
390
- * @property {string} [faq_url]
391
- * @property {string} [phone]
392
- * @property {string} [privacy_policy_url]
393
- * @property {string} [website_url]
394
- */
395
-
396
- /**
397
- * @typedef UninstallExtension
398
- * @property {boolean} [success]
399
- */
400
-
401
37
  class PartnerPlatformModel {
402
38
  /** @returns {AddProxyReq} */
403
39
  static AddProxyReq() {
@@ -432,379 +68,6 @@ class PartnerPlatformModel {
432
68
  });
433
69
  }
434
70
 
435
- /** @returns {ApplicationPermissions} */
436
- static ApplicationPermissions() {
437
- return Joi.object({
438
- permissions: Joi.array().items(Joi.string().allow("")),
439
- roles: Joi.array().items(Joi.string().allow("")),
440
- });
441
- }
442
-
443
- /** @returns {ApprovedPermissions} */
444
- static ApprovedPermissions() {
445
- return Joi.object({
446
- application_role: Joi.array().items(Joi.string().allow("")),
447
- company_permissions: Joi.array().items(Joi.string().allow("")),
448
- company_role: Joi.array().items(Joi.string().allow("")),
449
- });
450
- }
451
-
452
- /** @returns {ApprovedPermissionsInfo} */
453
- static ApprovedPermissionsInfo() {
454
- return Joi.object({
455
- application_permissions: Joi.object().pattern(
456
- /\S/,
457
- PartnerPlatformModel.ApplicationPermissions()
458
- ),
459
- company_permissions: Joi.array().items(Joi.string().allow("")),
460
- });
461
- }
462
-
463
- /** @returns {Benefits} */
464
- static Benefits() {
465
- return Joi.object({
466
- description: Joi.string().allow(""),
467
- title: Joi.string().allow(""),
468
- });
469
- }
470
-
471
- /** @returns {Callback} */
472
- static Callback() {
473
- return Joi.object({
474
- auth: Joi.string().allow(""),
475
- auto_install: Joi.string().allow(""),
476
- install: Joi.string().allow(""),
477
- setup: Joi.string().allow(""),
478
- uninstall: Joi.string().allow(""),
479
- });
480
- }
481
-
482
- /** @returns {Category} */
483
- static Category() {
484
- return Joi.object({
485
- category_l1: Joi.array().items(PartnerPlatformModel.CategoryL1()),
486
- category_l2: Joi.array().items(PartnerPlatformModel.CategoryL2()),
487
- });
488
- }
489
-
490
- /** @returns {CategoryL1} */
491
- static CategoryL1() {
492
- return Joi.object({
493
- _id: Joi.string().allow(""),
494
- description: Joi.string().allow(""),
495
- display: Joi.string().allow(""),
496
- level: Joi.number(),
497
- logo: Joi.string().allow(""),
498
- slug: Joi.string().allow(""),
499
- value: Joi.string().allow(""),
500
- });
501
- }
502
-
503
- /** @returns {CategoryL2} */
504
- static CategoryL2() {
505
- return Joi.object({
506
- _id: Joi.string().allow(""),
507
- display: Joi.string().allow(""),
508
- level: Joi.number(),
509
- parent: Joi.string().allow(""),
510
- slug: Joi.string().allow(""),
511
- value: Joi.string().allow(""),
512
- });
513
- }
514
-
515
- /** @returns {CommingSoon} */
516
- static CommingSoon() {
517
- return Joi.object({
518
- is_coming_soon: Joi.boolean(),
519
- upvote_count: Joi.number(),
520
- });
521
- }
522
-
523
- /** @returns {ContactInfo} */
524
- static ContactInfo() {
525
- return Joi.object({
526
- support: PartnerPlatformModel.Support(),
527
- });
528
- }
529
-
530
- /** @returns {ExtensionCommon} */
531
- static ExtensionCommon() {
532
- return Joi.object({
533
- base_url: Joi.string().allow(""),
534
- callbacks: PartnerPlatformModel.Callback(),
535
- contact_email: Joi.string().allow(""),
536
- current_status: Joi.string().allow(""),
537
- description: Joi.string().allow(""),
538
- developed_by_name: Joi.string().allow(""),
539
- ext_version: Joi.string().allow(""),
540
- extention_type: Joi.string().allow(""),
541
- is_application_level: Joi.boolean(),
542
- is_coming_soon: Joi.boolean(),
543
- is_saleschannel: Joi.boolean(),
544
- logo: PartnerPlatformModel.Logo(),
545
- name: Joi.string().allow(""),
546
- scope: Joi.array().items(Joi.string().allow("")),
547
- });
548
- }
549
-
550
- /** @returns {ExtensionDetails} */
551
- static ExtensionDetails() {
552
- return Joi.object({
553
- benefits: Joi.array().items(PartnerPlatformModel.Benefits()),
554
- demo_url: Joi.string().allow(""),
555
- description: Joi.string().allow(""),
556
- integration: Joi.array().items(Joi.string().allow("")),
557
- screenshots: PartnerPlatformModel.Screenshots(),
558
- video_url: Joi.array().items(Joi.any()),
559
- youtube: Joi.array().items(Joi.string().allow("")),
560
- });
561
- }
562
-
563
- /** @returns {ExtensionItems} */
564
- static ExtensionItems() {
565
- return Joi.object({
566
- base_url: Joi.string().allow(""),
567
- company: Joi.string().allow(""),
568
- description: Joi.string().allow(""),
569
- developed_by_name: Joi.string().allow(""),
570
- ext_version: Joi.string().allow(""),
571
- extension_id: Joi.string().allow(""),
572
- extention_type: Joi.string().allow(""),
573
- installed: Joi.boolean(),
574
- is_saleschannel: Joi.boolean(),
575
- launch_url: Joi.string().allow(""),
576
- logo: PartnerPlatformModel.Logo(),
577
- name: Joi.string().allow(""),
578
- scope: Joi.array().items(PartnerPlatformModel.Scope()),
579
- });
580
- }
581
-
582
- /** @returns {ExtensionList} */
583
- static ExtensionList() {
584
- return Joi.object({
585
- items: Joi.array().items(PartnerPlatformModel.ExtensionItems()),
586
- page: PartnerPlatformModel.Pagination(),
587
- });
588
- }
589
-
590
- /** @returns {ExtensionListItems} */
591
- static ExtensionListItems() {
592
- return Joi.object({
593
- _id: Joi.string().allow(""),
594
- base_url: Joi.string().allow(""),
595
- callbacks: PartnerPlatformModel.Callback(),
596
- contact_email: Joi.string().allow(""),
597
- created_at: Joi.string().allow(""),
598
- current_status: Joi.string().allow(""),
599
- description: Joi.string().allow(""),
600
- developed_by_name: Joi.string().allow(""),
601
- ext_version: Joi.string().allow(""),
602
- extention_type: Joi.string().allow(""),
603
- is_application_level: Joi.boolean(),
604
- is_coming_soon: Joi.boolean(),
605
- is_hidden: Joi.boolean(),
606
- is_saleschannel: Joi.boolean(),
607
- logo: PartnerPlatformModel.Logo(),
608
- modified_at: Joi.string().allow(""),
609
- name: Joi.string().allow(""),
610
- organization_id: Joi.string().allow(""),
611
- scope: Joi.array().items(Joi.string().allow("")),
612
- whitelisted_urls: Joi.array().items(Joi.string().allow("")),
613
- });
614
- }
615
-
616
- /** @returns {ExtensionResponse} */
617
- static ExtensionResponse() {
618
- return Joi.object({
619
- items: Joi.array().items(PartnerPlatformModel.ExtensionListItems()),
620
- page: PartnerPlatformModel.Pagination(),
621
- });
622
- }
623
-
624
- /** @returns {ExtensionSuggestion} */
625
- static ExtensionSuggestion() {
626
- return Joi.object({
627
- listing_info: PartnerPlatformModel.ListingInfo(),
628
- organization: PartnerPlatformModel.OrganizationBasicInfo(),
629
- organization_id: Joi.string().allow(""),
630
- plans: Joi.array().items(PartnerPlatformModel.Plan()),
631
- slug: Joi.string().allow(""),
632
- });
633
- }
634
-
635
- /** @returns {ExtensionSuggestionList} */
636
- static ExtensionSuggestionList() {
637
- return Joi.object({
638
- items: Joi.array().items(PartnerPlatformModel.ExtensionSuggestion()),
639
- });
640
- }
641
-
642
- /** @returns {getProxyPathRes} */
643
- static getProxyPathRes() {
644
- return Joi.object({
645
- items: Joi.array().items(PartnerPlatformModel.AddProxyResponse()),
646
- page: PartnerPlatformModel.Pagination(),
647
- });
648
- }
649
-
650
- /** @returns {ListingInfo} */
651
- static ListingInfo() {
652
- return Joi.object({
653
- icon: Joi.string().allow(""),
654
- keywords: Joi.array().items(Joi.string().allow("")),
655
- name: Joi.string().allow(""),
656
- tagline: Joi.string().allow(""),
657
- });
658
- }
659
-
660
- /** @returns {Logo} */
661
- static Logo() {
662
- return Joi.object({
663
- large: Joi.string().allow(""),
664
- small: Joi.string().allow(""),
665
- });
666
- }
667
-
668
- /** @returns {ModifyPartnerReq} */
669
- static ModifyPartnerReq() {
670
- return Joi.object({
671
- _id: Joi.string().allow(""),
672
- account_type: Joi.string().allow(""),
673
- approved_permissions: PartnerPlatformModel.ApprovedPermissionsInfo(),
674
- comment: Joi.string().allow(""),
675
- company_id: Joi.number(),
676
- company_name: Joi.string().allow(""),
677
- organization_id: Joi.string().allow(""),
678
- organization_name: Joi.string().allow(""),
679
- request_status: Joi.string().allow(""),
680
- requested_permissions: PartnerPlatformModel.RequestedPermissions(),
681
- user_id: Joi.string().allow(""),
682
- });
683
- }
684
-
685
- /** @returns {OrganizationBasicInfo} */
686
- static OrganizationBasicInfo() {
687
- return Joi.object({
688
- name: Joi.string().allow(""),
689
- slug: Joi.string().allow(""),
690
- });
691
- }
692
-
693
- /** @returns {Pagination} */
694
- static Pagination() {
695
- return Joi.object({
696
- current: Joi.number(),
697
- has_next: Joi.boolean(),
698
- item_total: Joi.number(),
699
- size: Joi.number(),
700
- type: Joi.string().allow(""),
701
- });
702
- }
703
-
704
- /** @returns {PartnerInviteDetails} */
705
- static PartnerInviteDetails() {
706
- return Joi.object({
707
- _id: Joi.string().allow(""),
708
- account_type: Joi.string().allow(""),
709
- approved_permissions: PartnerPlatformModel.ApprovedPermissions(),
710
- comment: Joi.string().allow(""),
711
- company_id: Joi.number(),
712
- company_name: Joi.string().allow(""),
713
- created_at: Joi.string().allow(""),
714
- modified_at: Joi.string().allow(""),
715
- organization_id: Joi.string().allow(""),
716
- organization_name: Joi.string().allow(""),
717
- request_status: Joi.string().allow(""),
718
- requested_permissions: PartnerPlatformModel.RequestedPermissions(),
719
- user_id: Joi.string().allow(""),
720
- });
721
- }
722
-
723
- /** @returns {PartnerList} */
724
- static PartnerList() {
725
- return Joi.object({
726
- _id: Joi.string().allow(""),
727
- account_type: Joi.string().allow(""),
728
- approved_permissions: PartnerPlatformModel.ApprovedPermissionsInfo(),
729
- approver_id: Joi.string().allow(""),
730
- comment: Joi.string().allow(""),
731
- company_id: Joi.number(),
732
- company_name: Joi.string().allow(""),
733
- created_at: Joi.string().allow(""),
734
- modified_at: Joi.string().allow(""),
735
- organization_id: Joi.string().allow(""),
736
- organization_name: Joi.string().allow(""),
737
- request_status: Joi.string().allow(""),
738
- requested_permissions: PartnerPlatformModel.RequestedPermissions(),
739
- user_id: Joi.string().allow(""),
740
- });
741
- }
742
-
743
- /** @returns {PartnerRequestList} */
744
- static PartnerRequestList() {
745
- return Joi.object({
746
- items: PartnerPlatformModel.PartnerList(),
747
- page: PartnerPlatformModel.Pagination(),
748
- });
749
- }
750
-
751
- /** @returns {Plan} */
752
- static Plan() {
753
- return Joi.object({
754
- additional_charges: Joi.string().allow(""),
755
- features: Joi.string().allow(""),
756
- name: Joi.string().allow(""),
757
- price: PartnerPlatformModel.Price(),
758
- trial_days: Joi.number(),
759
- type: Joi.string().allow(""),
760
- });
761
- }
762
-
763
- /** @returns {Plans} */
764
- static Plans() {
765
- return Joi.object({
766
- additional_charges: Joi.string().allow(""),
767
- features: Joi.string().allow(""),
768
- name: Joi.string().allow(""),
769
- price: PartnerPlatformModel.Price(),
770
- trial_days: Joi.number(),
771
- type: Joi.string().allow(""),
772
- });
773
- }
774
-
775
- /** @returns {Price} */
776
- static Price() {
777
- return Joi.object({
778
- amount: Joi.number(),
779
- currency: Joi.string().allow(""),
780
- });
781
- }
782
-
783
- /** @returns {PublicExtension} */
784
- static PublicExtension() {
785
- return Joi.object({
786
- _id: Joi.string().allow(""),
787
- category: PartnerPlatformModel.Category(),
788
- coming_soon: PartnerPlatformModel.CommingSoon(),
789
- contact_info: PartnerPlatformModel.ContactInfo(),
790
- created_at: Joi.string().allow(""),
791
- current_status: Joi.string().allow(""),
792
- details: PartnerPlatformModel.ExtensionDetails(),
793
- extension_id: Joi.string().allow(""),
794
- is_coming_soon: Joi.boolean(),
795
- listing_info: PartnerPlatformModel.ListingInfo(),
796
- modified_at: Joi.string().allow(""),
797
- organization: PartnerPlatformModel.OrganizationBasicInfo(),
798
- organization_id: Joi.string().allow(""),
799
- plan_type: Joi.string().allow(""),
800
- plans: Joi.array().items(PartnerPlatformModel.Plans()),
801
- plans_url: Joi.string().allow(""),
802
- review_instructions: Joi.string().allow(""),
803
- scope: Joi.array().items(Joi.string().allow("")),
804
- slug: Joi.string().allow(""),
805
- });
806
- }
807
-
808
71
  /** @returns {RemoveProxyResponse} */
809
72
  static RemoveProxyResponse() {
810
73
  return Joi.object({
@@ -812,77 +75,5 @@ class PartnerPlatformModel {
812
75
  message: Joi.string().allow(""),
813
76
  });
814
77
  }
815
-
816
- /** @returns {RequestedPermissions} */
817
- static RequestedPermissions() {
818
- return Joi.object({
819
- application_permissions: Joi.array().items(Joi.string().allow("")),
820
- application_role: Joi.array().items(Joi.string().allow("")),
821
- company_permissions: Joi.array().items(Joi.string().allow("")),
822
- company_role: Joi.array().items(Joi.string().allow("")),
823
- });
824
- }
825
-
826
- /** @returns {Scope} */
827
- static Scope() {
828
- return Joi.object({
829
- description: Joi.string().allow(""),
830
- name: Joi.string().allow(""),
831
- });
832
- }
833
-
834
- /** @returns {Screenshots} */
835
- static Screenshots() {
836
- return Joi.object({
837
- desktop: Joi.array().items(Joi.string().allow("")),
838
- mobile: Joi.array().items(Joi.string().allow("")),
839
- });
840
- }
841
-
842
- /** @returns {SetupProductRes} */
843
- static SetupProductRes() {
844
- return Joi.object({
845
- cli_wait_time: Joi.number(),
846
- message: Joi.string().allow(""),
847
- next_step: Joi.number(),
848
- request_id: Joi.string().allow(""),
849
- });
850
- }
851
-
852
- /** @returns {SubscriptionRequest} */
853
- static SubscriptionRequest() {
854
- return Joi.object({
855
- approved: Joi.string().allow(""),
856
- client_id: Joi.string().allow(""),
857
- company_id: Joi.string().allow(""),
858
- credit_balance: Joi.string().allow(""),
859
- request_id: Joi.string().allow(""),
860
- });
861
- }
862
-
863
- /** @returns {SubscriptionRes} */
864
- static SubscriptionRes() {
865
- return Joi.object({
866
- redirect_url: Joi.string().allow(""),
867
- });
868
- }
869
-
870
- /** @returns {Support} */
871
- static Support() {
872
- return Joi.object({
873
- email: Joi.string().allow(""),
874
- faq_url: Joi.string().allow(""),
875
- phone: Joi.string().allow(""),
876
- privacy_policy_url: Joi.string().allow(""),
877
- website_url: Joi.string().allow(""),
878
- });
879
- }
880
-
881
- /** @returns {UninstallExtension} */
882
- static UninstallExtension() {
883
- return Joi.object({
884
- success: Joi.boolean(),
885
- });
886
- }
887
78
  }
888
79
  module.exports = PartnerPlatformModel;