@gofynd/fdk-client-javascript 3.4.4 → 3.6.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationClient.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +50 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +210 -0
- package/sdk/partner/OAuthClient.d.ts +3 -3
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerClient.d.ts +2 -2
- package/sdk/platform/Cart/CartPlatformModel.d.ts +11 -0
- package/sdk/platform/Cart/CartPlatformModel.js +5 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +125 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1075 -95
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1017 -46
- package/sdk/platform/Catalog/CatalogPlatformModel.js +681 -5
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +200 -5
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +174 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +17 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +15 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +9 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +4 -4
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformModel.d.ts +49 -1
- package/sdk/platform/Order/OrderPlatformModel.js +28 -0
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +13 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +89 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +25 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +17 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +50 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +36 -4
- package/sdk/public/PublicAPIClient.d.ts +1 -1
|
@@ -15,6 +15,10 @@ export = ServiceabilityPlatformModel;
|
|
|
15
15
|
* @property {CourierPartnerSchemes} [cp_schemes]
|
|
16
16
|
* @property {string} [id] - Unique identifier for the fulfillment option.
|
|
17
17
|
*/
|
|
18
|
+
/**
|
|
19
|
+
* @typedef FulfillmentOptionsList
|
|
20
|
+
* @property {FulfillmentOptionItem[]} [items] - List of fulfillment option items.
|
|
21
|
+
*/
|
|
18
22
|
/**
|
|
19
23
|
* @typedef FulfillmentOptionProducts
|
|
20
24
|
* @property {FulfillmentOptionProduct} [items]
|
|
@@ -726,7 +730,6 @@ export = ServiceabilityPlatformModel;
|
|
|
726
730
|
* @property {number} [company_id] - The unique identifier for the company.
|
|
727
731
|
* @property {string} name - The name of the package material.
|
|
728
732
|
* @property {string} [id] - Unique identifier for the package material.
|
|
729
|
-
* @property {number} [item_id] - Unique identifier for the item.
|
|
730
733
|
* @property {number} width - The width of the package material.
|
|
731
734
|
* @property {number} height - The height of the package material.
|
|
732
735
|
* @property {number} length - The length of the package material.
|
|
@@ -801,7 +804,6 @@ export = ServiceabilityPlatformModel;
|
|
|
801
804
|
* @property {boolean} [is_active] - Indicates if the package item is active.
|
|
802
805
|
* @property {string} [size] - The size of the package item.
|
|
803
806
|
* @property {number} [company_id] - The company ID associated with the package item.
|
|
804
|
-
* @property {number} [item_id] - The unique identifier for the package item.
|
|
805
807
|
* @property {number} [max_weight] - The maximum weight(grams) of the package item.
|
|
806
808
|
* @property {Object[]} [media] - Additional media associated with the package item.
|
|
807
809
|
* @property {number} [package_vol_weight] - The volumetric weight(grams) of the
|
|
@@ -1192,6 +1194,15 @@ export = ServiceabilityPlatformModel;
|
|
|
1192
1194
|
* @property {string} [scheme_id] - Unique identifier for the courier partner scheme.
|
|
1193
1195
|
* @property {string} [cp_ext_id] - Unique identifier for the courier partner.
|
|
1194
1196
|
*/
|
|
1197
|
+
/**
|
|
1198
|
+
* @typedef FulfillmentOptionItem
|
|
1199
|
+
* @property {string} [slug] - Unique identifier for the delivery type.
|
|
1200
|
+
* @property {string} [description] - Description of the delivery service.
|
|
1201
|
+
* @property {boolean} [is_default] - Indicates if this is the default delivery option.
|
|
1202
|
+
* @property {string} [id] - Unique ID of the delivery service.
|
|
1203
|
+
* @property {string} [type] - Type of fulfillment option.
|
|
1204
|
+
* @property {string} [name] - Name of the delivery service.
|
|
1205
|
+
*/
|
|
1195
1206
|
/**
|
|
1196
1207
|
* @typedef FulfillmentOptionProduct
|
|
1197
1208
|
* @property {number} [uid] - Unique identifier for the product.
|
|
@@ -2281,7 +2292,7 @@ export = ServiceabilityPlatformModel;
|
|
|
2281
2292
|
declare class ServiceabilityPlatformModel {
|
|
2282
2293
|
}
|
|
2283
2294
|
declare namespace ServiceabilityPlatformModel {
|
|
2284
|
-
export { FulfillmentOption, FulfillmentOptionProducts, FulfillmentOptionStores, FulfillmentOptionBulkValidate, FulfillmentOptionBulkValidateData, FulfillmentOptionBulk, FulfillmentOptionBulkData, OperationResponseSchema, SelfshipSchema, ServiceabilityErrorResult, UpdateZoneData, ZoneUpdateSuccessResult, ServiceabilityDeleteErrorResult, ZoneDeleteSuccessResult, ListViewSchema, GetZoneByIdSchema, CommonErrorResult, CreateZoneDataSchema, ZoneBulkExport, GetZoneBulkExport, CreateBulkZoneData, ZoneSchema, CreateBulkZoneResult, BulkCreateZoneExport, PincodeMopData, PincodeMOPResult, PincodeMopUpdateAuditError, PincodeMopBulkError, CommonError, PincodeMopBulkData, PincodeBulkViewResult, PincodeCodStatusListingDetails, PincodeCodStatusListingResult, PincodeMopUpdateAuditHistoryDetails, PincodeMopUpdateAuditHistoryResultData, BulkGeoAreaDetails, BulkGeoAreaResult, BulkGeoAreaGetResult, GeoAreaBulkCreationResult, GeoAreaBulkExportResult, GeoAreaRequestBody, GeoAreaErrorResult, GeoAreaResponseBody, GeoAreaPutResponseBody, GeoAreaGetResponseBody, GeoAreaDetails, Error, CourierAccountDetailsBody, CourierPartnerRuleResult, CourierPartnerRule, BulkFailureResult, FailureResult, CourierPartnerRulesListResult, ShipmentCourierPartnerDetails, ShipmentCourierPartnerResult, CompanyConfig, ApplicationConfigPatch, ApplicationConfigPatchResult, BulkRegionJobDetails, BulkRegionResultItemData, BulkRegionResult, StoreRuleConfigData, StoreRuleDataSchema, GetStoreRulesApiResult, CreateStoreRuleDetailsSchema, StoreRuleResultSchema, StoreRuleUpdateResultSchema, CourierAccountResult, CompanyCourierPartnerAccountListResult, PackageMaterial, PackageMaterialNotFound, PackageMaterialsErrorResult, PackageMaterialResult, PackageRule, PackageRuleResult, PackagesListResult, PackageItem, RulePriorityDetails, RulePriorityResult, OptimalLocationsResult, OptimlLocationsRequestSchema, ValidationError, StandardError, CourierPartnerSchemeDetailsModel, CourierPartnerSchemeModelSchema, CourierPartnerSchemeUpdateDetailsSchema, CourierPartnerSchemeList, BulkRegionServiceabilityTatDetails, BulkRegionServiceabilityTatResultItemData, BulkRegionServiceabilityTatResult, GetCountries, GetLocalities, GetCountry, BulkImportLocalitiesDetails, BulkImportLocalitiesResult, BulkErrorResult, LocalitiesBulkExport, LocalitiesBulkExportFetch, LocalitiesErrorResult, GetLocality, ValidateAddress, ErrorResult, ApplicationConfigPut, ApplicationConfigPutDetail, ApplicationConfigGetResult, InstallCourierPartnerResponseSchema, GetLocalitiesBulkHistory, CompanyConfigurationSchema, BusinessUnit, FulfillmentStores, FulfillmentProducts, CourierPartnerSchemes, CourierPartnerScheme, FulfillmentOptionProduct, NetQuantity, Trader, ProductPublish, TaxIdentifier, ReturnConfig, CustomOrder, Size, Identifier, Page, FulfillmentOptionStore, Address, FulfillmentOptionValidate, ProductSchema, StoresSchema, CreatedBy, ModifiedBy, ListViewItems, GeoArea, ListViewProduct, Summary, RegionSchema, ZoneStores, ZoneProduct, ZoneBulkItem, PincodeMopUpdateResult, PincodeCodStatusItem, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResult, Area, GeoAreaResponseDetail, GeoAreaItemResult, AreaExpanded, Country, Region, Page2, CourierPartnerRuleConditions, LocationRule, LocationRuleValues, StringComparisonOperations, IntComparisonOperations, ArithmeticOperations, CourierPartnerRuleCPListResult, CourierPartnerSchemeDefaultTat, CourierPartnerSchemeTat, CourierPartnerSchemeFeatures, CourierPartnerList, ShipmentsCourierPartnersServiceability, CPShipments, ShipmentDimension, ShipmentsArticles, ArticleWeight, ArticleAttributes, ArticleDimension, ArticleSet, ArticleSizeDistribution, SetSize, ArticleDeliverySlots, ArticleReturnReason, CourierPartners, CourierPartnerPromise, CourierPartnerAttributes, CourierPartnerTAT, ShipmentCourierPartners, CourierPartnerConfig, BuyboxRuleConfig, PromiseConfig, StorePromiseAttributeConfig, DeliveryServiceAttributeConfig, BufferField, StorePrioritySchema, StoreRuleConditionSchema, CustomerRadiusSchema, DateOperations, CourierPartnerSchemeModel, PackageMaterialRule, PackageMaterialRuleQuantity, Channel, PackageRuleCategory, PackageRuleProduct, PackageRuleProductTag, PackageRuleDepartmentId, PackageRuleProductAttributes, PackageChannel, StoreFilter, PackageRuleSchema, Quantity, PackagePageInfo, OptimalLocationAssignedStoresResult, OptimalLocationArticlesResult, ArticleAssignment, LocationDetailsServiceability, ServiceabilityLocation, OptimalLocationsArticles, GetCountriesItems, HierarchyItems, CurrencyObject, Localities, PincodeLatLongData, LocalityParent, CountryMetaFields, ApplicationFields, GetCountryFieldsAddress, FieldValidation, FieldValidationRegex, LengthValidation, GetCountryFieldsAddressValues, GetOneOrAll, GetOneOrAllParams, GetOneOrAllPath, GetOneOrAllQuery, GetCountryFieldsAddressTemplateApplication, CountryHierarchy, GetCountryFields, GetCountryFieldsAddressTemplate, LocalityParents, ZoneConfig, PromiseType, InstallCourierPartnerItemsSchema, HistoryObject };
|
|
2295
|
+
export { FulfillmentOption, FulfillmentOptionsList, FulfillmentOptionProducts, FulfillmentOptionStores, FulfillmentOptionBulkValidate, FulfillmentOptionBulkValidateData, FulfillmentOptionBulk, FulfillmentOptionBulkData, OperationResponseSchema, SelfshipSchema, ServiceabilityErrorResult, UpdateZoneData, ZoneUpdateSuccessResult, ServiceabilityDeleteErrorResult, ZoneDeleteSuccessResult, ListViewSchema, GetZoneByIdSchema, CommonErrorResult, CreateZoneDataSchema, ZoneBulkExport, GetZoneBulkExport, CreateBulkZoneData, ZoneSchema, CreateBulkZoneResult, BulkCreateZoneExport, PincodeMopData, PincodeMOPResult, PincodeMopUpdateAuditError, PincodeMopBulkError, CommonError, PincodeMopBulkData, PincodeBulkViewResult, PincodeCodStatusListingDetails, PincodeCodStatusListingResult, PincodeMopUpdateAuditHistoryDetails, PincodeMopUpdateAuditHistoryResultData, BulkGeoAreaDetails, BulkGeoAreaResult, BulkGeoAreaGetResult, GeoAreaBulkCreationResult, GeoAreaBulkExportResult, GeoAreaRequestBody, GeoAreaErrorResult, GeoAreaResponseBody, GeoAreaPutResponseBody, GeoAreaGetResponseBody, GeoAreaDetails, Error, CourierAccountDetailsBody, CourierPartnerRuleResult, CourierPartnerRule, BulkFailureResult, FailureResult, CourierPartnerRulesListResult, ShipmentCourierPartnerDetails, ShipmentCourierPartnerResult, CompanyConfig, ApplicationConfigPatch, ApplicationConfigPatchResult, BulkRegionJobDetails, BulkRegionResultItemData, BulkRegionResult, StoreRuleConfigData, StoreRuleDataSchema, GetStoreRulesApiResult, CreateStoreRuleDetailsSchema, StoreRuleResultSchema, StoreRuleUpdateResultSchema, CourierAccountResult, CompanyCourierPartnerAccountListResult, PackageMaterial, PackageMaterialNotFound, PackageMaterialsErrorResult, PackageMaterialResult, PackageRule, PackageRuleResult, PackagesListResult, PackageItem, RulePriorityDetails, RulePriorityResult, OptimalLocationsResult, OptimlLocationsRequestSchema, ValidationError, StandardError, CourierPartnerSchemeDetailsModel, CourierPartnerSchemeModelSchema, CourierPartnerSchemeUpdateDetailsSchema, CourierPartnerSchemeList, BulkRegionServiceabilityTatDetails, BulkRegionServiceabilityTatResultItemData, BulkRegionServiceabilityTatResult, GetCountries, GetLocalities, GetCountry, BulkImportLocalitiesDetails, BulkImportLocalitiesResult, BulkErrorResult, LocalitiesBulkExport, LocalitiesBulkExportFetch, LocalitiesErrorResult, GetLocality, ValidateAddress, ErrorResult, ApplicationConfigPut, ApplicationConfigPutDetail, ApplicationConfigGetResult, InstallCourierPartnerResponseSchema, GetLocalitiesBulkHistory, CompanyConfigurationSchema, BusinessUnit, FulfillmentStores, FulfillmentProducts, CourierPartnerSchemes, CourierPartnerScheme, FulfillmentOptionItem, FulfillmentOptionProduct, NetQuantity, Trader, ProductPublish, TaxIdentifier, ReturnConfig, CustomOrder, Size, Identifier, Page, FulfillmentOptionStore, Address, FulfillmentOptionValidate, ProductSchema, StoresSchema, CreatedBy, ModifiedBy, ListViewItems, GeoArea, ListViewProduct, Summary, RegionSchema, ZoneStores, ZoneProduct, ZoneBulkItem, PincodeMopUpdateResult, PincodeCodStatusItem, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResult, Area, GeoAreaResponseDetail, GeoAreaItemResult, AreaExpanded, Country, Region, Page2, CourierPartnerRuleConditions, LocationRule, LocationRuleValues, StringComparisonOperations, IntComparisonOperations, ArithmeticOperations, CourierPartnerRuleCPListResult, CourierPartnerSchemeDefaultTat, CourierPartnerSchemeTat, CourierPartnerSchemeFeatures, CourierPartnerList, ShipmentsCourierPartnersServiceability, CPShipments, ShipmentDimension, ShipmentsArticles, ArticleWeight, ArticleAttributes, ArticleDimension, ArticleSet, ArticleSizeDistribution, SetSize, ArticleDeliverySlots, ArticleReturnReason, CourierPartners, CourierPartnerPromise, CourierPartnerAttributes, CourierPartnerTAT, ShipmentCourierPartners, CourierPartnerConfig, BuyboxRuleConfig, PromiseConfig, StorePromiseAttributeConfig, DeliveryServiceAttributeConfig, BufferField, StorePrioritySchema, StoreRuleConditionSchema, CustomerRadiusSchema, DateOperations, CourierPartnerSchemeModel, PackageMaterialRule, PackageMaterialRuleQuantity, Channel, PackageRuleCategory, PackageRuleProduct, PackageRuleProductTag, PackageRuleDepartmentId, PackageRuleProductAttributes, PackageChannel, StoreFilter, PackageRuleSchema, Quantity, PackagePageInfo, OptimalLocationAssignedStoresResult, OptimalLocationArticlesResult, ArticleAssignment, LocationDetailsServiceability, ServiceabilityLocation, OptimalLocationsArticles, GetCountriesItems, HierarchyItems, CurrencyObject, Localities, PincodeLatLongData, LocalityParent, CountryMetaFields, ApplicationFields, GetCountryFieldsAddress, FieldValidation, FieldValidationRegex, LengthValidation, GetCountryFieldsAddressValues, GetOneOrAll, GetOneOrAllParams, GetOneOrAllPath, GetOneOrAllQuery, GetCountryFieldsAddressTemplateApplication, CountryHierarchy, GetCountryFields, GetCountryFieldsAddressTemplate, LocalityParents, ZoneConfig, PromiseType, InstallCourierPartnerItemsSchema, HistoryObject };
|
|
2285
2296
|
}
|
|
2286
2297
|
/** @returns {FulfillmentOption} */
|
|
2287
2298
|
declare function FulfillmentOption(): FulfillmentOption;
|
|
@@ -2327,6 +2338,14 @@ type FulfillmentOption = {
|
|
|
2327
2338
|
*/
|
|
2328
2339
|
id?: string;
|
|
2329
2340
|
};
|
|
2341
|
+
/** @returns {FulfillmentOptionsList} */
|
|
2342
|
+
declare function FulfillmentOptionsList(): FulfillmentOptionsList;
|
|
2343
|
+
type FulfillmentOptionsList = {
|
|
2344
|
+
/**
|
|
2345
|
+
* - List of fulfillment option items.
|
|
2346
|
+
*/
|
|
2347
|
+
items?: FulfillmentOptionItem[];
|
|
2348
|
+
};
|
|
2330
2349
|
/** @returns {FulfillmentOptionProducts} */
|
|
2331
2350
|
declare function FulfillmentOptionProducts(): FulfillmentOptionProducts;
|
|
2332
2351
|
type FulfillmentOptionProducts = {
|
|
@@ -4130,10 +4149,6 @@ type PackageMaterialResult = {
|
|
|
4130
4149
|
* - Unique identifier for the package material.
|
|
4131
4150
|
*/
|
|
4132
4151
|
id?: string;
|
|
4133
|
-
/**
|
|
4134
|
-
* - Unique identifier for the item.
|
|
4135
|
-
*/
|
|
4136
|
-
item_id?: number;
|
|
4137
4152
|
/**
|
|
4138
4153
|
* - The width of the package material.
|
|
4139
4154
|
*/
|
|
@@ -4332,10 +4347,6 @@ type PackageItem = {
|
|
|
4332
4347
|
* - The company ID associated with the package item.
|
|
4333
4348
|
*/
|
|
4334
4349
|
company_id?: number;
|
|
4335
|
-
/**
|
|
4336
|
-
* - The unique identifier for the package item.
|
|
4337
|
-
*/
|
|
4338
|
-
item_id?: number;
|
|
4339
4350
|
/**
|
|
4340
4351
|
* - The maximum weight(grams) of the package item.
|
|
4341
4352
|
*/
|
|
@@ -5230,6 +5241,34 @@ type CourierPartnerScheme = {
|
|
|
5230
5241
|
*/
|
|
5231
5242
|
cp_ext_id?: string;
|
|
5232
5243
|
};
|
|
5244
|
+
/** @returns {FulfillmentOptionItem} */
|
|
5245
|
+
declare function FulfillmentOptionItem(): FulfillmentOptionItem;
|
|
5246
|
+
type FulfillmentOptionItem = {
|
|
5247
|
+
/**
|
|
5248
|
+
* - Unique identifier for the delivery type.
|
|
5249
|
+
*/
|
|
5250
|
+
slug?: string;
|
|
5251
|
+
/**
|
|
5252
|
+
* - Description of the delivery service.
|
|
5253
|
+
*/
|
|
5254
|
+
description?: string;
|
|
5255
|
+
/**
|
|
5256
|
+
* - Indicates if this is the default delivery option.
|
|
5257
|
+
*/
|
|
5258
|
+
is_default?: boolean;
|
|
5259
|
+
/**
|
|
5260
|
+
* - Unique ID of the delivery service.
|
|
5261
|
+
*/
|
|
5262
|
+
id?: string;
|
|
5263
|
+
/**
|
|
5264
|
+
* - Type of fulfillment option.
|
|
5265
|
+
*/
|
|
5266
|
+
type?: string;
|
|
5267
|
+
/**
|
|
5268
|
+
* - Name of the delivery service.
|
|
5269
|
+
*/
|
|
5270
|
+
name?: string;
|
|
5271
|
+
};
|
|
5233
5272
|
/** @returns {FulfillmentOptionProduct} */
|
|
5234
5273
|
declare function FulfillmentOptionProduct(): FulfillmentOptionProduct;
|
|
5235
5274
|
type FulfillmentOptionProduct = {
|
|
@@ -17,6 +17,11 @@ const Joi = require("joi");
|
|
|
17
17
|
* @property {string} [id] - Unique identifier for the fulfillment option.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef FulfillmentOptionsList
|
|
22
|
+
* @property {FulfillmentOptionItem[]} [items] - List of fulfillment option items.
|
|
23
|
+
*/
|
|
24
|
+
|
|
20
25
|
/**
|
|
21
26
|
* @typedef FulfillmentOptionProducts
|
|
22
27
|
* @property {FulfillmentOptionProduct} [items]
|
|
@@ -799,7 +804,6 @@ const Joi = require("joi");
|
|
|
799
804
|
* @property {number} [company_id] - The unique identifier for the company.
|
|
800
805
|
* @property {string} name - The name of the package material.
|
|
801
806
|
* @property {string} [id] - Unique identifier for the package material.
|
|
802
|
-
* @property {number} [item_id] - Unique identifier for the item.
|
|
803
807
|
* @property {number} width - The width of the package material.
|
|
804
808
|
* @property {number} height - The height of the package material.
|
|
805
809
|
* @property {number} length - The length of the package material.
|
|
@@ -878,7 +882,6 @@ const Joi = require("joi");
|
|
|
878
882
|
* @property {boolean} [is_active] - Indicates if the package item is active.
|
|
879
883
|
* @property {string} [size] - The size of the package item.
|
|
880
884
|
* @property {number} [company_id] - The company ID associated with the package item.
|
|
881
|
-
* @property {number} [item_id] - The unique identifier for the package item.
|
|
882
885
|
* @property {number} [max_weight] - The maximum weight(grams) of the package item.
|
|
883
886
|
* @property {Object[]} [media] - Additional media associated with the package item.
|
|
884
887
|
* @property {number} [package_vol_weight] - The volumetric weight(grams) of the
|
|
@@ -1306,6 +1309,16 @@ const Joi = require("joi");
|
|
|
1306
1309
|
* @property {string} [cp_ext_id] - Unique identifier for the courier partner.
|
|
1307
1310
|
*/
|
|
1308
1311
|
|
|
1312
|
+
/**
|
|
1313
|
+
* @typedef FulfillmentOptionItem
|
|
1314
|
+
* @property {string} [slug] - Unique identifier for the delivery type.
|
|
1315
|
+
* @property {string} [description] - Description of the delivery service.
|
|
1316
|
+
* @property {boolean} [is_default] - Indicates if this is the default delivery option.
|
|
1317
|
+
* @property {string} [id] - Unique ID of the delivery service.
|
|
1318
|
+
* @property {string} [type] - Type of fulfillment option.
|
|
1319
|
+
* @property {string} [name] - Name of the delivery service.
|
|
1320
|
+
*/
|
|
1321
|
+
|
|
1309
1322
|
/**
|
|
1310
1323
|
* @typedef FulfillmentOptionProduct
|
|
1311
1324
|
* @property {number} [uid] - Unique identifier for the product.
|
|
@@ -2535,6 +2548,15 @@ class ServiceabilityPlatformModel {
|
|
|
2535
2548
|
});
|
|
2536
2549
|
}
|
|
2537
2550
|
|
|
2551
|
+
/** @returns {FulfillmentOptionsList} */
|
|
2552
|
+
static FulfillmentOptionsList() {
|
|
2553
|
+
return Joi.object({
|
|
2554
|
+
items: Joi.array().items(
|
|
2555
|
+
ServiceabilityPlatformModel.FulfillmentOptionItem()
|
|
2556
|
+
),
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2538
2560
|
/** @returns {FulfillmentOptionProducts} */
|
|
2539
2561
|
static FulfillmentOptionProducts() {
|
|
2540
2562
|
return Joi.object({
|
|
@@ -3401,7 +3423,6 @@ class ServiceabilityPlatformModel {
|
|
|
3401
3423
|
company_id: Joi.number(),
|
|
3402
3424
|
name: Joi.string().allow("").required(),
|
|
3403
3425
|
id: Joi.string().allow(""),
|
|
3404
|
-
item_id: Joi.number(),
|
|
3405
3426
|
width: Joi.number().required(),
|
|
3406
3427
|
height: Joi.number().required(),
|
|
3407
3428
|
length: Joi.number().required(),
|
|
@@ -3481,7 +3502,6 @@ class ServiceabilityPlatformModel {
|
|
|
3481
3502
|
is_active: Joi.boolean(),
|
|
3482
3503
|
size: Joi.string().allow(""),
|
|
3483
3504
|
company_id: Joi.number(),
|
|
3484
|
-
item_id: Joi.number(),
|
|
3485
3505
|
max_weight: Joi.number(),
|
|
3486
3506
|
media: Joi.array().items(Joi.any()),
|
|
3487
3507
|
package_vol_weight: Joi.number(),
|
|
@@ -3910,6 +3930,18 @@ class ServiceabilityPlatformModel {
|
|
|
3910
3930
|
});
|
|
3911
3931
|
}
|
|
3912
3932
|
|
|
3933
|
+
/** @returns {FulfillmentOptionItem} */
|
|
3934
|
+
static FulfillmentOptionItem() {
|
|
3935
|
+
return Joi.object({
|
|
3936
|
+
slug: Joi.string().allow(""),
|
|
3937
|
+
description: Joi.string().allow(""),
|
|
3938
|
+
is_default: Joi.boolean(),
|
|
3939
|
+
id: Joi.string().allow(""),
|
|
3940
|
+
type: Joi.string().allow(""),
|
|
3941
|
+
name: Joi.string().allow(""),
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3913
3945
|
/** @returns {FulfillmentOptionProduct} */
|
|
3914
3946
|
static FulfillmentOptionProduct() {
|
|
3915
3947
|
return Joi.object({
|
|
@@ -11,7 +11,7 @@ declare class PublicAPIClient {
|
|
|
11
11
|
* @param {object} query
|
|
12
12
|
* @param {object} body
|
|
13
13
|
*/
|
|
14
|
-
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: any, options: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: any, options: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
15
15
|
}
|
|
16
16
|
declare namespace PublicAPIClient {
|
|
17
17
|
export { Options };
|