@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,50 +1,34 @@
1
1
  export = PartnerPublicModel;
2
- /**
3
- * @typedef Benefits
4
- * @property {string} [description]
5
- * @property {string} [title]
6
- */
7
- /**
8
- * @typedef CategoryCommon
9
- * @property {CategoryL1[]} [category_l1]
10
- * @property {CategoryL2[]} [category_l2]
11
- */
12
2
  /**
13
3
  * @typedef CategoryL1
14
- * @property {string} [_id]
15
4
  * @property {string} [description]
16
5
  * @property {string} [display]
17
6
  * @property {number} [level]
18
7
  * @property {string} [logo]
19
8
  * @property {string} [slug]
20
9
  * @property {string} [value]
10
+ * @property {string} [_id]
21
11
  */
22
12
  /**
23
13
  * @typedef CategoryL2
24
- * @property {string} [_id]
14
+ * @property {string} [parent]
25
15
  * @property {string} [display]
26
16
  * @property {number} [level]
27
- * @property {string} [parent]
28
17
  * @property {string} [slug]
29
18
  * @property {string} [value]
19
+ * @property {string} [_id]
30
20
  */
31
21
  /**
32
- * @typedef ContactInfo
33
- * @property {Support} [support]
22
+ * @typedef CategoryCommon
23
+ * @property {CategoryL1[]} [category_l1]
24
+ * @property {CategoryL2[]} [category_l2]
34
25
  */
35
26
  /**
36
- * @typedef Details
37
- * @property {Benefits[]} [benefits]
38
- * @property {string} [demo_url]
39
- * @property {string} [description]
40
- * @property {string[]} [integration]
41
- * @property {Screenshots} [screenshots]
42
- * @property {Object[]} [video_url]
43
- * @property {string[]} [youtube]
27
+ * @typedef ContactInfo
28
+ * @property {Support} [support]
44
29
  */
45
30
  /**
46
31
  * @typedef ExtensionUsingSlug
47
- * @property {string} [_id]
48
32
  * @property {CategoryCommon} [category]
49
33
  * @property {ContactInfo} [contact_info]
50
34
  * @property {string} [created_at]
@@ -62,13 +46,7 @@ export = PartnerPublicModel;
62
46
  * @property {string} [review_instructions]
63
47
  * @property {string[]} [scope]
64
48
  * @property {string} [slug]
65
- */
66
- /**
67
- * @typedef ListingInfo
68
- * @property {string} [icon]
69
- * @property {string[]} [keywords]
70
- * @property {string} [name]
71
- * @property {string} [tagline]
49
+ * @property {string} [_id]
72
50
  */
73
51
  /**
74
52
  * @typedef Organization
@@ -76,31 +54,32 @@ export = PartnerPublicModel;
76
54
  * @property {string} [slug]
77
55
  */
78
56
  /**
79
- * @typedef Plans
80
- * @property {string} [additional_charges]
81
- * @property {string} [features]
57
+ * @typedef ListingInfo
58
+ * @property {string} [icon]
59
+ * @property {string[]} [keywords]
82
60
  * @property {string} [name]
83
- * @property {Price} [price]
84
- * @property {Recurring} [recurring]
85
- * @property {number} [trial_days]
86
- * @property {string} [type]
87
- */
88
- /**
89
- * @typedef Price
90
- * @property {number} [amount]
91
- * @property {string} [currency]
61
+ * @property {string} [tagline]
92
62
  */
93
63
  /**
94
- * @typedef Recurring
95
- * @property {number} [recurring_time]
96
- * @property {string} [type]
97
- * @property {number} [yearly_amount]
64
+ * @typedef Benefits
65
+ * @property {string} [title]
66
+ * @property {string} [description]
98
67
  */
99
68
  /**
100
69
  * @typedef Screenshots
101
70
  * @property {string[]} [desktop]
102
71
  * @property {string[]} [mobile]
103
72
  */
73
+ /**
74
+ * @typedef Details
75
+ * @property {Benefits[]} [benefits]
76
+ * @property {string} [demo_url]
77
+ * @property {string} [description]
78
+ * @property {string[]} [integration]
79
+ * @property {Object[]} [video_url]
80
+ * @property {string[]} [youtube]
81
+ * @property {Screenshots} [screenshots]
82
+ */
104
83
  /**
105
84
  * @typedef Support
106
85
  * @property {string} [email]
@@ -109,64 +88,67 @@ export = PartnerPublicModel;
109
88
  * @property {string} [privacy_policy_url]
110
89
  * @property {string} [website_url]
111
90
  */
91
+ /**
92
+ * @typedef Price
93
+ * @property {number} [amount]
94
+ * @property {string} [currency]
95
+ */
96
+ /**
97
+ * @typedef Plans
98
+ * @property {string} [additional_charges]
99
+ * @property {string} [features]
100
+ * @property {string} [name]
101
+ * @property {number} [trial_days]
102
+ * @property {string} [type]
103
+ * @property {Price} [price]
104
+ * @property {Recurring} [recurring]
105
+ */
106
+ /**
107
+ * @typedef Recurring
108
+ * @property {number} [recurring_time]
109
+ * @property {number} [yearly_amount]
110
+ * @property {string} [type]
111
+ */
112
112
  declare class PartnerPublicModel {
113
113
  }
114
114
  declare namespace PartnerPublicModel {
115
- export { Benefits, CategoryCommon, CategoryL1, CategoryL2, ContactInfo, Details, ExtensionUsingSlug, ListingInfo, Organization, Plans, Price, Recurring, Screenshots, Support };
115
+ export { CategoryL1, CategoryL2, CategoryCommon, ContactInfo, ExtensionUsingSlug, Organization, ListingInfo, Benefits, Screenshots, Details, Support, Price, Plans, Recurring };
116
116
  }
117
- /** @returns {Benefits} */
118
- declare function Benefits(): Benefits;
119
- type Benefits = {
120
- description?: string;
121
- title?: string;
122
- };
123
- /** @returns {CategoryCommon} */
124
- declare function CategoryCommon(): CategoryCommon;
125
- type CategoryCommon = {
126
- category_l1?: CategoryL1[];
127
- category_l2?: CategoryL2[];
128
- };
129
117
  /** @returns {CategoryL1} */
130
118
  declare function CategoryL1(): CategoryL1;
131
119
  type CategoryL1 = {
132
- _id?: string;
133
120
  description?: string;
134
121
  display?: string;
135
122
  level?: number;
136
123
  logo?: string;
137
124
  slug?: string;
138
125
  value?: string;
126
+ _id?: string;
139
127
  };
140
128
  /** @returns {CategoryL2} */
141
129
  declare function CategoryL2(): CategoryL2;
142
130
  type CategoryL2 = {
143
- _id?: string;
131
+ parent?: string;
144
132
  display?: string;
145
133
  level?: number;
146
- parent?: string;
147
134
  slug?: string;
148
135
  value?: string;
136
+ _id?: string;
137
+ };
138
+ /** @returns {CategoryCommon} */
139
+ declare function CategoryCommon(): CategoryCommon;
140
+ type CategoryCommon = {
141
+ category_l1?: CategoryL1[];
142
+ category_l2?: CategoryL2[];
149
143
  };
150
144
  /** @returns {ContactInfo} */
151
145
  declare function ContactInfo(): ContactInfo;
152
146
  type ContactInfo = {
153
147
  support?: Support;
154
148
  };
155
- /** @returns {Details} */
156
- declare function Details(): Details;
157
- type Details = {
158
- benefits?: Benefits[];
159
- demo_url?: string;
160
- description?: string;
161
- integration?: string[];
162
- screenshots?: Screenshots;
163
- video_url?: any[];
164
- youtube?: string[];
165
- };
166
149
  /** @returns {ExtensionUsingSlug} */
167
150
  declare function ExtensionUsingSlug(): ExtensionUsingSlug;
168
151
  type ExtensionUsingSlug = {
169
- _id?: string;
170
152
  category?: CategoryCommon;
171
153
  contact_info?: ContactInfo;
172
154
  created_at?: string;
@@ -184,14 +166,7 @@ type ExtensionUsingSlug = {
184
166
  review_instructions?: string;
185
167
  scope?: string[];
186
168
  slug?: string;
187
- };
188
- /** @returns {ListingInfo} */
189
- declare function ListingInfo(): ListingInfo;
190
- type ListingInfo = {
191
- icon?: string;
192
- keywords?: string[];
193
- name?: string;
194
- tagline?: string;
169
+ _id?: string;
195
170
  };
196
171
  /** @returns {Organization} */
197
172
  declare function Organization(): Organization;
@@ -199,29 +174,19 @@ type Organization = {
199
174
  name?: string;
200
175
  slug?: string;
201
176
  };
202
- /** @returns {Plans} */
203
- declare function Plans(): Plans;
204
- type Plans = {
205
- additional_charges?: string;
206
- features?: string;
177
+ /** @returns {ListingInfo} */
178
+ declare function ListingInfo(): ListingInfo;
179
+ type ListingInfo = {
180
+ icon?: string;
181
+ keywords?: string[];
207
182
  name?: string;
208
- price?: Price;
209
- recurring?: Recurring;
210
- trial_days?: number;
211
- type?: string;
212
- };
213
- /** @returns {Price} */
214
- declare function Price(): Price;
215
- type Price = {
216
- amount?: number;
217
- currency?: string;
183
+ tagline?: string;
218
184
  };
219
- /** @returns {Recurring} */
220
- declare function Recurring(): Recurring;
221
- type Recurring = {
222
- recurring_time?: number;
223
- type?: string;
224
- yearly_amount?: number;
185
+ /** @returns {Benefits} */
186
+ declare function Benefits(): Benefits;
187
+ type Benefits = {
188
+ title?: string;
189
+ description?: string;
225
190
  };
226
191
  /** @returns {Screenshots} */
227
192
  declare function Screenshots(): Screenshots;
@@ -229,6 +194,17 @@ type Screenshots = {
229
194
  desktop?: string[];
230
195
  mobile?: string[];
231
196
  };
197
+ /** @returns {Details} */
198
+ declare function Details(): Details;
199
+ type Details = {
200
+ benefits?: Benefits[];
201
+ demo_url?: string;
202
+ description?: string;
203
+ integration?: string[];
204
+ video_url?: any[];
205
+ youtube?: string[];
206
+ screenshots?: Screenshots;
207
+ };
232
208
  /** @returns {Support} */
233
209
  declare function Support(): Support;
234
210
  type Support = {
@@ -238,3 +214,27 @@ type Support = {
238
214
  privacy_policy_url?: string;
239
215
  website_url?: string;
240
216
  };
217
+ /** @returns {Price} */
218
+ declare function Price(): Price;
219
+ type Price = {
220
+ amount?: number;
221
+ currency?: string;
222
+ };
223
+ /** @returns {Plans} */
224
+ declare function Plans(): Plans;
225
+ type Plans = {
226
+ additional_charges?: string;
227
+ features?: string;
228
+ name?: string;
229
+ trial_days?: number;
230
+ type?: string;
231
+ price?: Price;
232
+ recurring?: Recurring;
233
+ };
234
+ /** @returns {Recurring} */
235
+ declare function Recurring(): Recurring;
236
+ type Recurring = {
237
+ recurring_time?: number;
238
+ yearly_amount?: number;
239
+ type?: string;
240
+ };
@@ -1,57 +1,39 @@
1
1
  const Joi = require("joi");
2
2
 
3
- /**
4
- * @typedef Benefits
5
- * @property {string} [description]
6
- * @property {string} [title]
7
- */
8
-
9
- /**
10
- * @typedef CategoryCommon
11
- * @property {CategoryL1[]} [category_l1]
12
- * @property {CategoryL2[]} [category_l2]
13
- */
14
-
15
3
  /**
16
4
  * @typedef CategoryL1
17
- * @property {string} [_id]
18
5
  * @property {string} [description]
19
6
  * @property {string} [display]
20
7
  * @property {number} [level]
21
8
  * @property {string} [logo]
22
9
  * @property {string} [slug]
23
10
  * @property {string} [value]
11
+ * @property {string} [_id]
24
12
  */
25
13
 
26
14
  /**
27
15
  * @typedef CategoryL2
28
- * @property {string} [_id]
16
+ * @property {string} [parent]
29
17
  * @property {string} [display]
30
18
  * @property {number} [level]
31
- * @property {string} [parent]
32
19
  * @property {string} [slug]
33
20
  * @property {string} [value]
21
+ * @property {string} [_id]
34
22
  */
35
23
 
36
24
  /**
37
- * @typedef ContactInfo
38
- * @property {Support} [support]
25
+ * @typedef CategoryCommon
26
+ * @property {CategoryL1[]} [category_l1]
27
+ * @property {CategoryL2[]} [category_l2]
39
28
  */
40
29
 
41
30
  /**
42
- * @typedef Details
43
- * @property {Benefits[]} [benefits]
44
- * @property {string} [demo_url]
45
- * @property {string} [description]
46
- * @property {string[]} [integration]
47
- * @property {Screenshots} [screenshots]
48
- * @property {Object[]} [video_url]
49
- * @property {string[]} [youtube]
31
+ * @typedef ContactInfo
32
+ * @property {Support} [support]
50
33
  */
51
34
 
52
35
  /**
53
36
  * @typedef ExtensionUsingSlug
54
- * @property {string} [_id]
55
37
  * @property {CategoryCommon} [category]
56
38
  * @property {ContactInfo} [contact_info]
57
39
  * @property {string} [created_at]
@@ -69,14 +51,7 @@ const Joi = require("joi");
69
51
  * @property {string} [review_instructions]
70
52
  * @property {string[]} [scope]
71
53
  * @property {string} [slug]
72
- */
73
-
74
- /**
75
- * @typedef ListingInfo
76
- * @property {string} [icon]
77
- * @property {string[]} [keywords]
78
- * @property {string} [name]
79
- * @property {string} [tagline]
54
+ * @property {string} [_id]
80
55
  */
81
56
 
82
57
  /**
@@ -86,27 +61,17 @@ const Joi = require("joi");
86
61
  */
87
62
 
88
63
  /**
89
- * @typedef Plans
90
- * @property {string} [additional_charges]
91
- * @property {string} [features]
64
+ * @typedef ListingInfo
65
+ * @property {string} [icon]
66
+ * @property {string[]} [keywords]
92
67
  * @property {string} [name]
93
- * @property {Price} [price]
94
- * @property {Recurring} [recurring]
95
- * @property {number} [trial_days]
96
- * @property {string} [type]
97
- */
98
-
99
- /**
100
- * @typedef Price
101
- * @property {number} [amount]
102
- * @property {string} [currency]
68
+ * @property {string} [tagline]
103
69
  */
104
70
 
105
71
  /**
106
- * @typedef Recurring
107
- * @property {number} [recurring_time]
108
- * @property {string} [type]
109
- * @property {number} [yearly_amount]
72
+ * @typedef Benefits
73
+ * @property {string} [title]
74
+ * @property {string} [description]
110
75
  */
111
76
 
112
77
  /**
@@ -115,6 +80,17 @@ const Joi = require("joi");
115
80
  * @property {string[]} [mobile]
116
81
  */
117
82
 
83
+ /**
84
+ * @typedef Details
85
+ * @property {Benefits[]} [benefits]
86
+ * @property {string} [demo_url]
87
+ * @property {string} [description]
88
+ * @property {string[]} [integration]
89
+ * @property {Object[]} [video_url]
90
+ * @property {string[]} [youtube]
91
+ * @property {Screenshots} [screenshots]
92
+ */
93
+
118
94
  /**
119
95
  * @typedef Support
120
96
  * @property {string} [email]
@@ -124,72 +100,74 @@ const Joi = require("joi");
124
100
  * @property {string} [website_url]
125
101
  */
126
102
 
127
- class PartnerPublicModel {
128
- /** @returns {Benefits} */
129
- static Benefits() {
130
- return Joi.object({
131
- description: Joi.string().allow(""),
132
- title: Joi.string().allow(""),
133
- });
134
- }
103
+ /**
104
+ * @typedef Price
105
+ * @property {number} [amount]
106
+ * @property {string} [currency]
107
+ */
135
108
 
136
- /** @returns {CategoryCommon} */
137
- static CategoryCommon() {
138
- return Joi.object({
139
- category_l1: Joi.array().items(PartnerPublicModel.CategoryL1()),
140
- category_l2: Joi.array().items(PartnerPublicModel.CategoryL2()),
141
- });
142
- }
109
+ /**
110
+ * @typedef Plans
111
+ * @property {string} [additional_charges]
112
+ * @property {string} [features]
113
+ * @property {string} [name]
114
+ * @property {number} [trial_days]
115
+ * @property {string} [type]
116
+ * @property {Price} [price]
117
+ * @property {Recurring} [recurring]
118
+ */
119
+
120
+ /**
121
+ * @typedef Recurring
122
+ * @property {number} [recurring_time]
123
+ * @property {number} [yearly_amount]
124
+ * @property {string} [type]
125
+ */
143
126
 
127
+ class PartnerPublicModel {
144
128
  /** @returns {CategoryL1} */
145
129
  static CategoryL1() {
146
130
  return Joi.object({
147
- _id: Joi.string().allow(""),
148
131
  description: Joi.string().allow(""),
149
132
  display: Joi.string().allow(""),
150
133
  level: Joi.number(),
151
134
  logo: Joi.string().allow(""),
152
135
  slug: Joi.string().allow(""),
153
136
  value: Joi.string().allow(""),
137
+ _id: Joi.string().allow(""),
154
138
  });
155
139
  }
156
140
 
157
141
  /** @returns {CategoryL2} */
158
142
  static CategoryL2() {
159
143
  return Joi.object({
160
- _id: Joi.string().allow(""),
144
+ parent: Joi.string().allow(""),
161
145
  display: Joi.string().allow(""),
162
146
  level: Joi.number(),
163
- parent: Joi.string().allow(""),
164
147
  slug: Joi.string().allow(""),
165
148
  value: Joi.string().allow(""),
149
+ _id: Joi.string().allow(""),
166
150
  });
167
151
  }
168
152
 
169
- /** @returns {ContactInfo} */
170
- static ContactInfo() {
153
+ /** @returns {CategoryCommon} */
154
+ static CategoryCommon() {
171
155
  return Joi.object({
172
- support: PartnerPublicModel.Support(),
156
+ category_l1: Joi.array().items(PartnerPublicModel.CategoryL1()),
157
+ category_l2: Joi.array().items(PartnerPublicModel.CategoryL2()),
173
158
  });
174
159
  }
175
160
 
176
- /** @returns {Details} */
177
- static Details() {
161
+ /** @returns {ContactInfo} */
162
+ static ContactInfo() {
178
163
  return Joi.object({
179
- benefits: Joi.array().items(PartnerPublicModel.Benefits()),
180
- demo_url: Joi.string().allow(""),
181
- description: Joi.string().allow(""),
182
- integration: Joi.array().items(Joi.string().allow("")),
183
- screenshots: PartnerPublicModel.Screenshots(),
184
- video_url: Joi.array().items(Joi.any()),
185
- youtube: Joi.array().items(Joi.string().allow("")),
164
+ support: PartnerPublicModel.Support(),
186
165
  });
187
166
  }
188
167
 
189
168
  /** @returns {ExtensionUsingSlug} */
190
169
  static ExtensionUsingSlug() {
191
170
  return Joi.object({
192
- _id: Joi.string().allow(""),
193
171
  category: PartnerPublicModel.CategoryCommon(),
194
172
  contact_info: PartnerPublicModel.ContactInfo(),
195
173
  created_at: Joi.string().allow(""),
@@ -207,16 +185,7 @@ class PartnerPublicModel {
207
185
  review_instructions: Joi.string().allow(""),
208
186
  scope: Joi.array().items(Joi.string().allow("")),
209
187
  slug: Joi.string().allow(""),
210
- });
211
- }
212
-
213
- /** @returns {ListingInfo} */
214
- static ListingInfo() {
215
- return Joi.object({
216
- icon: Joi.string().allow(""),
217
- keywords: Joi.array().items(Joi.string().allow("")),
218
- name: Joi.string().allow(""),
219
- tagline: Joi.string().allow(""),
188
+ _id: Joi.string().allow(""),
220
189
  });
221
190
  }
222
191
 
@@ -228,33 +197,21 @@ class PartnerPublicModel {
228
197
  });
229
198
  }
230
199
 
231
- /** @returns {Plans} */
232
- static Plans() {
200
+ /** @returns {ListingInfo} */
201
+ static ListingInfo() {
233
202
  return Joi.object({
234
- additional_charges: Joi.string().allow(""),
235
- features: Joi.string().allow(""),
203
+ icon: Joi.string().allow(""),
204
+ keywords: Joi.array().items(Joi.string().allow("")),
236
205
  name: Joi.string().allow(""),
237
- price: PartnerPublicModel.Price(),
238
- recurring: PartnerPublicModel.Recurring(),
239
- trial_days: Joi.number(),
240
- type: Joi.string().allow(""),
241
- });
242
- }
243
-
244
- /** @returns {Price} */
245
- static Price() {
246
- return Joi.object({
247
- amount: Joi.number(),
248
- currency: Joi.string().allow(""),
206
+ tagline: Joi.string().allow(""),
249
207
  });
250
208
  }
251
209
 
252
- /** @returns {Recurring} */
253
- static Recurring() {
210
+ /** @returns {Benefits} */
211
+ static Benefits() {
254
212
  return Joi.object({
255
- recurring_time: Joi.number(),
256
- type: Joi.string().allow(""),
257
- yearly_amount: Joi.number(),
213
+ title: Joi.string().allow(""),
214
+ description: Joi.string().allow(""),
258
215
  });
259
216
  }
260
217
 
@@ -266,6 +223,19 @@ class PartnerPublicModel {
266
223
  });
267
224
  }
268
225
 
226
+ /** @returns {Details} */
227
+ static Details() {
228
+ return Joi.object({
229
+ benefits: Joi.array().items(PartnerPublicModel.Benefits()),
230
+ demo_url: Joi.string().allow(""),
231
+ description: Joi.string().allow(""),
232
+ integration: Joi.array().items(Joi.string().allow("")),
233
+ video_url: Joi.array().items(Joi.any()),
234
+ youtube: Joi.array().items(Joi.string().allow("")),
235
+ screenshots: PartnerPublicModel.Screenshots(),
236
+ });
237
+ }
238
+
269
239
  /** @returns {Support} */
270
240
  static Support() {
271
241
  return Joi.object({
@@ -276,5 +246,35 @@ class PartnerPublicModel {
276
246
  website_url: Joi.string().allow(""),
277
247
  });
278
248
  }
249
+
250
+ /** @returns {Price} */
251
+ static Price() {
252
+ return Joi.object({
253
+ amount: Joi.number(),
254
+ currency: Joi.string().allow(""),
255
+ });
256
+ }
257
+
258
+ /** @returns {Plans} */
259
+ static Plans() {
260
+ return Joi.object({
261
+ additional_charges: Joi.string().allow(""),
262
+ features: Joi.string().allow(""),
263
+ name: Joi.string().allow(""),
264
+ trial_days: Joi.number(),
265
+ type: Joi.string().allow(""),
266
+ price: PartnerPublicModel.Price(),
267
+ recurring: PartnerPublicModel.Recurring(),
268
+ });
269
+ }
270
+
271
+ /** @returns {Recurring} */
272
+ static Recurring() {
273
+ return Joi.object({
274
+ recurring_time: Joi.number(),
275
+ yearly_amount: Joi.number(),
276
+ type: Joi.string().allow(""),
277
+ });
278
+ }
279
279
  }
280
280
  module.exports = PartnerPublicModel;
@@ -12,9 +12,7 @@ declare class PublicClient {
12
12
  */
13
13
  constructor(config: import("./PublicConfig"));
14
14
  config: import("./PublicConfig");
15
- billing: Billing;
16
15
  configuration: Configuration;
17
- content: Content;
18
16
  inventory: Inventory;
19
17
  partner: Partner;
20
18
  webhook: Webhook;
@@ -26,9 +24,7 @@ declare class PublicClient {
26
24
  */
27
25
  setExtraHeaders(header: object): void;
28
26
  }
29
- import Billing = require("./Billing/BillingPublicClient");
30
27
  import Configuration = require("./Configuration/ConfigurationPublicClient");
31
- import Content = require("./Content/ContentPublicClient");
32
28
  import Inventory = require("./Inventory/InventoryPublicClient");
33
29
  import Partner = require("./Partner/PartnerPublicClient");
34
30
  import Webhook = require("./Webhook/WebhookPublicClient");