@gofynd/fdk-client-javascript 3.23.0 → 3.24.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/Cart/CartApplicationClient.d.ts +12 -12
- package/sdk/application/Cart/CartApplicationClient.js +119 -33
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
- package/sdk/platform/Common/CommonPlatformClient.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
- package/sdk/platform/Order/OrderPlatformClient.js +179 -3
- package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
- package/sdk/platform/Order/OrderPlatformModel.js +105 -3
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +24 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +18 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
- package/sdk/platform/User/UserPlatformModel.js +16 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
|
@@ -511,6 +511,20 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
511
511
|
* @property {OrderPlatformModel.StoreReassign} body
|
|
512
512
|
*/
|
|
513
513
|
|
|
514
|
+
/**
|
|
515
|
+
* @typedef RequestCourierPartnerForShipmentParam
|
|
516
|
+
* @property {string} shipmentId - The unique identifier for the shipment. This
|
|
517
|
+
* ID is used to track and reference the shipment throughout its journey.
|
|
518
|
+
* @property {OrderPlatformModel.ShipmentCourierPartnerRequestSchema} body
|
|
519
|
+
*/
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @typedef SaveCourierPartnerPreferenceForShipmentParam
|
|
523
|
+
* @property {string} shipmentId - The unique identifier for the shipment. This
|
|
524
|
+
* ID is used to track and reference the shipment throughout its journey.
|
|
525
|
+
* @property {OrderPlatformModel.ShipmentCourierPartnerPreference} body
|
|
526
|
+
*/
|
|
527
|
+
|
|
514
528
|
/**
|
|
515
529
|
* @typedef SendSmsNinjaParam
|
|
516
530
|
* @property {OrderPlatformModel.SendSmsPayload} body
|
|
@@ -1092,6 +1106,22 @@ class OrderPlatformValidator {
|
|
|
1092
1106
|
}).required();
|
|
1093
1107
|
}
|
|
1094
1108
|
|
|
1109
|
+
/** @returns {RequestCourierPartnerForShipmentParam} */
|
|
1110
|
+
static requestCourierPartnerForShipment() {
|
|
1111
|
+
return Joi.object({
|
|
1112
|
+
shipmentId: Joi.string().allow("").required(),
|
|
1113
|
+
body: OrderPlatformModel.ShipmentCourierPartnerRequestSchema().required(),
|
|
1114
|
+
}).required();
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/** @returns {SaveCourierPartnerPreferenceForShipmentParam} */
|
|
1118
|
+
static saveCourierPartnerPreferenceForShipment() {
|
|
1119
|
+
return Joi.object({
|
|
1120
|
+
shipmentId: Joi.string().allow("").required(),
|
|
1121
|
+
body: OrderPlatformModel.ShipmentCourierPartnerPreference().required(),
|
|
1122
|
+
}).required();
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1095
1125
|
/** @returns {SendSmsNinjaParam} */
|
|
1096
1126
|
static sendSmsNinja() {
|
|
1097
1127
|
return Joi.object({
|
|
@@ -52,6 +52,7 @@ export = ServiceabilityPlatformModel;
|
|
|
52
52
|
* @property {boolean} [is_default] - Whether this is the default fulfillment option.
|
|
53
53
|
* @property {string} [type] - Type of fulfillment option.
|
|
54
54
|
* @property {string} [status] - Status of the fulfillment option.
|
|
55
|
+
* @property {FulfillmentOptionDefaultFor} [default_for]
|
|
55
56
|
* @property {BusinessUnit[]} [business_unit] - Name of the ordering-channel or
|
|
56
57
|
* business, e.g. storefront, storeos.
|
|
57
58
|
* @property {FulfillmentStores} [fulfillment_stores]
|
|
@@ -1680,6 +1681,13 @@ export = ServiceabilityPlatformModel;
|
|
|
1680
1681
|
* @property {number} [non_qc_shipment_item_quantity] - Quantity of items not
|
|
1681
1682
|
* under quality control (nullable).
|
|
1682
1683
|
*/
|
|
1684
|
+
/**
|
|
1685
|
+
* @typedef FulfillmentOptionDefaultFor
|
|
1686
|
+
* @property {boolean} [storefront] - If set to true, this fulfillment option
|
|
1687
|
+
* will be default for storefront.
|
|
1688
|
+
* @property {boolean} [storeos] - If set to true, this fulfillment option will
|
|
1689
|
+
* be default for storeos.
|
|
1690
|
+
*/
|
|
1683
1691
|
/**
|
|
1684
1692
|
* @typedef BusinessUnit
|
|
1685
1693
|
* @property {string} [name] - Name of the business unit.
|
|
@@ -2879,7 +2887,7 @@ export = ServiceabilityPlatformModel;
|
|
|
2879
2887
|
declare class ServiceabilityPlatformModel {
|
|
2880
2888
|
}
|
|
2881
2889
|
declare namespace ServiceabilityPlatformModel {
|
|
2882
|
-
export { GenerateShipmentsAndCourierPartnerResult, CourierPartnerDetails, PlatformShipmentsRequestSchema, PlatformShipmentsResponseSchema, ShipmentsErrorResult, 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, StorePolygonServiceabilityRequestBody, StorePolygonServiceabilityResult, StorePolygonServiceabilityGetResult, ZoneProductsBulkPatchDetails, GetZoneProductsBulkPatchResult, CourierPartnerToServiceability, ServiceabilityLocation, CourierPartnerShipments, PromiseObject, PromiseData, PromiseMeta, CourierPartnerPromiseData, DeliveryTat, DeliveryTatSchema, CourierPartnerShipmentsMeta, ShipmentCourierPartnersResult, AreaCode, TAT, LocationDetailsServiceability, CourierPartnerShipmentsArticles, CourierPartnerArticlesPromise, CourierPartnerArticlesReturnReasons, CourierPartnerArticlesReturnReasonsMeta, ArticleWeight, ArticleAttributes, ArticleDimension, PlatformLocationArticles, PlatformLocationArticle, ParentItemIdentifiers, PlatformShipmentsToServiceability, PlatformShipmentsSchema, Packaging, Dimension, FulfillmentOptionItem, ShipmentsPromise, CustomerPromise, ShipmentPromiseMeta, SellerPromise, CourierPartnerPromise, CourierPartnerAttributes, CourierPartnerTAT, CustomerInitialPromise, ShipmentsArticle, ShipmentDimension, ShipmentsMeta, ShipmentsCourierPartner, BusinessUnit, FulfillmentStores, FulfillmentProducts, CourierPartnerSchemes, CourierPartnerScheme, FulfillmentOptionProduct, NetQuantity, Trader, ProductPublish, TaxIdentifier, ReturnConfig, CustomOrder, Size, Identifier, Page, FulfillmentOptionStore, Address, LatLong, StoreDistance, StoreTimingDetails, StoreTiming, Time, 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, DateOperations, ArithmeticOperations, CourierPartnerRuleCPListResult, CourierPartnerSchemeDefaultTat, CourierPartnerSchemeTat, CourierPartnerSchemeFeatures, CourierPartnerList, ShipmentsCourierPartnersServiceability, CPShipments, ShipmentsArticles, ArticleSet, ArticleSizeDistribution, SetSize, ArticleDeliverySlots, ArticleReturnReason, CourierPartners, ShipmentCourierPartners, CourierPartnerConfig, BuyboxRuleConfig, PromiseConfig, StorePromiseAttributeConfig, DeliveryServiceAttributeConfig, BufferField, StorePrioritySchema, StoreRuleConditionSchema, CustomerRadiusSchema, CourierPartnerSchemeModel, PackageMaterialRule, PackageMaterialRuleQuantity, Channel, PackageRuleCategory, PackageRuleProduct, PackageRuleProductTag, PackageRuleDepartmentId, PackageRuleProductAttributes, PackageChannel, StoreFilter, PackageRuleSchema, Quantity, PackagePageInfo, OptimalLocationAssignedStoresResult, OptimalLocationArticlesResult, ArticleAssignment, 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, StorePolygonServiceabilityRequestData, StorePolygonServiceabilityStore, StorePolygonServiceabilityStoreCoordinates, StorePolygonServiceabilityConfig, StorePolygonServiceabilityPolygon, StorePolygonServiceabilityFeature, StorePolygonServiceabilityGeometry, StorePolygonServiceabilityAttributes, StorePolygonServiceabilityReferenceCoordinates, StorePolygonServiceabilityStoreSummary, StorePolygonServiceabilityError, StorePolygonServiceabilityPagination };
|
|
2890
|
+
export { GenerateShipmentsAndCourierPartnerResult, CourierPartnerDetails, PlatformShipmentsRequestSchema, PlatformShipmentsResponseSchema, ShipmentsErrorResult, 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, StorePolygonServiceabilityRequestBody, StorePolygonServiceabilityResult, StorePolygonServiceabilityGetResult, ZoneProductsBulkPatchDetails, GetZoneProductsBulkPatchResult, CourierPartnerToServiceability, ServiceabilityLocation, CourierPartnerShipments, PromiseObject, PromiseData, PromiseMeta, CourierPartnerPromiseData, DeliveryTat, DeliveryTatSchema, CourierPartnerShipmentsMeta, ShipmentCourierPartnersResult, AreaCode, TAT, LocationDetailsServiceability, CourierPartnerShipmentsArticles, CourierPartnerArticlesPromise, CourierPartnerArticlesReturnReasons, CourierPartnerArticlesReturnReasonsMeta, ArticleWeight, ArticleAttributes, ArticleDimension, PlatformLocationArticles, PlatformLocationArticle, ParentItemIdentifiers, PlatformShipmentsToServiceability, PlatformShipmentsSchema, Packaging, Dimension, FulfillmentOptionItem, ShipmentsPromise, CustomerPromise, ShipmentPromiseMeta, SellerPromise, CourierPartnerPromise, CourierPartnerAttributes, CourierPartnerTAT, CustomerInitialPromise, ShipmentsArticle, ShipmentDimension, ShipmentsMeta, ShipmentsCourierPartner, FulfillmentOptionDefaultFor, BusinessUnit, FulfillmentStores, FulfillmentProducts, CourierPartnerSchemes, CourierPartnerScheme, FulfillmentOptionProduct, NetQuantity, Trader, ProductPublish, TaxIdentifier, ReturnConfig, CustomOrder, Size, Identifier, Page, FulfillmentOptionStore, Address, LatLong, StoreDistance, StoreTimingDetails, StoreTiming, Time, 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, DateOperations, ArithmeticOperations, CourierPartnerRuleCPListResult, CourierPartnerSchemeDefaultTat, CourierPartnerSchemeTat, CourierPartnerSchemeFeatures, CourierPartnerList, ShipmentsCourierPartnersServiceability, CPShipments, ShipmentsArticles, ArticleSet, ArticleSizeDistribution, SetSize, ArticleDeliverySlots, ArticleReturnReason, CourierPartners, ShipmentCourierPartners, CourierPartnerConfig, BuyboxRuleConfig, PromiseConfig, StorePromiseAttributeConfig, DeliveryServiceAttributeConfig, BufferField, StorePrioritySchema, StoreRuleConditionSchema, CustomerRadiusSchema, CourierPartnerSchemeModel, PackageMaterialRule, PackageMaterialRuleQuantity, Channel, PackageRuleCategory, PackageRuleProduct, PackageRuleProductTag, PackageRuleDepartmentId, PackageRuleProductAttributes, PackageChannel, StoreFilter, PackageRuleSchema, Quantity, PackagePageInfo, OptimalLocationAssignedStoresResult, OptimalLocationArticlesResult, ArticleAssignment, 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, StorePolygonServiceabilityRequestData, StorePolygonServiceabilityStore, StorePolygonServiceabilityStoreCoordinates, StorePolygonServiceabilityConfig, StorePolygonServiceabilityPolygon, StorePolygonServiceabilityFeature, StorePolygonServiceabilityGeometry, StorePolygonServiceabilityAttributes, StorePolygonServiceabilityReferenceCoordinates, StorePolygonServiceabilityStoreSummary, StorePolygonServiceabilityError, StorePolygonServiceabilityPagination };
|
|
2883
2891
|
}
|
|
2884
2892
|
/** @returns {GenerateShipmentsAndCourierPartnerResult} */
|
|
2885
2893
|
declare function GenerateShipmentsAndCourierPartnerResult(): GenerateShipmentsAndCourierPartnerResult;
|
|
@@ -3015,6 +3023,7 @@ type FulfillmentOption = {
|
|
|
3015
3023
|
* - Status of the fulfillment option.
|
|
3016
3024
|
*/
|
|
3017
3025
|
status?: string;
|
|
3026
|
+
default_for?: FulfillmentOptionDefaultFor;
|
|
3018
3027
|
/**
|
|
3019
3028
|
* - Name of the ordering-channel or
|
|
3020
3029
|
* business, e.g. storefront, storeos.
|
|
@@ -7071,6 +7080,20 @@ type ShipmentsCourierPartner = {
|
|
|
7071
7080
|
*/
|
|
7072
7081
|
non_qc_shipment_item_quantity?: number;
|
|
7073
7082
|
};
|
|
7083
|
+
/** @returns {FulfillmentOptionDefaultFor} */
|
|
7084
|
+
declare function FulfillmentOptionDefaultFor(): FulfillmentOptionDefaultFor;
|
|
7085
|
+
type FulfillmentOptionDefaultFor = {
|
|
7086
|
+
/**
|
|
7087
|
+
* - If set to true, this fulfillment option
|
|
7088
|
+
* will be default for storefront.
|
|
7089
|
+
*/
|
|
7090
|
+
storefront?: boolean;
|
|
7091
|
+
/**
|
|
7092
|
+
* - If set to true, this fulfillment option will
|
|
7093
|
+
* be default for storeos.
|
|
7094
|
+
*/
|
|
7095
|
+
storeos?: boolean;
|
|
7096
|
+
};
|
|
7074
7097
|
/** @returns {BusinessUnit} */
|
|
7075
7098
|
declare function BusinessUnit(): BusinessUnit;
|
|
7076
7099
|
type BusinessUnit = {
|
|
@@ -58,6 +58,7 @@ const Joi = require("joi");
|
|
|
58
58
|
* @property {boolean} [is_default] - Whether this is the default fulfillment option.
|
|
59
59
|
* @property {string} [type] - Type of fulfillment option.
|
|
60
60
|
* @property {string} [status] - Status of the fulfillment option.
|
|
61
|
+
* @property {FulfillmentOptionDefaultFor} [default_for]
|
|
61
62
|
* @property {BusinessUnit[]} [business_unit] - Name of the ordering-channel or
|
|
62
63
|
* business, e.g. storefront, storeos.
|
|
63
64
|
* @property {FulfillmentStores} [fulfillment_stores]
|
|
@@ -1841,6 +1842,14 @@ const Joi = require("joi");
|
|
|
1841
1842
|
* under quality control (nullable).
|
|
1842
1843
|
*/
|
|
1843
1844
|
|
|
1845
|
+
/**
|
|
1846
|
+
* @typedef FulfillmentOptionDefaultFor
|
|
1847
|
+
* @property {boolean} [storefront] - If set to true, this fulfillment option
|
|
1848
|
+
* will be default for storefront.
|
|
1849
|
+
* @property {boolean} [storeos] - If set to true, this fulfillment option will
|
|
1850
|
+
* be default for storeos.
|
|
1851
|
+
*/
|
|
1852
|
+
|
|
1844
1853
|
/**
|
|
1845
1854
|
* @typedef BusinessUnit
|
|
1846
1855
|
* @property {string} [name] - Name of the business unit.
|
|
@@ -3241,6 +3250,7 @@ class ServiceabilityPlatformModel {
|
|
|
3241
3250
|
is_default: Joi.boolean(),
|
|
3242
3251
|
type: Joi.string().allow(""),
|
|
3243
3252
|
status: Joi.string().allow(""),
|
|
3253
|
+
default_for: ServiceabilityPlatformModel.FulfillmentOptionDefaultFor(),
|
|
3244
3254
|
business_unit: Joi.array().items(
|
|
3245
3255
|
ServiceabilityPlatformModel.BusinessUnit()
|
|
3246
3256
|
),
|
|
@@ -5156,6 +5166,14 @@ class ServiceabilityPlatformModel {
|
|
|
5156
5166
|
});
|
|
5157
5167
|
}
|
|
5158
5168
|
|
|
5169
|
+
/** @returns {FulfillmentOptionDefaultFor} */
|
|
5170
|
+
static FulfillmentOptionDefaultFor() {
|
|
5171
|
+
return Joi.object({
|
|
5172
|
+
storefront: Joi.boolean(),
|
|
5173
|
+
storeos: Joi.boolean(),
|
|
5174
|
+
});
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5159
5177
|
/** @returns {BusinessUnit} */
|
|
5160
5178
|
static BusinessUnit() {
|
|
5161
5179
|
return Joi.object({
|
|
@@ -538,6 +538,7 @@ export = UserPlatformModel;
|
|
|
538
538
|
* @property {Facebook} [facebook]
|
|
539
539
|
* @property {Accountkit} [account_kit]
|
|
540
540
|
* @property {Google} [google]
|
|
541
|
+
* @property {Apple} [apple]
|
|
541
542
|
*/
|
|
542
543
|
/**
|
|
543
544
|
* @typedef DeleteAccountReasons
|
|
@@ -577,6 +578,11 @@ export = UserPlatformModel;
|
|
|
577
578
|
* @property {string} [app_id]
|
|
578
579
|
* @property {string} [app_secret]
|
|
579
580
|
*/
|
|
581
|
+
/**
|
|
582
|
+
* @typedef Apple
|
|
583
|
+
* @property {string} [app_id]
|
|
584
|
+
* @property {string} [redirect_uri]
|
|
585
|
+
*/
|
|
580
586
|
/**
|
|
581
587
|
* @typedef SessionExpiry
|
|
582
588
|
* @property {number} [duration]
|
|
@@ -722,7 +728,7 @@ export = UserPlatformModel;
|
|
|
722
728
|
declare class UserPlatformModel {
|
|
723
729
|
}
|
|
724
730
|
declare namespace UserPlatformModel {
|
|
725
|
-
export { SuccessMessage, UserAttributeDefinitionList, UserAttributeDefinitionsResponseSchema, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, DeleteUserGroupSuccess, PrivacyPolicyConsentSchema };
|
|
731
|
+
export { SuccessMessage, UserAttributeDefinitionList, UserAttributeDefinitionsResponseSchema, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, Apple, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, DeleteUserGroupSuccess, PrivacyPolicyConsentSchema };
|
|
726
732
|
}
|
|
727
733
|
/** @returns {SuccessMessage} */
|
|
728
734
|
declare function SuccessMessage(): SuccessMessage;
|
|
@@ -1702,6 +1708,7 @@ type SocialTokens = {
|
|
|
1702
1708
|
facebook?: Facebook;
|
|
1703
1709
|
account_kit?: Accountkit;
|
|
1704
1710
|
google?: Google;
|
|
1711
|
+
apple?: Apple;
|
|
1705
1712
|
};
|
|
1706
1713
|
/** @returns {DeleteAccountReasons} */
|
|
1707
1714
|
declare function DeleteAccountReasons(): DeleteAccountReasons;
|
|
@@ -1769,6 +1776,12 @@ type Google = {
|
|
|
1769
1776
|
app_id?: string;
|
|
1770
1777
|
app_secret?: string;
|
|
1771
1778
|
};
|
|
1779
|
+
/** @returns {Apple} */
|
|
1780
|
+
declare function Apple(): Apple;
|
|
1781
|
+
type Apple = {
|
|
1782
|
+
app_id?: string;
|
|
1783
|
+
redirect_uri?: string;
|
|
1784
|
+
};
|
|
1772
1785
|
/** @returns {SessionExpiry} */
|
|
1773
1786
|
declare function SessionExpiry(): SessionExpiry;
|
|
1774
1787
|
type SessionExpiry = {
|
|
@@ -603,6 +603,7 @@ const Joi = require("joi");
|
|
|
603
603
|
* @property {Facebook} [facebook]
|
|
604
604
|
* @property {Accountkit} [account_kit]
|
|
605
605
|
* @property {Google} [google]
|
|
606
|
+
* @property {Apple} [apple]
|
|
606
607
|
*/
|
|
607
608
|
|
|
608
609
|
/**
|
|
@@ -650,6 +651,12 @@ const Joi = require("joi");
|
|
|
650
651
|
* @property {string} [app_secret]
|
|
651
652
|
*/
|
|
652
653
|
|
|
654
|
+
/**
|
|
655
|
+
* @typedef Apple
|
|
656
|
+
* @property {string} [app_id]
|
|
657
|
+
* @property {string} [redirect_uri]
|
|
658
|
+
*/
|
|
659
|
+
|
|
653
660
|
/**
|
|
654
661
|
* @typedef SessionExpiry
|
|
655
662
|
* @property {number} [duration]
|
|
@@ -1489,6 +1496,7 @@ class UserPlatformModel {
|
|
|
1489
1496
|
facebook: UserPlatformModel.Facebook(),
|
|
1490
1497
|
account_kit: UserPlatformModel.Accountkit(),
|
|
1491
1498
|
google: UserPlatformModel.Google(),
|
|
1499
|
+
apple: UserPlatformModel.Apple(),
|
|
1492
1500
|
});
|
|
1493
1501
|
}
|
|
1494
1502
|
|
|
@@ -1551,6 +1559,14 @@ class UserPlatformModel {
|
|
|
1551
1559
|
});
|
|
1552
1560
|
}
|
|
1553
1561
|
|
|
1562
|
+
/** @returns {Apple} */
|
|
1563
|
+
static Apple() {
|
|
1564
|
+
return Joi.object({
|
|
1565
|
+
app_id: Joi.string().allow(""),
|
|
1566
|
+
redirect_uri: Joi.string().allow(""),
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1554
1570
|
/** @returns {SessionExpiry} */
|
|
1555
1571
|
static SessionExpiry() {
|
|
1556
1572
|
return Joi.object({
|
|
@@ -157,7 +157,7 @@ class Configuration {
|
|
|
157
157
|
query_params["query"] = query;
|
|
158
158
|
|
|
159
159
|
const xHeaders = {};
|
|
160
|
-
xHeaders["authorization"] = authorization;
|
|
160
|
+
if (authorization !== undefined) xHeaders["authorization"] = authorization;
|
|
161
161
|
|
|
162
162
|
const response = await PublicAPIClient.execute(
|
|
163
163
|
this._conf,
|