@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-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 (241) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
  6. package/sdk/application/Cart/CartApplicationClient.js +304 -114
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +22 -1
  11. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
  14. package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
  15. package/sdk/application/Content/ContentApplicationClient.js +297 -28
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
  18. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  19. package/sdk/application/Lead/LeadApplicationClient.js +74 -1
  20. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  21. package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
  22. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  23. package/sdk/application/Order/OrderApplicationClient.js +195 -47
  24. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  25. package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
  26. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  27. package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +418 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  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 +20 -126
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  51. package/sdk/partner/OAuthClient.js +1 -0
  52. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  53. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  54. package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
  55. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  56. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  57. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  58. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  59. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  60. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  62. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  64. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  66. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  72. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  73. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  74. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  75. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  76. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  77. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  78. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  80. package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
  88. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
  89. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
  90. package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
  91. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
  94. package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
  95. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  96. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  97. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  98. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  103. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  104. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  110. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  116. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
  118. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  120. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  125. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  126. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  127. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  128. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  129. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  130. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  131. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  132. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  133. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  134. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  135. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  146. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  147. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  148. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  149. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  150. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  151. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  152. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  153. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  154. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  155. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  156. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
  161. package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
  162. package/sdk/platform/Order/OrderPlatformClient.js +198 -416
  163. package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
  164. package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
  165. package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
  166. package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
  167. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  168. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  169. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  170. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
  172. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  174. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  175. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  176. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  177. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
  178. package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
  179. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  180. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  181. package/sdk/platform/PlatformClient.d.ts +2 -0
  182. package/sdk/platform/PlatformClient.js +4 -0
  183. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  184. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  185. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  188. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  201. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  202. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  203. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  204. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  205. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  206. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  207. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  208. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  209. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  210. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  211. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  212. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  213. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  214. package/sdk/platform/User/UserPlatformModel.js +23 -23
  215. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  216. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  217. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  218. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  219. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  220. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  221. package/sdk/platform/index.d.ts +1 -0
  222. package/sdk/platform/index.js +2 -0
  223. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  224. package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
  225. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  226. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  227. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  228. package/sdk/public/Content/ContentPublicClient.js +20 -791
  229. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  230. package/sdk/public/Content/ContentPublicModel.js +3 -649
  231. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  232. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  233. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  234. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  235. package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
  236. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  237. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  238. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  239. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  240. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  241. package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
@@ -4,16 +4,6 @@ declare class LogisticsValidator {
4
4
  static getSampleFileServiceabilityStatus(): any;
5
5
  static bulkTat(): any;
6
6
  static getBulkTat(): any;
7
- static createDeliveryTime(): any;
8
- static getDeliveryTimes(): any;
9
- static getDeliveryTime(): any;
10
- static updateDeliveryTime(): any;
11
- static deleteDeliveryTime(): any;
12
- static createServiceability(): any;
13
- static getServiceabilities(): any;
14
- static getServiceability(): any;
15
- static updateServiceability(): any;
16
- static deleteServiceability(): any;
17
7
  static bulkServiceability(): any;
18
8
  static getBulkServiceability(): any;
19
9
  static createCourierPartnerAccount(): any;
@@ -4,7 +4,7 @@ const LogisticsModel = require("./LogisticsPartnerModel");
4
4
  class LogisticsValidator {
5
5
  static sampleFileServiceability() {
6
6
  return Joi.object({
7
- body: LogisticsModel.BulkRegionServiceabilityTatDetails().required(),
7
+ body: LogisticsModel.BulkRegionServiceabilityTatRequest().required(),
8
8
  }).required();
9
9
  }
10
10
 
@@ -20,7 +20,7 @@ class LogisticsValidator {
20
20
  return Joi.object({
21
21
  extensionId: Joi.string().allow("").required(),
22
22
  schemeId: Joi.string().allow("").required(),
23
- body: LogisticsModel.BulkRegionJobDetails().required(),
23
+ body: LogisticsModel.BulkRegionJobSerializer().required(),
24
24
  }).required();
25
25
  }
26
26
 
@@ -40,125 +40,11 @@ class LogisticsValidator {
40
40
  }).required();
41
41
  }
42
42
 
43
- static createDeliveryTime() {
44
- return Joi.object({
45
- partnerOrgId: Joi.string().allow("").required(),
46
- courierPartnerExtensionId: Joi.string().allow("").required(),
47
- schemeId: Joi.string().allow("").required(),
48
- body: LogisticsModel.RegionTatDetails().required(),
49
- }).required();
50
- }
51
-
52
- static getDeliveryTimes() {
53
- return Joi.object({
54
- partnerOrgId: Joi.string().allow("").required(),
55
- courierPartnerExtensionId: Joi.string().allow("").required(),
56
- schemeId: Joi.string().allow("").required(),
57
- pageNo: Joi.number(),
58
- pageSize: Joi.number(),
59
- fromCountryCode: Joi.string().allow(""),
60
- fromStateCode: Joi.string().allow(""),
61
- fromCityCode: Joi.string().allow(""),
62
- fromSectorCode: Joi.string().allow(""),
63
- fromPincode: Joi.string().allow(""),
64
- toCountryCode: Joi.string().allow(""),
65
- toStateCode: Joi.string().allow(""),
66
- toCityCode: Joi.string().allow(""),
67
- toSectorCode: Joi.string().allow(""),
68
- toPincode: Joi.string().allow(""),
69
- }).required();
70
- }
71
-
72
- static getDeliveryTime() {
73
- return Joi.object({
74
- partnerOrgId: Joi.string().allow("").required(),
75
- courierPartnerExtensionId: Joi.string().allow("").required(),
76
- schemeId: Joi.string().allow("").required(),
77
- id: Joi.string().allow("").required(),
78
- }).required();
79
- }
80
-
81
- static updateDeliveryTime() {
82
- return Joi.object({
83
- partnerOrgId: Joi.string().allow("").required(),
84
- courierPartnerExtensionId: Joi.string().allow("").required(),
85
- schemeId: Joi.string().allow("").required(),
86
- id: Joi.string().allow("").required(),
87
- body: LogisticsModel.RegionTatUpdateDetails().required(),
88
- }).required();
89
- }
90
-
91
- static deleteDeliveryTime() {
92
- return Joi.object({
93
- partnerOrgId: Joi.string().allow("").required(),
94
- courierPartnerExtensionId: Joi.string().allow("").required(),
95
- schemeId: Joi.string().allow("").required(),
96
- id: Joi.string().allow("").required(),
97
- }).required();
98
- }
99
-
100
- static createServiceability() {
101
- return Joi.object({
102
- partnerOrgId: Joi.string().allow("").required(),
103
- courierPartnerExtensionId: Joi.string().allow("").required(),
104
- schemeId: Joi.string().allow("").required(),
105
- body: LogisticsModel.RegionServiceabilityDetails().required(),
106
- }).required();
107
- }
108
-
109
- static getServiceabilities() {
110
- return Joi.object({
111
- partnerOrgId: Joi.string().allow("").required(),
112
- courierPartnerExtensionId: Joi.string().allow("").required(),
113
- schemeId: Joi.string().allow("").required(),
114
- pageNo: Joi.number(),
115
- pageSize: Joi.number(),
116
- countryCode: Joi.string().allow(""),
117
- stateCode: Joi.string().allow(""),
118
- cityCode: Joi.string().allow(""),
119
- sectorCode: Joi.string().allow(""),
120
- pincode: Joi.string().allow(""),
121
- firstMile: Joi.boolean(),
122
- lastMile: Joi.boolean(),
123
- doorstepReturn: Joi.boolean(),
124
- doorstepQc: Joi.boolean(),
125
- installation: Joi.boolean(),
126
- }).required();
127
- }
128
-
129
- static getServiceability() {
130
- return Joi.object({
131
- partnerOrgId: Joi.string().allow("").required(),
132
- courierPartnerExtensionId: Joi.string().allow("").required(),
133
- schemeId: Joi.string().allow("").required(),
134
- id: Joi.string().allow("").required(),
135
- }).required();
136
- }
137
-
138
- static updateServiceability() {
139
- return Joi.object({
140
- partnerOrgId: Joi.string().allow("").required(),
141
- courierPartnerExtensionId: Joi.string().allow("").required(),
142
- schemeId: Joi.string().allow("").required(),
143
- id: Joi.string().allow("").required(),
144
- body: LogisticsModel.ServiceabilityDetails().required(),
145
- }).required();
146
- }
147
-
148
- static deleteServiceability() {
149
- return Joi.object({
150
- partnerOrgId: Joi.string().allow("").required(),
151
- courierPartnerExtensionId: Joi.string().allow("").required(),
152
- schemeId: Joi.string().allow("").required(),
153
- id: Joi.string().allow("").required(),
154
- }).required();
155
- }
156
-
157
43
  static bulkServiceability() {
158
44
  return Joi.object({
159
45
  extensionId: Joi.string().allow("").required(),
160
46
  schemeId: Joi.string().allow("").required(),
161
- body: LogisticsModel.BulkRegionJobDetails().required(),
47
+ body: LogisticsModel.BulkRegionJobSerializer().required(),
162
48
  }).required();
163
49
  }
164
50
 
@@ -181,7 +67,7 @@ class LogisticsValidator {
181
67
  static createCourierPartnerAccount() {
182
68
  return Joi.object({
183
69
  companyId: Joi.number().required(),
184
- body: LogisticsModel.CourierAccountDetailsBody().required(),
70
+ body: LogisticsModel.CourierAccountRequestBody().required(),
185
71
  }).required();
186
72
  }
187
73
 
@@ -200,7 +86,7 @@ class LogisticsValidator {
200
86
  return Joi.object({
201
87
  companyId: Joi.number().required(),
202
88
  accountId: Joi.string().allow("").required(),
203
- body: LogisticsModel.CourierAccountUpdateDetails().required(),
89
+ body: LogisticsModel.CourierAccount().required(),
204
90
  }).required();
205
91
  }
206
92
 
@@ -213,14 +99,14 @@ class LogisticsValidator {
213
99
 
214
100
  static createCourierPartnerScheme() {
215
101
  return Joi.object({
216
- body: LogisticsModel.CourierPartnerSchemeDetailsModel().required(),
102
+ body: LogisticsModel.CourierPartnerSchemeRequestModel().required(),
217
103
  }).required();
218
104
  }
219
105
 
220
106
  static updateCourierPartnerScheme() {
221
107
  return Joi.object({
222
108
  schemeId: Joi.string().allow("").required(),
223
- body: LogisticsModel.CourierPartnerSchemeUpdateDetails().required(),
109
+ body: LogisticsModel.CourierPartnerSchemeUpdateRequest().required(),
224
110
  }).required();
225
111
  }
226
112
 
@@ -6,6 +6,7 @@ const querystring = require("query-string");
6
6
  const { sign } = require("@gofynd/fp-signature");
7
7
  const { convertStringToBase64 } = require("../common/utils");
8
8
 
9
+ const refreshTokenRequestCache = {};
9
10
  class OAuthClient extends BaseOAuthClient {
10
11
  constructor(config) {
11
12
  super(config);
@@ -176,42 +176,44 @@ declare class Theme {
176
176
  * @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
177
177
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
178
178
  * @param {import("../PartnerAPIClient").Options} - Options
179
- * @returns {Promise<ThemePartnerModel.ExtensionSectionDraft>} - Success response
179
+ * @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
180
+ * Success response
180
181
  * @name createExtensionSectionDraft
181
182
  * @summary: Draft extension section
182
183
  * @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
183
184
  */
184
- createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionSectionDraft>;
185
+ createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.DraftExtensionSectionResponse>;
185
186
  /**
186
187
  * @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
187
188
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
188
189
  * @param {import("../PartnerAPIClient").Options} - Options
189
- * @returns {Promise<ThemePartnerModel.ExtensionSectionPublish>} - Success response
190
+ * @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
191
+ * Success response
190
192
  * @name publishExtensionSections
191
193
  * @summary: Publish an extension section
192
194
  * @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
193
195
  */
194
- publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionSectionPublish>;
196
+ publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.PublishExtensionSectionResponse>;
195
197
  /**
196
198
  * @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
197
199
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
198
200
  * @param {import("../PartnerAPIClient").Options} - Options
199
- * @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
201
+ * @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
200
202
  * @name applyExtensionPreview
201
203
  * @summary: Start a Preview of Extension Section
202
204
  * @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
203
205
  */
204
- applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreview>;
206
+ applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
205
207
  /**
206
208
  * @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
207
209
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
208
210
  * @param {import("../PartnerAPIClient").Options} - Options
209
- * @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
211
+ * @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
210
212
  * @name removeExtensionPreview
211
213
  * @summary: Close a Preview of Extension Section
212
214
  * @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
213
215
  */
214
- removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreview>;
216
+ removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
215
217
  /**
216
218
  * @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
217
219
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1374,7 +1374,8 @@ class Theme {
1374
1374
  * @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
1375
1375
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1376
1376
  * @param {import("../PartnerAPIClient").Options} - Options
1377
- * @returns {Promise<ThemePartnerModel.ExtensionSectionDraft>} - Success response
1377
+ * @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
1378
+ * Success response
1378
1379
  * @name createExtensionSectionDraft
1379
1380
  * @summary: Draft extension section
1380
1381
  * @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
@@ -1432,10 +1433,10 @@ class Theme {
1432
1433
 
1433
1434
  const {
1434
1435
  error: res_error,
1435
- } = ThemePartnerModel.ExtensionSectionDraft().validate(responseData, {
1436
- abortEarly: false,
1437
- allowUnknown: true,
1438
- });
1436
+ } = ThemePartnerModel.DraftExtensionSectionResponse().validate(
1437
+ responseData,
1438
+ { abortEarly: false, allowUnknown: true }
1439
+ );
1439
1440
 
1440
1441
  if (res_error) {
1441
1442
  if (this.config.options.strictResponseCheck === true) {
@@ -1455,7 +1456,8 @@ class Theme {
1455
1456
  * @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
1456
1457
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1457
1458
  * @param {import("../PartnerAPIClient").Options} - Options
1458
- * @returns {Promise<ThemePartnerModel.ExtensionSectionPublish>} - Success response
1459
+ * @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
1460
+ * Success response
1459
1461
  * @name publishExtensionSections
1460
1462
  * @summary: Publish an extension section
1461
1463
  * @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
@@ -1511,10 +1513,10 @@ class Theme {
1511
1513
 
1512
1514
  const {
1513
1515
  error: res_error,
1514
- } = ThemePartnerModel.ExtensionSectionPublish().validate(responseData, {
1515
- abortEarly: false,
1516
- allowUnknown: true,
1517
- });
1516
+ } = ThemePartnerModel.PublishExtensionSectionResponse().validate(
1517
+ responseData,
1518
+ { abortEarly: false, allowUnknown: true }
1519
+ );
1518
1520
 
1519
1521
  if (res_error) {
1520
1522
  if (this.config.options.strictResponseCheck === true) {
@@ -1534,7 +1536,7 @@ class Theme {
1534
1536
  * @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
1535
1537
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1536
1538
  * @param {import("../PartnerAPIClient").Options} - Options
1537
- * @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
1539
+ * @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
1538
1540
  * @name applyExtensionPreview
1539
1541
  * @summary: Start a Preview of Extension Section
1540
1542
  * @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
@@ -1590,7 +1592,7 @@ class Theme {
1590
1592
 
1591
1593
  const {
1592
1594
  error: res_error,
1593
- } = ThemePartnerModel.ExtensionPreview().validate(responseData, {
1595
+ } = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
1594
1596
  abortEarly: false,
1595
1597
  allowUnknown: true,
1596
1598
  });
@@ -1613,7 +1615,7 @@ class Theme {
1613
1615
  * @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
1614
1616
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1615
1617
  * @param {import("../PartnerAPIClient").Options} - Options
1616
- * @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
1618
+ * @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
1617
1619
  * @name removeExtensionPreview
1618
1620
  * @summary: Close a Preview of Extension Section
1619
1621
  * @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
@@ -1669,7 +1671,7 @@ class Theme {
1669
1671
 
1670
1672
  const {
1671
1673
  error: res_error,
1672
- } = ThemePartnerModel.ExtensionPreview().validate(responseData, {
1674
+ } = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
1673
1675
  abortEarly: false,
1674
1676
  allowUnknown: true,
1675
1677
  });
@@ -15,7 +15,7 @@ export = ThemePartnerModel;
15
15
  * @property {string} [updated_at] - The last update timestamp of the page
16
16
  */
17
17
  /**
18
- * @typedef DraftExtensionSection
18
+ * @typedef DraftExtensionSectionRequest
19
19
  * @property {string} [extension_id]
20
20
  * @property {string} [bundle_name]
21
21
  * @property {string} [organization_id]
@@ -25,11 +25,11 @@ export = ThemePartnerModel;
25
25
  * @property {string} [status]
26
26
  */
27
27
  /**
28
- * @typedef ExtensionSectionDraft
29
- * @property {Sections} [sections]
28
+ * @typedef DraftExtensionSectionResponse
29
+ * @property {SectionsResponse} [sections]
30
30
  */
31
31
  /**
32
- * @typedef Sections
32
+ * @typedef SectionsResponse
33
33
  * @property {boolean} [acknowledged]
34
34
  * @property {number} [matched_count]
35
35
  * @property {number} [modified_count]
@@ -56,7 +56,7 @@ export = ThemePartnerModel;
56
56
  * @property {string} [css]
57
57
  */
58
58
  /**
59
- * @typedef PublishExtensionSection
59
+ * @typedef PublishExtensionSectionRequest
60
60
  * @property {string} [extension_id]
61
61
  * @property {string} [bundle_name]
62
62
  * @property {string} [organization_id]
@@ -66,17 +66,17 @@ export = ThemePartnerModel;
66
66
  * @property {string} [status]
67
67
  */
68
68
  /**
69
- * @typedef PreviewExtension
69
+ * @typedef ExtensionPreviewRequest
70
70
  * @property {string} [application_id] - Application ID
71
71
  * @property {string} [section_preview_hash] - Hash for the section preview
72
72
  */
73
73
  /**
74
- * @typedef ExtensionPreview
74
+ * @typedef ExtensionPreviewResponse
75
75
  * @property {string} [message]
76
76
  */
77
77
  /**
78
- * @typedef ExtensionSectionPublish
79
- * @property {Sections} [sections]
78
+ * @typedef PublishExtensionSectionResponse
79
+ * @property {SectionsResponse} [sections]
80
80
  */
81
81
  /**
82
82
  * @typedef AvailablePageSectionMetaAttributes
@@ -125,15 +125,7 @@ export = ThemePartnerModel;
125
125
  * @property {Object[]} [blocks]
126
126
  * @property {Object} [preset]
127
127
  * @property {AvailablePagePredicate} [predicate]
128
- * @property {SectionSource} [__source]
129
- */
130
- /**
131
- * @typedef SectionSource
132
- * @property {string} [id] - The source id specifying the source of the section.
133
- * @property {string} [bundle_name] - This is the extension binding name
134
- * containing this section.
135
- * @property {string} [type] - This is source type. It will either be
136
- * themeBundle or extension.
128
+ * @property {string} [source]
137
129
  */
138
130
  /**
139
131
  * @typedef AvailablePageScreenPredicate
@@ -281,26 +273,12 @@ export = ThemePartnerModel;
281
273
  * @property {string} admin_id - The ID of the admin who rejected the theme
282
274
  * @property {string} user_id - The ID of the user who submitted the theme
283
275
  * @property {string} status - The status of the theme (e.g., rejected)
284
- * @property {RejectedMessages} rejection_reasons
276
+ * @property {Object} rejection_reasons
285
277
  * @property {string} [created_at] - The date and time when the theme rejection
286
278
  * reasons object was created
287
279
  * @property {string} [updated_at] - The date and time when the theme rejection
288
280
  * reasons object was last updated
289
281
  */
290
- /**
291
- * @typedef RejectedMessages
292
- * @property {ThemeReviewRequestMessage} [theme_file]
293
- * @property {ThemeReviewRequestMessage} [theme_details]
294
- * @property {ThemeReviewRequestMessage} [theme_value_proposition]
295
- * @property {ThemeReviewRequestMessage} [theme_attributes]
296
- * @property {ThemeReviewRequestMessage} [theme_variations]
297
- * @property {ThemeReviewRequestMessage} [theme_docs]
298
- * @property {ThemeReviewRequestMessage} [theme_review]
299
- */
300
- /**
301
- * @typedef ThemeReviewRequestMessage
302
- * @property {string} [message] - Message Explaining what the issue is
303
- */
304
282
  /**
305
283
  * @typedef AllAvailablePageSchema
306
284
  * @property {AvailablePageSchema[]} [pages]
@@ -504,16 +482,7 @@ export = ThemePartnerModel;
504
482
  */
505
483
  /**
506
484
  * @typedef GlobalSchema
507
- * @property {Prop[]} [props]
508
- */
509
- /**
510
- * @typedef Prop
511
- * @property {string} [type] - The type of the property
512
- * @property {string} [category] - The category of the property
513
- * @property {string} [value] - The value of the property
514
- * @property {string} [id] - The ID of the property
515
- * @property {string} [label] - The label of the property
516
- * @property {string} [info] - Additional information about the property
485
+ * @property {Object[]} [props]
517
486
  */
518
487
  /**
519
488
  * @typedef Preset
@@ -678,7 +647,7 @@ export = ThemePartnerModel;
678
647
  declare class ThemePartnerModel {
679
648
  }
680
649
  declare namespace ThemePartnerModel {
681
- export { AvailablePageSchema, DraftExtensionSection, ExtensionSectionDraft, Sections, ExtensionSection, PropExtension, AssetsExtension, PublishExtensionSection, PreviewExtension, ExtensionPreview, ExtensionSectionPublish, AvailablePageSectionMetaAttributes, AvailablePageSeo, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSchemaSections, SectionSource, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AvailablePagePredicate, MarketplaceThemeSchema, MarketplaceTheme, PaymentInfo, ContactInfo, CatalogSize, MarketplaceThemeImages, CarouselItem, ExploreInfo, Feature, FeatureItem, Highlight, Variation, Documentation, Comments, ThemeRejectionReasons, RejectedMessages, ThemeReviewRequestMessage, AllAvailablePageSchema, PaginationSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, CustomProps, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Prop, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, UpdateThemeRequestBody, CreateNewTheme, ActionPage, PageType };
650
+ export { AvailablePageSchema, DraftExtensionSectionRequest, DraftExtensionSectionResponse, SectionsResponse, ExtensionSection, PropExtension, AssetsExtension, PublishExtensionSectionRequest, ExtensionPreviewRequest, ExtensionPreviewResponse, PublishExtensionSectionResponse, AvailablePageSectionMetaAttributes, AvailablePageSeo, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AvailablePagePredicate, MarketplaceThemeSchema, MarketplaceTheme, PaymentInfo, ContactInfo, CatalogSize, MarketplaceThemeImages, CarouselItem, ExploreInfo, Feature, FeatureItem, Highlight, Variation, Documentation, Comments, ThemeRejectionReasons, AllAvailablePageSchema, PaginationSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, CustomProps, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, UpdateThemeRequestBody, CreateNewTheme, ActionPage, PageType };
682
651
  }
683
652
  /** @returns {AvailablePageSchema} */
684
653
  declare function AvailablePageSchema(): AvailablePageSchema;
@@ -702,9 +671,9 @@ type AvailablePageSchema = {
702
671
  */
703
672
  updated_at?: string;
704
673
  };
705
- /** @returns {DraftExtensionSection} */
706
- declare function DraftExtensionSection(): DraftExtensionSection;
707
- type DraftExtensionSection = {
674
+ /** @returns {DraftExtensionSectionRequest} */
675
+ declare function DraftExtensionSectionRequest(): DraftExtensionSectionRequest;
676
+ type DraftExtensionSectionRequest = {
708
677
  extension_id?: string;
709
678
  bundle_name?: string;
710
679
  organization_id?: string;
@@ -713,14 +682,14 @@ type DraftExtensionSection = {
713
682
  type?: string;
714
683
  status?: string;
715
684
  };
716
- /** @returns {ExtensionSectionDraft} */
717
- declare function ExtensionSectionDraft(): ExtensionSectionDraft;
718
- type ExtensionSectionDraft = {
719
- sections?: Sections;
685
+ /** @returns {DraftExtensionSectionResponse} */
686
+ declare function DraftExtensionSectionResponse(): DraftExtensionSectionResponse;
687
+ type DraftExtensionSectionResponse = {
688
+ sections?: SectionsResponse;
720
689
  };
721
- /** @returns {Sections} */
722
- declare function Sections(): Sections;
723
- type Sections = {
690
+ /** @returns {SectionsResponse} */
691
+ declare function SectionsResponse(): SectionsResponse;
692
+ type SectionsResponse = {
724
693
  acknowledged?: boolean;
725
694
  matched_count?: number;
726
695
  modified_count?: number;
@@ -749,9 +718,9 @@ type AssetsExtension = {
749
718
  js?: string;
750
719
  css?: string;
751
720
  };
752
- /** @returns {PublishExtensionSection} */
753
- declare function PublishExtensionSection(): PublishExtensionSection;
754
- type PublishExtensionSection = {
721
+ /** @returns {PublishExtensionSectionRequest} */
722
+ declare function PublishExtensionSectionRequest(): PublishExtensionSectionRequest;
723
+ type PublishExtensionSectionRequest = {
755
724
  extension_id?: string;
756
725
  bundle_name?: string;
757
726
  organization_id?: string;
@@ -760,9 +729,9 @@ type PublishExtensionSection = {
760
729
  type?: string;
761
730
  status?: string;
762
731
  };
763
- /** @returns {PreviewExtension} */
764
- declare function PreviewExtension(): PreviewExtension;
765
- type PreviewExtension = {
732
+ /** @returns {ExtensionPreviewRequest} */
733
+ declare function ExtensionPreviewRequest(): ExtensionPreviewRequest;
734
+ type ExtensionPreviewRequest = {
766
735
  /**
767
736
  * - Application ID
768
737
  */
@@ -772,15 +741,15 @@ type PreviewExtension = {
772
741
  */
773
742
  section_preview_hash?: string;
774
743
  };
775
- /** @returns {ExtensionPreview} */
776
- declare function ExtensionPreview(): ExtensionPreview;
777
- type ExtensionPreview = {
744
+ /** @returns {ExtensionPreviewResponse} */
745
+ declare function ExtensionPreviewResponse(): ExtensionPreviewResponse;
746
+ type ExtensionPreviewResponse = {
778
747
  message?: string;
779
748
  };
780
- /** @returns {ExtensionSectionPublish} */
781
- declare function ExtensionSectionPublish(): ExtensionSectionPublish;
782
- type ExtensionSectionPublish = {
783
- sections?: Sections;
749
+ /** @returns {PublishExtensionSectionResponse} */
750
+ declare function PublishExtensionSectionResponse(): PublishExtensionSectionResponse;
751
+ type PublishExtensionSectionResponse = {
752
+ sections?: SectionsResponse;
784
753
  };
785
754
  /** @returns {AvailablePageSectionMetaAttributes} */
786
755
  declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
@@ -840,25 +809,7 @@ type AvailablePageSchemaSections = {
840
809
  blocks?: any[];
841
810
  preset?: any;
842
811
  predicate?: AvailablePagePredicate;
843
- __source?: SectionSource;
844
- };
845
- /** @returns {SectionSource} */
846
- declare function SectionSource(): SectionSource;
847
- type SectionSource = {
848
- /**
849
- * - The source id specifying the source of the section.
850
- */
851
- id?: string;
852
- /**
853
- * - This is the extension binding name
854
- * containing this section.
855
- */
856
- bundle_name?: string;
857
- /**
858
- * - This is source type. It will either be
859
- * themeBundle or extension.
860
- */
861
- type?: string;
812
+ source?: string;
862
813
  };
863
814
  /** @returns {AvailablePageScreenPredicate} */
864
815
  declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
@@ -1183,7 +1134,7 @@ type ThemeRejectionReasons = {
1183
1134
  * - The status of the theme (e.g., rejected)
1184
1135
  */
1185
1136
  status: string;
1186
- rejection_reasons: RejectedMessages;
1137
+ rejection_reasons: any;
1187
1138
  /**
1188
1139
  * - The date and time when the theme rejection
1189
1140
  * reasons object was created
@@ -1195,25 +1146,6 @@ type ThemeRejectionReasons = {
1195
1146
  */
1196
1147
  updated_at?: string;
1197
1148
  };
1198
- /** @returns {RejectedMessages} */
1199
- declare function RejectedMessages(): RejectedMessages;
1200
- type RejectedMessages = {
1201
- theme_file?: ThemeReviewRequestMessage;
1202
- theme_details?: ThemeReviewRequestMessage;
1203
- theme_value_proposition?: ThemeReviewRequestMessage;
1204
- theme_attributes?: ThemeReviewRequestMessage;
1205
- theme_variations?: ThemeReviewRequestMessage;
1206
- theme_docs?: ThemeReviewRequestMessage;
1207
- theme_review?: ThemeReviewRequestMessage;
1208
- };
1209
- /** @returns {ThemeReviewRequestMessage} */
1210
- declare function ThemeReviewRequestMessage(): ThemeReviewRequestMessage;
1211
- type ThemeReviewRequestMessage = {
1212
- /**
1213
- * - Message Explaining what the issue is
1214
- */
1215
- message?: string;
1216
- };
1217
1149
  /** @returns {AllAvailablePageSchema} */
1218
1150
  declare function AllAvailablePageSchema(): AllAvailablePageSchema;
1219
1151
  type AllAvailablePageSchema = {
@@ -1640,35 +1572,7 @@ type SectionItem = {
1640
1572
  /** @returns {GlobalSchema} */
1641
1573
  declare function GlobalSchema(): GlobalSchema;
1642
1574
  type GlobalSchema = {
1643
- props?: Prop[];
1644
- };
1645
- /** @returns {Prop} */
1646
- declare function Prop(): Prop;
1647
- type Prop = {
1648
- /**
1649
- * - The type of the property
1650
- */
1651
- type?: string;
1652
- /**
1653
- * - The category of the property
1654
- */
1655
- category?: string;
1656
- /**
1657
- * - The value of the property
1658
- */
1659
- value?: string;
1660
- /**
1661
- * - The ID of the property
1662
- */
1663
- id?: string;
1664
- /**
1665
- * - The label of the property
1666
- */
1667
- label?: string;
1668
- /**
1669
- * - Additional information about the property
1670
- */
1671
- info?: string;
1575
+ props?: any[];
1672
1576
  };
1673
1577
  /** @returns {Preset} */
1674
1578
  declare function Preset(): Preset;