@gofynd/fdk-client-javascript 1.3.11-beta.8 → 1.4.0-beta.1

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.
package/README.md CHANGED
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.3.11-beta.8' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.0-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.3.11-beta.8",
3
+ "version": "1.4.0-beta.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,15 +30,11 @@ export = FileStoragePartnerModel;
30
30
  * @typedef FailedResponse
31
31
  * @property {string} message
32
32
  */
33
- /**
34
- * @typedef Params
35
- * @property {string} [subpath] - The subpath for the file.
36
- */
37
33
  /**
38
34
  * @typedef StartRequest
39
35
  * @property {string} content_type
40
36
  * @property {string} file_name
41
- * @property {Params} [params]
37
+ * @property {Object} [params]
42
38
  * @property {number} size
43
39
  * @property {string[]} [tags]
44
40
  */
@@ -63,7 +59,7 @@ export = FileStoragePartnerModel;
63
59
  declare class FileStoragePartnerModel {
64
60
  }
65
61
  declare namespace FileStoragePartnerModel {
66
- export { CDN, CompleteResponse, CreatedBy, FailedResponse, Params, StartRequest, StartResponse, Upload };
62
+ export { CDN, CompleteResponse, CreatedBy, FailedResponse, StartRequest, StartResponse, Upload };
67
63
  }
68
64
  /** @returns {CDN} */
69
65
  declare function CDN(): CDN;
@@ -100,20 +96,12 @@ declare function FailedResponse(): FailedResponse;
100
96
  type FailedResponse = {
101
97
  message: string;
102
98
  };
103
- /** @returns {Params} */
104
- declare function Params(): Params;
105
- type Params = {
106
- /**
107
- * - The subpath for the file.
108
- */
109
- subpath?: string;
110
- };
111
99
  /** @returns {StartRequest} */
112
100
  declare function StartRequest(): StartRequest;
113
101
  type StartRequest = {
114
102
  content_type: string;
115
103
  file_name: string;
116
- params?: Params;
104
+ params?: any;
117
105
  size: number;
118
106
  tags?: string[];
119
107
  };
@@ -35,16 +35,11 @@ const Joi = require("joi");
35
35
  * @property {string} message
36
36
  */
37
37
 
38
- /**
39
- * @typedef Params
40
- * @property {string} [subpath] - The subpath for the file.
41
- */
42
-
43
38
  /**
44
39
  * @typedef StartRequest
45
40
  * @property {string} content_type
46
41
  * @property {string} file_name
47
- * @property {Params} [params]
42
+ * @property {Object} [params]
48
43
  * @property {number} size
49
44
  * @property {string[]} [tags]
50
45
  */
@@ -113,19 +108,12 @@ class FileStoragePartnerModel {
113
108
  });
114
109
  }
115
110
 
116
- /** @returns {Params} */
117
- static Params() {
118
- return Joi.object({
119
- subpath: Joi.string().allow(""),
120
- });
121
- }
122
-
123
111
  /** @returns {StartRequest} */
124
112
  static StartRequest() {
125
113
  return Joi.object({
126
114
  content_type: Joi.string().allow("").required(),
127
115
  file_name: Joi.string().allow("").required(),
128
- params: FileStoragePartnerModel.Params(),
116
+ params: Joi.object().pattern(/\S/, Joi.any()),
129
117
  size: Joi.number().required(),
130
118
  tags: Joi.array().items(Joi.string().allow("")),
131
119
  });
@@ -576,7 +576,7 @@ declare class Content {
576
576
  * @summary: Get list of custom objects
577
577
  * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjects/).
578
578
  */
579
- getAppCustomObjects({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentPlatformModel.CustomObjectsSchema>;
579
+ getAppCustomObjects({ pageNo, pageSize, definitionId, requestHeaders }?: ContentPlatformApplicationValidator.GetAppCustomObjectsParam, { responseHeaders }?: object): Promise<ContentPlatformModel.CustomObjectsSchema>;
580
580
  /**
581
581
  * @param {ContentPlatformApplicationValidator.GetAppJobsParam} arg - Arg object
582
582
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -3803,13 +3803,17 @@ class Content {
3803
3803
  * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomObjects/).
3804
3804
  */
3805
3805
  async getAppCustomObjects(
3806
- { requestHeaders } = { requestHeaders: {} },
3806
+ { pageNo, pageSize, definitionId, requestHeaders } = { requestHeaders: {} },
3807
3807
  { responseHeaders } = { responseHeaders: false }
3808
3808
  ) {
3809
3809
  const {
3810
3810
  error,
3811
3811
  } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
3812
- {},
3812
+ {
3813
+ pageNo,
3814
+ pageSize,
3815
+ definitionId,
3816
+ },
3813
3817
  { abortEarly: false, allowUnknown: true }
3814
3818
  );
3815
3819
  if (error) {
@@ -3820,7 +3824,11 @@ class Content {
3820
3824
  const {
3821
3825
  error: warrning,
3822
3826
  } = ContentPlatformApplicationValidator.getAppCustomObjects().validate(
3823
- {},
3827
+ {
3828
+ pageNo,
3829
+ pageSize,
3830
+ definitionId,
3831
+ },
3824
3832
  { abortEarly: false, allowUnknown: false }
3825
3833
  );
3826
3834
  if (warrning) {
@@ -3831,6 +3839,9 @@ class Content {
3831
3839
  }
3832
3840
 
3833
3841
  const query_params = {};
3842
+ query_params["definition_id"] = definitionId;
3843
+ query_params["page_no"] = pageNo;
3844
+ query_params["page_size"] = pageSize;
3834
3845
 
3835
3846
  const response = await PlatformAPIClient.execute(
3836
3847
  this.config,
@@ -142,7 +142,7 @@ export = ContentPlatformApplicationValidator;
142
142
  * @typedef EditSEOMarkupSchemaParam
143
143
  * @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
144
144
  * Template created within a business.
145
- * @property {ContentPlatformModel.SEOSchemaMarkupTemplate} body
145
+ * @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
146
146
  */
147
147
  /**
148
148
  * @typedef ExportAppCustomObjectEntriesParam
@@ -202,7 +202,12 @@ export = ContentPlatformApplicationValidator;
202
202
  * @property {string} pageSize
203
203
  * @property {string} [search]
204
204
  */
205
- /** @typedef GetAppCustomObjectsParam */
205
+ /**
206
+ * @typedef GetAppCustomObjectsParam
207
+ * @property {string} [definitionId]
208
+ * @property {string} pageNo
209
+ * @property {string} pageSize
210
+ */
206
211
  /**
207
212
  * @typedef GetAppJobsParam
208
213
  * @property {string} page
@@ -546,7 +551,7 @@ declare class ContentPlatformApplicationValidator {
546
551
  /** @returns {GetAppCustomObjectDefinitionsParam} */
547
552
  static getAppCustomObjectDefinitions(): GetAppCustomObjectDefinitionsParam;
548
553
  /** @returns {GetAppCustomObjectsParam} */
549
- static getAppCustomObjects(): any;
554
+ static getAppCustomObjects(): GetAppCustomObjectsParam;
550
555
  /** @returns {GetAppJobsParam} */
551
556
  static getAppJobs(): GetAppJobsParam;
552
557
  /** @returns {GetAppResourcesParam} */
@@ -814,7 +819,7 @@ type EditSEOMarkupSchemaParam = {
814
819
  * Template created within a business.
815
820
  */
816
821
  id: string;
817
- body: ContentPlatformModel.SEOSchemaMarkupTemplate;
822
+ body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody;
818
823
  };
819
824
  type ExportAppCustomObjectEntriesParam = {
820
825
  definitionId: string;
@@ -874,6 +879,11 @@ type GetAppCustomObjectDefinitionsParam = {
874
879
  pageSize: string;
875
880
  search?: string;
876
881
  };
882
+ type GetAppCustomObjectsParam = {
883
+ definitionId?: string;
884
+ pageNo: string;
885
+ pageSize: string;
886
+ };
877
887
  type GetAppJobsParam = {
878
888
  page: string;
879
889
  pageSize: string;
@@ -1215,7 +1225,6 @@ type UpdateSupportInformationParam = {
1215
1225
  body: ContentPlatformModel.Support;
1216
1226
  };
1217
1227
  type GetAppCustomFieldTypesParam = any;
1218
- type GetAppCustomObjectsParam = any;
1219
1228
  type GetAppResourcesParam = any;
1220
1229
  type GetDataLoadersParam = any;
1221
1230
  type GetDefaultNavigationsParam = any;
@@ -178,7 +178,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
178
178
  * @typedef EditSEOMarkupSchemaParam
179
179
  * @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
180
180
  * Template created within a business.
181
- * @property {ContentPlatformModel.SEOSchemaMarkupTemplate} body
181
+ * @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
182
182
  */
183
183
 
184
184
  /**
@@ -251,7 +251,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
251
251
  * @property {string} [search]
252
252
  */
253
253
 
254
- /** @typedef GetAppCustomObjectsParam */
254
+ /**
255
+ * @typedef GetAppCustomObjectsParam
256
+ * @property {string} [definitionId]
257
+ * @property {string} pageNo
258
+ * @property {string} pageSize
259
+ */
255
260
 
256
261
  /**
257
262
  * @typedef GetAppJobsParam
@@ -797,7 +802,7 @@ class ContentPlatformApplicationValidator {
797
802
  static editSEOMarkupSchema() {
798
803
  return Joi.object({
799
804
  id: Joi.string().allow("").required(),
800
- body: ContentPlatformModel.SEOSchemaMarkupTemplate().required(),
805
+ body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
801
806
  }).required();
802
807
  }
803
808
 
@@ -894,7 +899,11 @@ class ContentPlatformApplicationValidator {
894
899
 
895
900
  /** @returns {GetAppCustomObjectsParam} */
896
901
  static getAppCustomObjects() {
897
- return Joi.object({}).required();
902
+ return Joi.object({
903
+ definitionId: Joi.string().allow(""),
904
+ pageNo: Joi.string().allow("").required(),
905
+ pageSize: Joi.string().allow("").required(),
906
+ }).required();
898
907
  }
899
908
 
900
909
  /** @returns {GetAppJobsParam} */
@@ -194,7 +194,7 @@ declare class Content {
194
194
  * @summary: Get list of custom objects
195
195
  * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getCustomObjects/).
196
196
  */
197
- getCustomObjects({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentPlatformModel.CustomObjectsSchema>;
197
+ getCustomObjects({ pageNo, pageSize, definitionId, requestHeaders }?: ContentPlatformValidator.GetCustomObjectsParam, { responseHeaders }?: object): Promise<ContentPlatformModel.CustomObjectsSchema>;
198
198
  /**
199
199
  * @param {ContentPlatformValidator.GetJobsParam} arg - Arg object
200
200
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1357,11 +1357,15 @@ class Content {
1357
1357
  * @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getCustomObjects/).
1358
1358
  */
1359
1359
  async getCustomObjects(
1360
- { requestHeaders } = { requestHeaders: {} },
1360
+ { pageNo, pageSize, definitionId, requestHeaders } = { requestHeaders: {} },
1361
1361
  { responseHeaders } = { responseHeaders: false }
1362
1362
  ) {
1363
1363
  const { error } = ContentPlatformValidator.getCustomObjects().validate(
1364
- {},
1364
+ {
1365
+ pageNo,
1366
+ pageSize,
1367
+ definitionId,
1368
+ },
1365
1369
  { abortEarly: false, allowUnknown: true }
1366
1370
  );
1367
1371
  if (error) {
@@ -1372,7 +1376,11 @@ class Content {
1372
1376
  const {
1373
1377
  error: warrning,
1374
1378
  } = ContentPlatformValidator.getCustomObjects().validate(
1375
- {},
1379
+ {
1380
+ pageNo,
1381
+ pageSize,
1382
+ definitionId,
1383
+ },
1376
1384
  { abortEarly: false, allowUnknown: false }
1377
1385
  );
1378
1386
  if (warrning) {
@@ -1383,6 +1391,9 @@ class Content {
1383
1391
  }
1384
1392
 
1385
1393
  const query_params = {};
1394
+ query_params["definition_id"] = definitionId;
1395
+ query_params["page_no"] = pageNo;
1396
+ query_params["page_size"] = pageSize;
1386
1397
 
1387
1398
  const xHeaders = {};
1388
1399
 
@@ -579,6 +579,7 @@ export = ContentPlatformModel;
579
579
  * @typedef DefaultSEOSchemaMarkupTemplate
580
580
  * @property {string} [page_type]
581
581
  * @property {string} [schema]
582
+ * @property {Object} [target_json]
582
583
  */
583
584
  /**
584
585
  * @typedef Detail
@@ -1026,6 +1027,7 @@ export = ContentPlatformModel;
1026
1027
  * @property {string} [id]
1027
1028
  * @property {string} [page_type]
1028
1029
  * @property {string} [schema]
1030
+ * @property {Object} [target_json]
1029
1031
  * @property {string} [title]
1030
1032
  * @property {string} [updated_at]
1031
1033
  */
@@ -1036,6 +1038,7 @@ export = ContentPlatformModel;
1036
1038
  * @property {string} [description]
1037
1039
  * @property {string} [page_type]
1038
1040
  * @property {string} [schema]
1041
+ * @property {Object} [target_json]
1039
1042
  * @property {string} [title]
1040
1043
  * @property {string} [updated_at]
1041
1044
  */
@@ -1873,6 +1876,7 @@ declare function DefaultSEOSchemaMarkupTemplate(): DefaultSEOSchemaMarkupTemplat
1873
1876
  type DefaultSEOSchemaMarkupTemplate = {
1874
1877
  page_type?: string;
1875
1878
  schema?: string;
1879
+ target_json?: any;
1876
1880
  };
1877
1881
  /** @returns {Detail} */
1878
1882
  declare function Detail(): Detail;
@@ -2392,6 +2396,7 @@ type SEOSchemaMarkupTemplate = {
2392
2396
  id?: string;
2393
2397
  page_type?: string;
2394
2398
  schema?: string;
2399
+ target_json?: any;
2395
2400
  title?: string;
2396
2401
  updated_at?: string;
2397
2402
  };
@@ -2403,6 +2408,7 @@ type SEOSchemaMarkupTemplateRequestBody = {
2403
2408
  description?: string;
2404
2409
  page_type?: string;
2405
2410
  schema?: string;
2411
+ target_json?: any;
2406
2412
  title?: string;
2407
2413
  updated_at?: string;
2408
2414
  };
@@ -653,6 +653,7 @@ const Joi = require("joi");
653
653
  * @typedef DefaultSEOSchemaMarkupTemplate
654
654
  * @property {string} [page_type]
655
655
  * @property {string} [schema]
656
+ * @property {Object} [target_json]
656
657
  */
657
658
 
658
659
  /**
@@ -1160,6 +1161,7 @@ const Joi = require("joi");
1160
1161
  * @property {string} [id]
1161
1162
  * @property {string} [page_type]
1162
1163
  * @property {string} [schema]
1164
+ * @property {Object} [target_json]
1163
1165
  * @property {string} [title]
1164
1166
  * @property {string} [updated_at]
1165
1167
  */
@@ -1171,6 +1173,7 @@ const Joi = require("joi");
1171
1173
  * @property {string} [description]
1172
1174
  * @property {string} [page_type]
1173
1175
  * @property {string} [schema]
1176
+ * @property {Object} [target_json]
1174
1177
  * @property {string} [title]
1175
1178
  * @property {string} [updated_at]
1176
1179
  */
@@ -2195,6 +2198,7 @@ class ContentPlatformModel {
2195
2198
  return Joi.object({
2196
2199
  page_type: Joi.string().allow(""),
2197
2200
  schema: Joi.string().allow(""),
2201
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2198
2202
  });
2199
2203
  }
2200
2204
 
@@ -2835,6 +2839,7 @@ class ContentPlatformModel {
2835
2839
  id: Joi.string().allow(""),
2836
2840
  page_type: Joi.string().allow(""),
2837
2841
  schema: Joi.string().allow(""),
2842
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2838
2843
  title: Joi.string().allow(""),
2839
2844
  updated_at: Joi.string().allow(""),
2840
2845
  });
@@ -2848,6 +2853,7 @@ class ContentPlatformModel {
2848
2853
  description: Joi.string().allow(""),
2849
2854
  page_type: Joi.string().allow(""),
2850
2855
  schema: Joi.string().allow(""),
2856
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2851
2857
  title: Joi.string().allow(""),
2852
2858
  updated_at: Joi.string().allow(""),
2853
2859
  });
@@ -69,7 +69,12 @@ export = ContentPlatformValidator;
69
69
  * @property {string} pageSize
70
70
  * @property {string} [search]
71
71
  */
72
- /** @typedef GetCustomObjectsParam */
72
+ /**
73
+ * @typedef GetCustomObjectsParam
74
+ * @property {string} [definitionId]
75
+ * @property {string} pageNo
76
+ * @property {string} pageSize
77
+ */
73
78
  /**
74
79
  * @typedef GetJobsParam
75
80
  * @property {string} page
@@ -135,7 +140,7 @@ declare class ContentPlatformValidator {
135
140
  /** @returns {GetCustomObjectDefinitionsParam} */
136
141
  static getCustomObjectDefinitions(): GetCustomObjectDefinitionsParam;
137
142
  /** @returns {GetCustomObjectsParam} */
138
- static getCustomObjects(): any;
143
+ static getCustomObjects(): GetCustomObjectsParam;
139
144
  /** @returns {GetJobsParam} */
140
145
  static getJobs(): GetJobsParam;
141
146
  /** @returns {GetResourcesParam} */
@@ -208,6 +213,11 @@ type GetCustomObjectDefinitionsParam = {
208
213
  pageSize: string;
209
214
  search?: string;
210
215
  };
216
+ type GetCustomObjectsParam = {
217
+ definitionId?: string;
218
+ pageNo: string;
219
+ pageSize: string;
220
+ };
211
221
  type GetJobsParam = {
212
222
  page: string;
213
223
  pageSize: string;
@@ -233,6 +243,5 @@ type UpdateCustomObjectDefinitionParam = {
233
243
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema;
234
244
  };
235
245
  type GetCustomFieldTypesParam = any;
236
- type GetCustomObjectsParam = any;
237
246
  type GetResourcesParam = any;
238
247
  import ContentPlatformModel = require("./ContentPlatformModel");
@@ -88,7 +88,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
88
88
  * @property {string} [search]
89
89
  */
90
90
 
91
- /** @typedef GetCustomObjectsParam */
91
+ /**
92
+ * @typedef GetCustomObjectsParam
93
+ * @property {string} [definitionId]
94
+ * @property {string} pageNo
95
+ * @property {string} pageSize
96
+ */
92
97
 
93
98
  /**
94
99
  * @typedef GetJobsParam
@@ -250,7 +255,11 @@ class ContentPlatformValidator {
250
255
 
251
256
  /** @returns {GetCustomObjectsParam} */
252
257
  static getCustomObjects() {
253
- return Joi.object({}).required();
258
+ return Joi.object({
259
+ definitionId: Joi.string().allow(""),
260
+ pageNo: Joi.string().allow("").required(),
261
+ pageSize: Joi.string().allow("").required(),
262
+ }).required();
254
263
  }
255
264
 
256
265
  /** @returns {GetJobsParam} */
@@ -263,10 +263,6 @@ export = FileStoragePlatformModel;
263
263
  * @property {SignedQrcodeGenerator} [signed_qrcode_generator]
264
264
  * @property {UpiQrcodeGenerator} [upi_qrcode_generator]
265
265
  */
266
- /**
267
- * @typedef Params
268
- * @property {string} [subpath] - The subpath for the file.
269
- */
270
266
  /**
271
267
  * @typedef PaymentData
272
268
  * @property {number} [amount]
@@ -446,7 +442,7 @@ export = FileStoragePlatformModel;
446
442
  * @typedef StartRequest
447
443
  * @property {string} content_type
448
444
  * @property {string} file_name
449
- * @property {Params} [params]
445
+ * @property {Object} [params]
450
446
  * @property {number} size
451
447
  * @property {string[]} [tags]
452
448
  */
@@ -519,7 +515,7 @@ export = FileStoragePlatformModel;
519
515
  declare class FileStoragePlatformModel {
520
516
  }
521
517
  declare namespace FileStoragePlatformModel {
522
- export { AwbNumberLabelBarcodeGenerator, Brand, CDN, Cgst, CompanyDetail, CompleteResponse, ConversionRate, CopyFiles, CreatedBy, CustomerBillingDetail, CustomerShippingDetail, DeliveryPartnerDetail, DestinationNamespace, DigitalsignatureGenerator, Document, DummyTemplateData, DummyTemplateDataItems, DummyTemplateDataPayload, ExtensionSlug, FailedResponse, Igst, Image, Inr, InvoiceDetail, InvoiceTypesDataResponse, InvoiceTypesResponse, ItemsProductTable, Kwargs, KwargsAwbNumber, KwargsUpiQrcode, Meta, MetaProperty, Params, PaymentData, PaymentReceiptCustomerDetails, PaymentReceiptFormat, PaymentReceiptMeta, PaymentReceiptOrderDetails, PaymentReceiptPayload, PaymentReceiptPayments, PaymentReceiptRequestBody, PaymentReceiptService, PaymentReceiptTaxes, PdfConfig, PdfConfigSaveSuccess, PdfConfigSaveSuccessData, PdfConfigSuccess, PdfConfigSuccessData, PdfDefaultTemplateSuccess, ProductTable, Rates, RegisteredCompanyDetail, ReturnDetail, Sgst, ShipmentIdBarcodeGenerator, SignedQrcodeGenerator, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, StoreDetail, Tax, Taxes, TaxTable, UpiQrcodeGenerator, Upload, Urls, Usd };
518
+ export { AwbNumberLabelBarcodeGenerator, Brand, CDN, Cgst, CompanyDetail, CompleteResponse, ConversionRate, CopyFiles, CreatedBy, CustomerBillingDetail, CustomerShippingDetail, DeliveryPartnerDetail, DestinationNamespace, DigitalsignatureGenerator, Document, DummyTemplateData, DummyTemplateDataItems, DummyTemplateDataPayload, ExtensionSlug, FailedResponse, Igst, Image, Inr, InvoiceDetail, InvoiceTypesDataResponse, InvoiceTypesResponse, ItemsProductTable, Kwargs, KwargsAwbNumber, KwargsUpiQrcode, Meta, MetaProperty, PaymentData, PaymentReceiptCustomerDetails, PaymentReceiptFormat, PaymentReceiptMeta, PaymentReceiptOrderDetails, PaymentReceiptPayload, PaymentReceiptPayments, PaymentReceiptRequestBody, PaymentReceiptService, PaymentReceiptTaxes, PdfConfig, PdfConfigSaveSuccess, PdfConfigSaveSuccessData, PdfConfigSuccess, PdfConfigSuccessData, PdfDefaultTemplateSuccess, ProductTable, Rates, RegisteredCompanyDetail, ReturnDetail, Sgst, ShipmentIdBarcodeGenerator, SignedQrcodeGenerator, SignUrlRequest, SignUrlResponse, StartRequest, StartResponse, StoreDetail, Tax, Taxes, TaxTable, UpiQrcodeGenerator, Upload, Urls, Usd };
523
519
  }
524
520
  /** @returns {AwbNumberLabelBarcodeGenerator} */
525
521
  declare function AwbNumberLabelBarcodeGenerator(): AwbNumberLabelBarcodeGenerator;
@@ -817,14 +813,6 @@ type MetaProperty = {
817
813
  signed_qrcode_generator?: SignedQrcodeGenerator;
818
814
  upi_qrcode_generator?: UpiQrcodeGenerator;
819
815
  };
820
- /** @returns {Params} */
821
- declare function Params(): Params;
822
- type Params = {
823
- /**
824
- * - The subpath for the file.
825
- */
826
- subpath?: string;
827
- };
828
816
  /** @returns {PaymentData} */
829
817
  declare function PaymentData(): PaymentData;
830
818
  type PaymentData = {
@@ -1039,7 +1027,7 @@ declare function StartRequest(): StartRequest;
1039
1027
  type StartRequest = {
1040
1028
  content_type: string;
1041
1029
  file_name: string;
1042
- params?: Params;
1030
+ params?: any;
1043
1031
  size: number;
1044
1032
  tags?: string[];
1045
1033
  };
@@ -296,11 +296,6 @@ const Joi = require("joi");
296
296
  * @property {UpiQrcodeGenerator} [upi_qrcode_generator]
297
297
  */
298
298
 
299
- /**
300
- * @typedef Params
301
- * @property {string} [subpath] - The subpath for the file.
302
- */
303
-
304
299
  /**
305
300
  * @typedef PaymentData
306
301
  * @property {number} [amount]
@@ -505,7 +500,7 @@ const Joi = require("joi");
505
500
  * @typedef StartRequest
506
501
  * @property {string} content_type
507
502
  * @property {string} file_name
508
- * @property {Params} [params]
503
+ * @property {Object} [params]
509
504
  * @property {number} size
510
505
  * @property {string[]} [tags]
511
506
  */
@@ -950,13 +945,6 @@ class FileStoragePlatformModel {
950
945
  });
951
946
  }
952
947
 
953
- /** @returns {Params} */
954
- static Params() {
955
- return Joi.object({
956
- subpath: Joi.string().allow(""),
957
- });
958
- }
959
-
960
948
  /** @returns {PaymentData} */
961
949
  static PaymentData() {
962
950
  return Joi.object({
@@ -1214,7 +1202,7 @@ class FileStoragePlatformModel {
1214
1202
  return Joi.object({
1215
1203
  content_type: Joi.string().allow("").required(),
1216
1204
  file_name: Joi.string().allow("").required(),
1217
- params: FileStoragePlatformModel.Params(),
1205
+ params: Joi.object().pattern(/\S/, Joi.any()),
1218
1206
  size: Joi.number().required(),
1219
1207
  tags: Joi.array().items(Joi.string().allow("")),
1220
1208
  });