@gofynd/fdk-client-javascript 1.6.4 → 2.0.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 (146) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
  4. package/sdk/application/Cart/CartApplicationClient.js +26 -268
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
  7. package/sdk/application/Common/CommonApplicationClient.js +1 -16
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +222 -191
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  15. package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +21 -52
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +68 -153
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
  23. package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +21 -75
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
  30. package/sdk/application/User/UserApplicationClient.js +1 -407
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
  32. package/sdk/common/Utility.d.ts +1 -1
  33. package/sdk/common/Utility.js +4 -4
  34. package/sdk/common/Validator.d.ts +1 -0
  35. package/sdk/common/Validator.js +20 -0
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
  38. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
  40. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
  41. package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
  42. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
  46. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
  49. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
  51. package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
  52. package/sdk/platform/Cart/CartPlatformModel.js +38 -5
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
  57. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  58. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
  63. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
  65. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
  67. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
  74. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
  75. package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
  76. package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
  77. package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
  78. package/sdk/platform/Content/ContentPlatformModel.js +717 -34
  79. package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
  80. package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
  81. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
  82. package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
  83. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
  84. package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
  85. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
  86. package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
  87. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
  88. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
  89. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
  90. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
  91. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
  92. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
  93. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
  94. package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
  95. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  98. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  99. package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
  100. package/sdk/platform/Order/OrderPlatformClient.js +397 -0
  101. package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
  102. package/sdk/platform/Order/OrderPlatformModel.js +20 -7
  103. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  104. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  105. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
  106. package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
  107. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
  108. package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
  109. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
  110. package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
  114. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
  115. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
  117. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
  118. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
  119. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
  121. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  122. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  123. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
  124. package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
  125. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
  126. package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
  127. package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
  128. package/sdk/platform/User/UserPlatformModel.js +36 -0
  129. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
  130. package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
  131. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  132. package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
  133. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
  134. package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
  135. package/sdk/public/Content/ContentPublicClient.js +261 -104
  136. package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
  137. package/sdk/public/Content/ContentPublicModel.js +102 -0
  138. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
  139. package/sdk/public/Content/ContentPublicValidator.js +26 -0
  140. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  142. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  143. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  144. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  145. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
@@ -7,11 +7,6 @@ export = FileStoragePlatformApplicationValidator;
7
7
  * inside the storage bucket.
8
8
  * @property {FileStoragePlatformModel.FileUpload} body
9
9
  */
10
- /**
11
- * @typedef AppCopyFilesParam
12
- * @property {boolean} [sync] - Sync
13
- * @property {FileStoragePlatformModel.CopyFiles} body
14
- */
15
10
  /**
16
11
  * @typedef AppStartUploadParam
17
12
  * @property {string} namespace - Segregation of different types of
@@ -41,99 +36,18 @@ export = FileStoragePlatformApplicationValidator;
41
36
  * @property {string} [search] - Search
42
37
  * @property {FileStoragePlatformModel.ExtensionSlug} body
43
38
  */
44
- /**
45
- * @typedef DeletePdfGeneratorConfigParam
46
- * @property {string} id
47
- */
48
- /**
49
- * @typedef FetchPdfDefaultTemplateByIdParam
50
- * @property {string} id
51
- */
52
- /**
53
- * @typedef FetchPdfTypeByIdParam
54
- * @property {string} id
55
- */
56
- /**
57
- * @typedef GeneratePaymentReceiptParam
58
- * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
59
- */
60
- /**
61
- * @typedef GetConfigHtmlTemplateByIdParam
62
- * @property {string} id
63
- */
64
- /**
65
- * @typedef GetDefaultPdfDataParam
66
- * @property {number} pdfTypeId
67
- * @property {string} [countryCode]
68
- */
69
- /**
70
- * @typedef GetDefaultPdfTemplateParam
71
- * @property {number} pdfTypeId
72
- * @property {string} format
73
- * @property {string} [countryCode]
74
- */
75
- /**
76
- * @typedef GetHtmlTemplateConfigParam
77
- * @property {number} pdfTypeId
78
- * @property {string} format
79
- * @property {string} [countryCode]
80
- */
81
- /**
82
- * @typedef GetPdfPayloadByIdParam
83
- * @property {string} id
84
- */
85
- /**
86
- * @typedef GetPdfTypesParam
87
- * @property {string} [countryCode]
88
- * @property {boolean} storeOs
89
- */
90
- /**
91
- * @typedef SaveHtmlTemplateParam
92
- * @property {FileStoragePlatformModel.PdfConfig} body
93
- */
94
- /**
95
- * @typedef UpdateHtmlTemplateParam
96
- * @property {string} id
97
- * @property {FileStoragePlatformModel.PdfConfig} body
98
- */
99
39
  declare class FileStoragePlatformApplicationValidator {
100
40
  /** @returns {AppCompleteUploadParam} */
101
41
  static appCompleteUpload(): AppCompleteUploadParam;
102
- /** @returns {AppCopyFilesParam} */
103
- static appCopyFiles(): AppCopyFilesParam;
104
42
  /** @returns {AppStartUploadParam} */
105
43
  static appStartUpload(): AppStartUploadParam;
106
44
  /** @returns {AppbrowseParam} */
107
45
  static appbrowse(): AppbrowseParam;
108
46
  /** @returns {BrowsefilesParam} */
109
47
  static browsefiles(): BrowsefilesParam;
110
- /** @returns {DeletePdfGeneratorConfigParam} */
111
- static deletePdfGeneratorConfig(): DeletePdfGeneratorConfigParam;
112
- /** @returns {FetchPdfDefaultTemplateByIdParam} */
113
- static fetchPdfDefaultTemplateById(): FetchPdfDefaultTemplateByIdParam;
114
- /** @returns {FetchPdfTypeByIdParam} */
115
- static fetchPdfTypeById(): FetchPdfTypeByIdParam;
116
- /** @returns {GeneratePaymentReceiptParam} */
117
- static generatePaymentReceipt(): GeneratePaymentReceiptParam;
118
- /** @returns {GetConfigHtmlTemplateByIdParam} */
119
- static getConfigHtmlTemplateById(): GetConfigHtmlTemplateByIdParam;
120
- /** @returns {GetDefaultPdfDataParam} */
121
- static getDefaultPdfData(): GetDefaultPdfDataParam;
122
- /** @returns {GetDefaultPdfTemplateParam} */
123
- static getDefaultPdfTemplate(): GetDefaultPdfTemplateParam;
124
- /** @returns {GetHtmlTemplateConfigParam} */
125
- static getHtmlTemplateConfig(): GetHtmlTemplateConfigParam;
126
- /** @returns {GetPdfPayloadByIdParam} */
127
- static getPdfPayloadById(): GetPdfPayloadByIdParam;
128
- /** @returns {GetPdfTypesParam} */
129
- static getPdfTypes(): GetPdfTypesParam;
130
- /** @returns {SaveHtmlTemplateParam} */
131
- static saveHtmlTemplate(): SaveHtmlTemplateParam;
132
- /** @returns {UpdateHtmlTemplateParam} */
133
- static updateHtmlTemplate(): UpdateHtmlTemplateParam;
134
48
  }
135
49
  declare namespace FileStoragePlatformApplicationValidator {
136
- export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, DeletePdfGeneratorConfigParam, FetchPdfDefaultTemplateByIdParam, FetchPdfTypeByIdParam, GeneratePaymentReceiptParam, GetConfigHtmlTemplateByIdParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetHtmlTemplateConfigParam, GetPdfPayloadByIdParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam };
50
+ export { AppCompleteUploadParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam };
137
51
  }
138
52
  type AppCompleteUploadParam = {
139
53
  /**
@@ -145,13 +59,6 @@ type AppCompleteUploadParam = {
145
59
  namespace: string;
146
60
  body: FileStoragePlatformModel.FileUpload;
147
61
  };
148
- type AppCopyFilesParam = {
149
- /**
150
- * - Sync
151
- */
152
- sync?: boolean;
153
- body: FileStoragePlatformModel.CopyFiles;
154
- };
155
62
  type AppStartUploadParam = {
156
63
  /**
157
64
  * - Segregation of different types of
@@ -205,47 +112,4 @@ type BrowsefilesParam = {
205
112
  search?: string;
206
113
  body: FileStoragePlatformModel.ExtensionSlug;
207
114
  };
208
- type DeletePdfGeneratorConfigParam = {
209
- id: string;
210
- };
211
- type FetchPdfDefaultTemplateByIdParam = {
212
- id: string;
213
- };
214
- type FetchPdfTypeByIdParam = {
215
- id: string;
216
- };
217
- type GeneratePaymentReceiptParam = {
218
- body: FileStoragePlatformModel.PaymentReceiptRequestBody;
219
- };
220
- type GetConfigHtmlTemplateByIdParam = {
221
- id: string;
222
- };
223
- type GetDefaultPdfDataParam = {
224
- pdfTypeId: number;
225
- countryCode?: string;
226
- };
227
- type GetDefaultPdfTemplateParam = {
228
- pdfTypeId: number;
229
- format: string;
230
- countryCode?: string;
231
- };
232
- type GetHtmlTemplateConfigParam = {
233
- pdfTypeId: number;
234
- format: string;
235
- countryCode?: string;
236
- };
237
- type GetPdfPayloadByIdParam = {
238
- id: string;
239
- };
240
- type GetPdfTypesParam = {
241
- countryCode?: string;
242
- storeOs: boolean;
243
- };
244
- type SaveHtmlTemplateParam = {
245
- body: FileStoragePlatformModel.PdfConfig;
246
- };
247
- type UpdateHtmlTemplateParam = {
248
- id: string;
249
- body: FileStoragePlatformModel.PdfConfig;
250
- };
251
115
  import FileStoragePlatformModel = require("./FileStoragePlatformModel");
@@ -11,12 +11,6 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
11
11
  * @property {FileStoragePlatformModel.FileUpload} body
12
12
  */
13
13
 
14
- /**
15
- * @typedef AppCopyFilesParam
16
- * @property {boolean} [sync] - Sync
17
- * @property {FileStoragePlatformModel.CopyFiles} body
18
- */
19
-
20
14
  /**
21
15
  * @typedef AppStartUploadParam
22
16
  * @property {string} namespace - Segregation of different types of
@@ -49,73 +43,6 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
49
43
  * @property {FileStoragePlatformModel.ExtensionSlug} body
50
44
  */
51
45
 
52
- /**
53
- * @typedef DeletePdfGeneratorConfigParam
54
- * @property {string} id
55
- */
56
-
57
- /**
58
- * @typedef FetchPdfDefaultTemplateByIdParam
59
- * @property {string} id
60
- */
61
-
62
- /**
63
- * @typedef FetchPdfTypeByIdParam
64
- * @property {string} id
65
- */
66
-
67
- /**
68
- * @typedef GeneratePaymentReceiptParam
69
- * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
70
- */
71
-
72
- /**
73
- * @typedef GetConfigHtmlTemplateByIdParam
74
- * @property {string} id
75
- */
76
-
77
- /**
78
- * @typedef GetDefaultPdfDataParam
79
- * @property {number} pdfTypeId
80
- * @property {string} [countryCode]
81
- */
82
-
83
- /**
84
- * @typedef GetDefaultPdfTemplateParam
85
- * @property {number} pdfTypeId
86
- * @property {string} format
87
- * @property {string} [countryCode]
88
- */
89
-
90
- /**
91
- * @typedef GetHtmlTemplateConfigParam
92
- * @property {number} pdfTypeId
93
- * @property {string} format
94
- * @property {string} [countryCode]
95
- */
96
-
97
- /**
98
- * @typedef GetPdfPayloadByIdParam
99
- * @property {string} id
100
- */
101
-
102
- /**
103
- * @typedef GetPdfTypesParam
104
- * @property {string} [countryCode]
105
- * @property {boolean} storeOs
106
- */
107
-
108
- /**
109
- * @typedef SaveHtmlTemplateParam
110
- * @property {FileStoragePlatformModel.PdfConfig} body
111
- */
112
-
113
- /**
114
- * @typedef UpdateHtmlTemplateParam
115
- * @property {string} id
116
- * @property {FileStoragePlatformModel.PdfConfig} body
117
- */
118
-
119
46
  class FileStoragePlatformApplicationValidator {
120
47
  /** @returns {AppCompleteUploadParam} */
121
48
  static appCompleteUpload() {
@@ -126,15 +53,6 @@ class FileStoragePlatformApplicationValidator {
126
53
  }).required();
127
54
  }
128
55
 
129
- /** @returns {AppCopyFilesParam} */
130
- static appCopyFiles() {
131
- return Joi.object({
132
- sync: Joi.boolean(),
133
-
134
- body: FileStoragePlatformModel.CopyFiles().required(),
135
- }).required();
136
- }
137
-
138
56
  /** @returns {AppStartUploadParam} */
139
57
  static appStartUpload() {
140
58
  return Joi.object({
@@ -166,97 +84,6 @@ class FileStoragePlatformApplicationValidator {
166
84
  body: FileStoragePlatformModel.ExtensionSlug().required(),
167
85
  }).required();
168
86
  }
169
-
170
- /** @returns {DeletePdfGeneratorConfigParam} */
171
- static deletePdfGeneratorConfig() {
172
- return Joi.object({
173
- id: Joi.string().allow("").required(),
174
- }).required();
175
- }
176
-
177
- /** @returns {FetchPdfDefaultTemplateByIdParam} */
178
- static fetchPdfDefaultTemplateById() {
179
- return Joi.object({
180
- id: Joi.string().allow("").required(),
181
- }).required();
182
- }
183
-
184
- /** @returns {FetchPdfTypeByIdParam} */
185
- static fetchPdfTypeById() {
186
- return Joi.object({
187
- id: Joi.string().allow("").required(),
188
- }).required();
189
- }
190
-
191
- /** @returns {GeneratePaymentReceiptParam} */
192
- static generatePaymentReceipt() {
193
- return Joi.object({
194
- body: FileStoragePlatformModel.PaymentReceiptRequestBody().required(),
195
- }).required();
196
- }
197
-
198
- /** @returns {GetConfigHtmlTemplateByIdParam} */
199
- static getConfigHtmlTemplateById() {
200
- return Joi.object({
201
- id: Joi.string().allow("").required(),
202
- }).required();
203
- }
204
-
205
- /** @returns {GetDefaultPdfDataParam} */
206
- static getDefaultPdfData() {
207
- return Joi.object({
208
- pdfTypeId: Joi.number().required(),
209
- countryCode: Joi.string().allow(""),
210
- }).required();
211
- }
212
-
213
- /** @returns {GetDefaultPdfTemplateParam} */
214
- static getDefaultPdfTemplate() {
215
- return Joi.object({
216
- pdfTypeId: Joi.number().required(),
217
- format: Joi.string().allow("").required(),
218
- countryCode: Joi.string().allow(""),
219
- }).required();
220
- }
221
-
222
- /** @returns {GetHtmlTemplateConfigParam} */
223
- static getHtmlTemplateConfig() {
224
- return Joi.object({
225
- pdfTypeId: Joi.number().required(),
226
- format: Joi.string().allow("").required(),
227
- countryCode: Joi.string().allow(""),
228
- }).required();
229
- }
230
-
231
- /** @returns {GetPdfPayloadByIdParam} */
232
- static getPdfPayloadById() {
233
- return Joi.object({
234
- id: Joi.string().allow("").required(),
235
- }).required();
236
- }
237
-
238
- /** @returns {GetPdfTypesParam} */
239
- static getPdfTypes() {
240
- return Joi.object({
241
- countryCode: Joi.string().allow(""),
242
- storeOs: Joi.boolean().required(),
243
- }).required();
244
- }
245
-
246
- /** @returns {SaveHtmlTemplateParam} */
247
- static saveHtmlTemplate() {
248
- return Joi.object({
249
- body: FileStoragePlatformModel.PdfConfig().required(),
250
- }).required();
251
- }
252
-
253
- /** @returns {UpdateHtmlTemplateParam} */
254
- static updateHtmlTemplate() {
255
- return Joi.object({
256
- id: Joi.string().allow("").required(),
257
- body: FileStoragePlatformModel.PdfConfig().required(),
258
- }).required();
259
- }
260
87
  }
261
88
 
262
89
  module.exports = FileStoragePlatformApplicationValidator;