@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.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.
Files changed (83) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
  4. package/sdk/application/Cart/CartApplicationClient.js +14 -14
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
  6. package/sdk/application/Content/ContentApplicationClient.js +53 -0
  7. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  8. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  9. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
  10. package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
  11. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
  12. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
  13. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
  14. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
  15. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
  16. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  17. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  18. package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
  19. package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
  20. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  21. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  22. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
  24. package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
  25. package/sdk/platform/Cart/CartPlatformModel.js +203 -31
  26. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
  27. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
  28. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
  30. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
  31. package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
  32. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
  33. package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
  34. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
  35. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
  37. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
  41. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
  42. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
  43. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
  44. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
  45. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
  46. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
  47. package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
  48. package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
  49. package/sdk/platform/Content/ContentPlatformModel.js +43 -13
  50. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  51. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  52. package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
  53. package/sdk/platform/Order/OrderPlatformClient.js +21 -21
  54. package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
  55. package/sdk/platform/Order/OrderPlatformModel.js +665 -70
  56. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
  57. package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
  58. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
  59. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
  60. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
  61. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
  62. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
  63. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
  66. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
  68. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  69. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  70. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
  71. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
  72. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
  73. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
  74. package/sdk/public/PublicClient.d.ts +0 -2
  75. package/sdk/public/PublicClient.js +0 -4
  76. package/sdk/public/index.d.ts +0 -1
  77. package/sdk/public/index.js +0 -2
  78. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  79. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  80. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  81. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  82. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  83. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -370,7 +370,15 @@ const Joi = require("joi");
370
370
  * @property {string} [type]
371
371
  * @property {PincodeLatLongData} [lat_long]
372
372
  * @property {string} [parent_uid]
373
+ * @property {string} [code]
373
374
  * @property {LocalityParent[]} [localities]
375
+ * @property {string} [iso2] - ISO 3166-1 alpha-2 code for the country.
376
+ * @property {string} [iso3] - ISO 3166-1 alpha-3 code for the country.
377
+ * @property {Object} [currency] - Currency information for the country.
378
+ * @property {string} [phone_code] - Country's international phone dialing code.
379
+ * @property {Object} [hierarchy] - Hierarchical data of the country's location.
380
+ * @property {string} [latitude] - Latitude of the country's geographic center.
381
+ * @property {string} [longitude] - Longitude of the country's geographic center.
374
382
  */
375
383
 
376
384
  /**
@@ -388,7 +396,15 @@ const Joi = require("joi");
388
396
  * @property {string[]} [parent_ids]
389
397
  * @property {string} [type]
390
398
  * @property {Object} [serviceability]
399
+ * @property {string} [code]
391
400
  * @property {string} [parent_uid]
401
+ * @property {string} [iso2] - ISO 3166-1 alpha-2 code for the country.
402
+ * @property {string} [iso3] - ISO 3166-1 alpha-3 code for the country.
403
+ * @property {Object} [currency] - Currency information for the country.
404
+ * @property {string} [phone_code] - Country's international phone dialing code.
405
+ * @property {Object} [hierarchy] - Hierarchical data of the country's location.
406
+ * @property {string} [latitude] - Latitude of the country's geographic center.
407
+ * @property {string} [longitude] - Longitude of the country's geographic center.
392
408
  */
393
409
 
394
410
  /**
@@ -400,6 +416,7 @@ const Joi = require("joi");
400
416
  * @property {string[]} [parent_ids]
401
417
  * @property {string} [parent_uid]
402
418
  * @property {string} [type]
419
+ * @property {string} [code]
403
420
  * @property {LocalityParent[]} [localities]
404
421
  */
405
422
 
@@ -650,11 +667,15 @@ const Joi = require("joi");
650
667
  * @property {string} zone_id
651
668
  * @property {string} name
652
669
  * @property {string} type
670
+ * @property {string} access_level - Access level of the zone (public or private).
653
671
  * @property {GeoArea[]} geo_areas
654
672
  * @property {string} slug
655
- * @property {ListViewProductV2} stores
673
+ * @property {ListViewProductV2} [stores]
656
674
  * @property {boolean} is_active
657
- * @property {ListViewProductV2} product
675
+ * @property {boolean} is_opted - Indicates whether the zone is opted or not.
676
+ * @property {boolean} [is_public_opted] - Indicates whether the public zone is
677
+ * opted by any seller or not
678
+ * @property {ListViewProductV2} [product]
658
679
  * @property {number} company_id
659
680
  * @property {string} application_id
660
681
  * @property {string} created_by
@@ -665,6 +686,11 @@ const Joi = require("joi");
665
686
  * @property {Summary} [summary]
666
687
  */
667
688
 
689
+ /**
690
+ * @typedef SummaryRegions
691
+ * @property {RegionSchema[]} [regions]
692
+ */
693
+
668
694
  /**
669
695
  * @typedef Summary
670
696
  * @property {number} [stores_count]
@@ -763,11 +789,13 @@ const Joi = require("joi");
763
789
  * @property {string} [zone_id]
764
790
  * @property {string} [name]
765
791
  * @property {string} [type]
792
+ * @property {string} [access_level] - Access level of the zone (public or private).
766
793
  * @property {string} [slug]
767
794
  * @property {string[]} [geo_areas]
768
795
  * @property {number} [company_id]
769
796
  * @property {string} [application_id]
770
797
  * @property {boolean} [is_active]
798
+ * @property {boolean} [is_opted] - Indicates whether the zone is opted or not.
771
799
  * @property {ProductSchema} [product]
772
800
  * @property {StoresSchema} [stores]
773
801
  */
@@ -778,8 +806,10 @@ const Joi = require("joi");
778
806
  * @property {string} slug
779
807
  * @property {number} company_id
780
808
  * @property {string} type
809
+ * @property {string} access_level - Access level of the zone (public or private).
781
810
  * @property {string} application_id
782
811
  * @property {boolean} is_active
812
+ * @property {boolean} is_opted - Indicates whether the zone is opted or not.
783
813
  * @property {string[]} geo_areas
784
814
  * @property {ProductSchema} product
785
815
  * @property {StoresSchema} stores
@@ -788,6 +818,8 @@ const Joi = require("joi");
788
818
  * @property {string} created_on
789
819
  * @property {string} modified_by
790
820
  * @property {string} modified_on
821
+ * @property {string} [stage]
822
+ * @property {Summary} [summary]
791
823
  */
792
824
 
793
825
  /**
@@ -849,8 +881,9 @@ const Joi = require("joi");
849
881
  * @property {string} name
850
882
  * @property {string} slug
851
883
  * @property {boolean} is_active
852
- * @property {ProductSchema} product
853
- * @property {StoresSchema} stores
884
+ * @property {boolean} [is_opted]
885
+ * @property {ProductSchema} [product]
886
+ * @property {StoresSchema} [stores]
854
887
  * @property {string} [created_by]
855
888
  * @property {string} [created_on]
856
889
  * @property {string} [modified_by]
@@ -868,13 +901,15 @@ const Joi = require("joi");
868
901
  * @property {string} name - Name of the zone.
869
902
  * @property {string} slug - URL-friendly version of the zone name.
870
903
  * @property {boolean} is_active - Indicates whether the zone is active.
871
- * @property {ProductDetailsSchema} product
872
- * @property {StoresDetailsSchema} stores
904
+ * @property {boolean} [is_opted] - Indicates whether the zone is opted or not.
905
+ * @property {ProductDetailsSchema} [product]
906
+ * @property {StoresDetailsSchema} [stores]
873
907
  * @property {string} [stage] - Current stage of the zone in its lifecycle.
874
908
  * @property {string} [overlapping_file_url] - URL of the file containing
875
909
  * overlapping zone information.
876
910
  * @property {GeoAreaDetailsSchema[]} geo_areas
877
911
  * @property {string} type - Type of the zone (custom or default).
912
+ * @property {string} [access_level] - Access level of the zone (public or private).
878
913
  * @property {string[]} [overlapping_zone_names] - List of names of overlapping zones.
879
914
  */
880
915
 
@@ -889,12 +924,13 @@ const Joi = require("joi");
889
924
  * @property {boolean} is_active
890
925
  * @property {string} slug
891
926
  * @property {string} type
927
+ * @property {string} access_level - Access level of zone
892
928
  * @property {string} name
893
929
  * @property {number} company_id
894
930
  * @property {string} application_id
895
931
  * @property {string[]} geo_areas
896
- * @property {ZoneStores} stores
897
- * @property {ZoneProduct} product
932
+ * @property {ZoneStores} [stores]
933
+ * @property {ZoneProduct} [product]
898
934
  */
899
935
 
900
936
  /**
@@ -945,17 +981,22 @@ const Joi = require("joi");
945
981
  * @property {string} slug
946
982
  * @property {number} company_id
947
983
  * @property {string} type
984
+ * @property {string} access_level - Access level of the zone (public or private).
948
985
  * @property {string} application_id
949
986
  * @property {boolean} is_active
987
+ * @property {boolean} [is_public_opted] - Indicates whether the public zone is
988
+ * opted by any seller or not
989
+ * @property {boolean} [is_opted] - Indicates whether the zone is opted or not.
950
990
  * @property {string[]} geo_areas
951
- * @property {ListViewProductV2} stores
952
- * @property {ListViewProductV2} product
991
+ * @property {ListViewProductV2} [stores]
992
+ * @property {ListViewProductV2} [product]
953
993
  * @property {string} created_by
954
994
  * @property {string} created_on
955
995
  * @property {string} modified_by
956
996
  * @property {string} modified_on
957
- * @property {string} stage
997
+ * @property {string} [stage]
958
998
  * @property {string} zone_id
999
+ * @property {SummaryRegions} [summary]
959
1000
  */
960
1001
 
961
1002
  /**
@@ -1224,6 +1265,11 @@ const Joi = require("joi");
1224
1265
  * @property {ServiceabilityErrorResponse[]} error
1225
1266
  */
1226
1267
 
1268
+ /**
1269
+ * @typedef ServiceabilityZoneNonMarketplaceErrorResult
1270
+ * @property {string} error
1271
+ */
1272
+
1227
1273
  /**
1228
1274
  * @typedef ReAssignStoreResponse
1229
1275
  * @property {string} to_pincode
@@ -2767,9 +2813,17 @@ class ServiceabilityPlatformModel {
2767
2813
  type: Joi.string().allow(""),
2768
2814
  lat_long: ServiceabilityPlatformModel.PincodeLatLongData(),
2769
2815
  parent_uid: Joi.string().allow("").allow(null),
2816
+ code: Joi.string().allow(""),
2770
2817
  localities: Joi.array().items(
2771
2818
  ServiceabilityPlatformModel.LocalityParent()
2772
2819
  ),
2820
+ iso2: Joi.string().allow(""),
2821
+ iso3: Joi.string().allow(""),
2822
+ currency: Joi.any(),
2823
+ phone_code: Joi.string().allow(""),
2824
+ hierarchy: Joi.any(),
2825
+ latitude: Joi.string().allow(""),
2826
+ longitude: Joi.string().allow(""),
2773
2827
  });
2774
2828
  }
2775
2829
 
@@ -2791,7 +2845,15 @@ class ServiceabilityPlatformModel {
2791
2845
  parent_ids: Joi.array().items(Joi.string().allow("")).allow(null, ""),
2792
2846
  type: Joi.string().allow(""),
2793
2847
  serviceability: Joi.any(),
2848
+ code: Joi.string().allow(""),
2794
2849
  parent_uid: Joi.string().allow("").allow(null),
2850
+ iso2: Joi.string().allow(""),
2851
+ iso3: Joi.string().allow(""),
2852
+ currency: Joi.any(),
2853
+ phone_code: Joi.string().allow(""),
2854
+ hierarchy: Joi.any(),
2855
+ latitude: Joi.string().allow(""),
2856
+ longitude: Joi.string().allow(""),
2795
2857
  });
2796
2858
  }
2797
2859
 
@@ -2805,6 +2867,7 @@ class ServiceabilityPlatformModel {
2805
2867
  parent_ids: Joi.array().items(Joi.string().allow("")).allow(null, ""),
2806
2868
  parent_uid: Joi.string().allow("").allow(null),
2807
2869
  type: Joi.string().allow(""),
2870
+ code: Joi.string().allow(""),
2808
2871
  localities: Joi.array().items(
2809
2872
  ServiceabilityPlatformModel.LocalityParent()
2810
2873
  ),
@@ -3128,13 +3191,16 @@ class ServiceabilityPlatformModel {
3128
3191
  zone_id: Joi.string().allow("").required(),
3129
3192
  name: Joi.string().allow("").required(),
3130
3193
  type: Joi.string().allow("").required(),
3194
+ access_level: Joi.string().allow("").required(),
3131
3195
  geo_areas: Joi.array()
3132
3196
  .items(ServiceabilityPlatformModel.GeoArea())
3133
3197
  .required(),
3134
3198
  slug: Joi.string().allow("").required(),
3135
- stores: ServiceabilityPlatformModel.ListViewProductV2().required(),
3199
+ stores: ServiceabilityPlatformModel.ListViewProductV2(),
3136
3200
  is_active: Joi.boolean().required(),
3137
- product: ServiceabilityPlatformModel.ListViewProductV2().required(),
3201
+ is_opted: Joi.boolean().required(),
3202
+ is_public_opted: Joi.boolean(),
3203
+ product: ServiceabilityPlatformModel.ListViewProductV2(),
3138
3204
  company_id: Joi.number().required(),
3139
3205
  application_id: Joi.string().allow("").required(),
3140
3206
  created_by: Joi.string().allow("").required(),
@@ -3146,6 +3212,13 @@ class ServiceabilityPlatformModel {
3146
3212
  });
3147
3213
  }
3148
3214
 
3215
+ /** @returns {SummaryRegions} */
3216
+ static SummaryRegions() {
3217
+ return Joi.object({
3218
+ regions: Joi.array().items(ServiceabilityPlatformModel.RegionSchema()),
3219
+ });
3220
+ }
3221
+
3149
3222
  /** @returns {Summary} */
3150
3223
  static Summary() {
3151
3224
  return Joi.object({
@@ -3277,11 +3350,13 @@ class ServiceabilityPlatformModel {
3277
3350
  zone_id: Joi.string().allow(""),
3278
3351
  name: Joi.string().allow(""),
3279
3352
  type: Joi.string().allow(""),
3353
+ access_level: Joi.string().allow(""),
3280
3354
  slug: Joi.string().allow(""),
3281
3355
  geo_areas: Joi.array().items(Joi.string().allow("")),
3282
3356
  company_id: Joi.number(),
3283
3357
  application_id: Joi.string().allow(""),
3284
3358
  is_active: Joi.boolean(),
3359
+ is_opted: Joi.boolean(),
3285
3360
  product: ServiceabilityPlatformModel.ProductSchema(),
3286
3361
  stores: ServiceabilityPlatformModel.StoresSchema(),
3287
3362
  });
@@ -3294,8 +3369,10 @@ class ServiceabilityPlatformModel {
3294
3369
  slug: Joi.string().allow("").required(),
3295
3370
  company_id: Joi.number().required(),
3296
3371
  type: Joi.string().allow("").required(),
3372
+ access_level: Joi.string().allow("").required(),
3297
3373
  application_id: Joi.string().allow("").required(),
3298
3374
  is_active: Joi.boolean().required(),
3375
+ is_opted: Joi.boolean().required(),
3299
3376
  geo_areas: Joi.array().items(Joi.string().allow("")).required(),
3300
3377
  product: ServiceabilityPlatformModel.ProductSchema().required(),
3301
3378
  stores: ServiceabilityPlatformModel.StoresSchema().required(),
@@ -3304,6 +3381,8 @@ class ServiceabilityPlatformModel {
3304
3381
  created_on: Joi.string().allow("").required(),
3305
3382
  modified_by: Joi.string().allow("").required(),
3306
3383
  modified_on: Joi.string().allow("").required(),
3384
+ stage: Joi.string().allow(""),
3385
+ summary: ServiceabilityPlatformModel.Summary(),
3307
3386
  });
3308
3387
  }
3309
3388
 
@@ -3387,8 +3466,9 @@ class ServiceabilityPlatformModel {
3387
3466
  name: Joi.string().allow("").required(),
3388
3467
  slug: Joi.string().allow("").required(),
3389
3468
  is_active: Joi.boolean().required(),
3390
- product: ServiceabilityPlatformModel.ProductSchema().required(),
3391
- stores: ServiceabilityPlatformModel.StoresSchema().required(),
3469
+ is_opted: Joi.boolean(),
3470
+ product: ServiceabilityPlatformModel.ProductSchema(),
3471
+ stores: ServiceabilityPlatformModel.StoresSchema(),
3392
3472
  created_by: Joi.string().allow(""),
3393
3473
  created_on: Joi.string().allow(""),
3394
3474
  modified_by: Joi.string().allow(""),
@@ -3408,14 +3488,16 @@ class ServiceabilityPlatformModel {
3408
3488
  name: Joi.string().allow("").required(),
3409
3489
  slug: Joi.string().allow("").required(),
3410
3490
  is_active: Joi.boolean().required(),
3411
- product: ServiceabilityPlatformModel.ProductDetailsSchema().required(),
3412
- stores: ServiceabilityPlatformModel.StoresDetailsSchema().required(),
3491
+ is_opted: Joi.boolean(),
3492
+ product: ServiceabilityPlatformModel.ProductDetailsSchema(),
3493
+ stores: ServiceabilityPlatformModel.StoresDetailsSchema(),
3413
3494
  stage: Joi.string().allow(""),
3414
3495
  overlapping_file_url: Joi.string().allow("").allow(null),
3415
3496
  geo_areas: Joi.array()
3416
3497
  .items(ServiceabilityPlatformModel.GeoAreaDetailsSchema())
3417
3498
  .required(),
3418
3499
  type: Joi.string().allow("").required(),
3500
+ access_level: Joi.string().allow(""),
3419
3501
  overlapping_zone_names: Joi.array().items(Joi.string().allow("")),
3420
3502
  });
3421
3503
  }
@@ -3434,12 +3516,13 @@ class ServiceabilityPlatformModel {
3434
3516
  is_active: Joi.boolean().required(),
3435
3517
  slug: Joi.string().allow("").required(),
3436
3518
  type: Joi.string().allow("").required(),
3519
+ access_level: Joi.string().allow("").required(),
3437
3520
  name: Joi.string().allow("").required(),
3438
3521
  company_id: Joi.number().required(),
3439
3522
  application_id: Joi.string().allow("").required(),
3440
3523
  geo_areas: Joi.array().items(Joi.string().allow("")).required(),
3441
- stores: ServiceabilityPlatformModel.ZoneStores().required(),
3442
- product: ServiceabilityPlatformModel.ZoneProduct().required(),
3524
+ stores: ServiceabilityPlatformModel.ZoneStores(),
3525
+ product: ServiceabilityPlatformModel.ZoneProduct(),
3443
3526
  });
3444
3527
  }
3445
3528
 
@@ -3504,17 +3587,21 @@ class ServiceabilityPlatformModel {
3504
3587
  slug: Joi.string().allow("").required(),
3505
3588
  company_id: Joi.number().required(),
3506
3589
  type: Joi.string().allow("").required(),
3590
+ access_level: Joi.string().allow("").required(),
3507
3591
  application_id: Joi.string().allow("").required(),
3508
3592
  is_active: Joi.boolean().required(),
3593
+ is_public_opted: Joi.boolean(),
3594
+ is_opted: Joi.boolean(),
3509
3595
  geo_areas: Joi.array().items(Joi.string().allow("")).required(),
3510
- stores: ServiceabilityPlatformModel.ListViewProductV2().required(),
3511
- product: ServiceabilityPlatformModel.ListViewProductV2().required(),
3596
+ stores: ServiceabilityPlatformModel.ListViewProductV2(),
3597
+ product: ServiceabilityPlatformModel.ListViewProductV2(),
3512
3598
  created_by: Joi.string().allow("").required(),
3513
3599
  created_on: Joi.string().allow("").required(),
3514
3600
  modified_by: Joi.string().allow("").required(),
3515
3601
  modified_on: Joi.string().allow("").required(),
3516
- stage: Joi.string().allow("").required(),
3602
+ stage: Joi.string().allow(""),
3517
3603
  zone_id: Joi.string().allow("").required(),
3604
+ summary: ServiceabilityPlatformModel.SummaryRegions(),
3518
3605
  });
3519
3606
  }
3520
3607
 
@@ -3864,6 +3951,13 @@ class ServiceabilityPlatformModel {
3864
3951
  });
3865
3952
  }
3866
3953
 
3954
+ /** @returns {ServiceabilityZoneNonMarketplaceErrorResult} */
3955
+ static ServiceabilityZoneNonMarketplaceErrorResult() {
3956
+ return Joi.object({
3957
+ error: Joi.string().allow("").required(),
3958
+ });
3959
+ }
3960
+
3867
3961
  /** @returns {ReAssignStoreResponse} */
3868
3962
  static ReAssignStoreResponse() {
3869
3963
  return Joi.object({
@@ -75,6 +75,12 @@ export = ServiceabilityPlatformValidator;
75
75
  * @property {string} [name] - Search for localities. Either provide a full name
76
76
  * or a search term.
77
77
  */
78
+ /**
79
+ * @typedef GetLocalitiesByPrefixParam
80
+ * @property {number} [pageNo] - Starting index of the items.
81
+ * @property {number} [pageSize] - Number of items per page.
82
+ * @property {string} [q] - Localities starting with the specified prefix.
83
+ */
78
84
  /**
79
85
  * @typedef GetLocalityParam
80
86
  * @property {string} localityType - A `locality_type` contains value
@@ -173,6 +179,8 @@ declare class ServiceabilityPlatformValidator {
173
179
  static getListPackageMaterialRuleDetails(): GetListPackageMaterialRuleDetailsParam;
174
180
  /** @returns {GetLocalitiesParam} */
175
181
  static getLocalities(): GetLocalitiesParam;
182
+ /** @returns {GetLocalitiesByPrefixParam} */
183
+ static getLocalitiesByPrefix(): GetLocalitiesByPrefixParam;
176
184
  /** @returns {GetLocalityParam} */
177
185
  static getLocality(): GetLocalityParam;
178
186
  /** @returns {GetOptimalLocationsParam} */
@@ -199,7 +207,7 @@ declare class ServiceabilityPlatformValidator {
199
207
  static validateAddress(): ValidateAddressParam;
200
208
  }
201
209
  declare namespace ServiceabilityPlatformValidator {
202
- export { CreateCourierPartnerAccountParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, GetCompanyConfigurationParam, GetCompanySelfShipParam, GetCountriesParam, GetCountryParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetInstalledCourierPartnerExtensionsParam, GetListPackageMaterialRuleDetailsParam, GetLocalitiesParam, GetLocalityParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialRuleDetailsParam, GetPackageMaterialsParam, UpdateCompanyConfigurationParam, UpdateCompanySelfShipParam, UpdateCourierPartnerAccountParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, ValidateAddressParam };
210
+ export { CreateCourierPartnerAccountParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, GetCompanyConfigurationParam, GetCompanySelfShipParam, GetCountriesParam, GetCountryParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetInstalledCourierPartnerExtensionsParam, GetListPackageMaterialRuleDetailsParam, GetLocalitiesParam, GetLocalitiesByPrefixParam, GetLocalityParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialRuleDetailsParam, GetPackageMaterialsParam, UpdateCompanyConfigurationParam, UpdateCompanySelfShipParam, UpdateCourierPartnerAccountParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, ValidateAddressParam };
203
211
  }
204
212
  type CreateCourierPartnerAccountParam = {
205
213
  body: ServiceabilityPlatformModel.CourierAccount;
@@ -358,6 +366,20 @@ type GetLocalitiesParam = {
358
366
  */
359
367
  name?: string;
360
368
  };
369
+ type GetLocalitiesByPrefixParam = {
370
+ /**
371
+ * - Starting index of the items.
372
+ */
373
+ pageNo?: number;
374
+ /**
375
+ * - Number of items per page.
376
+ */
377
+ pageSize?: number;
378
+ /**
379
+ * - Localities starting with the specified prefix.
380
+ */
381
+ q?: string;
382
+ };
361
383
  type GetLocalityParam = {
362
384
  /**
363
385
  * - A `locality_type` contains value
@@ -90,6 +90,13 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
90
90
  * or a search term.
91
91
  */
92
92
 
93
+ /**
94
+ * @typedef GetLocalitiesByPrefixParam
95
+ * @property {number} [pageNo] - Starting index of the items.
96
+ * @property {number} [pageSize] - Number of items per page.
97
+ * @property {string} [q] - Localities starting with the specified prefix.
98
+ */
99
+
93
100
  /**
94
101
  * @typedef GetLocalityParam
95
102
  * @property {string} localityType - A `locality_type` contains value
@@ -280,6 +287,15 @@ class ServiceabilityPlatformValidator {
280
287
  }).required();
281
288
  }
282
289
 
290
+ /** @returns {GetLocalitiesByPrefixParam} */
291
+ static getLocalitiesByPrefix() {
292
+ return Joi.object({
293
+ pageNo: Joi.number(),
294
+ pageSize: Joi.number(),
295
+ q: Joi.string().allow(""),
296
+ }).required();
297
+ }
298
+
283
299
  /** @returns {GetLocalityParam} */
284
300
  static getLocality() {
285
301
  return Joi.object({
@@ -88,6 +88,7 @@ export = SharePlatformModel;
88
88
  * @property {string} type - The type of the page, such as 'PageType'.
89
89
  * @property {number} [size] - The number of items per page.
90
90
  * @property {number} [total] - Total number of items.
91
+ * @property {number} [page] - Current page number
91
92
  */
92
93
  /**
93
94
  * @typedef ShortLinkList
@@ -245,6 +246,10 @@ type Page = {
245
246
  * - Total number of items.
246
247
  */
247
248
  total?: number;
249
+ /**
250
+ * - Current page number
251
+ */
252
+ page?: number;
248
253
  };
249
254
  /** @returns {ShortLinkList} */
250
255
  declare function ShortLinkList(): ShortLinkList;
@@ -99,6 +99,7 @@ const Joi = require("joi");
99
99
  * @property {string} type - The type of the page, such as 'PageType'.
100
100
  * @property {number} [size] - The number of items per page.
101
101
  * @property {number} [total] - Total number of items.
102
+ * @property {number} [page] - Current page number
102
103
  */
103
104
 
104
105
  /**
@@ -233,6 +234,7 @@ class SharePlatformModel {
233
234
  type: Joi.string().allow("").required(),
234
235
  size: Joi.number(),
235
236
  total: Joi.number(),
237
+ page: Joi.number(),
236
238
  });
237
239
  }
238
240
 
@@ -3,18 +3,6 @@ declare class Theme {
3
3
  constructor(config: any, applicationId: any);
4
4
  config: any;
5
5
  applicationId: any;
6
- /**
7
- * @param {ThemePlatformApplicationValidator.AddThemeToApplicationParam} arg
8
- * - Arg object
9
- *
10
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
11
- * @param {import("../PlatformAPIClient").Options} - Options
12
- * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
13
- * @name addThemeToApplication
14
- * @summary: Create theme in sales channel
15
- * @description: Include a theme in an application drafts from theme collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/addThemeToApplication/).
16
- */
17
- addThemeToApplication({ body, requestHeaders }?: ThemePlatformApplicationValidator.AddThemeToApplicationParam, { responseHeaders }?: object): Promise<ThemePlatformModel.ThemesSchema>;
18
6
  /**
19
7
  * @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
20
8
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -35,6 +23,16 @@ declare class Theme {
35
23
  * @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
36
24
  */
37
25
  createPage({ themeId, body, requestHeaders }?: ThemePlatformApplicationValidator.CreatePageParam, { responseHeaders }?: object): Promise<ThemePlatformModel.AvailablePageSchema>;
26
+ /**
27
+ * @param {ThemePlatformApplicationValidator.CreateThemeParam} arg - Arg object
28
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
29
+ * @param {import("../PlatformAPIClient").Options} - Options
30
+ * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
31
+ * @name createTheme
32
+ * @summary: Get Create theme
33
+ * @description: Creating a new theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createTheme/).
34
+ */
35
+ createTheme({ body, requestHeaders }?: ThemePlatformApplicationValidator.CreateThemeParam, { responseHeaders }?: object): Promise<ThemePlatformModel.ThemesSchema>;
38
36
  /**
39
37
  * @param {ThemePlatformApplicationValidator.DeletePageParam} arg - Arg object
40
38
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`