@gofynd/fdk-client-javascript 3.24.0 → 3.25.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/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +19 -27
- package/sdk/platform/Cart/CartPlatformModel.js +8 -18
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +48 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +316 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +27 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +38 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +102 -1
- package/sdk/platform/Content/ContentPlatformModel.js +88 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +40 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +25 -0
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.25.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -377,7 +377,7 @@ declare class Catalog {
|
|
|
377
377
|
* @returns {Promise<ProductSizes>} - Success response
|
|
378
378
|
* @name getProductSizesBySlug
|
|
379
379
|
* @summary: List sizes
|
|
380
|
-
* @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSizesBySlug/).
|
|
380
|
+
* @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). Each size includes `seller_identifiers` (primary identifiers) and `all_identifiers` (primary and non-primary seller identifiers combined). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSizesBySlug/).
|
|
381
381
|
*/
|
|
382
382
|
getProductSizesBySlug({ slug, storeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ProductSizes>;
|
|
383
383
|
/**
|
|
@@ -1384,7 +1384,7 @@ class Catalog {
|
|
|
1384
1384
|
* @returns {Promise<ProductSizes>} - Success response
|
|
1385
1385
|
* @name getProductSizesBySlug
|
|
1386
1386
|
* @summary: List sizes
|
|
1387
|
-
* @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSizesBySlug/).
|
|
1387
|
+
* @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). Each size includes `seller_identifiers` (primary identifiers) and `all_identifiers` (primary and non-primary seller identifiers combined). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSizesBySlug/).
|
|
1388
1388
|
*/
|
|
1389
1389
|
async getProductSizesBySlug(
|
|
1390
1390
|
{ slug, storeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -56,7 +56,7 @@ declare class Order {
|
|
|
56
56
|
* @summary: List customer orders
|
|
57
57
|
* @description: Get all orders associated with a customer account. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/order/getOrders/).
|
|
58
58
|
*/
|
|
59
|
-
getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderList>;
|
|
59
|
+
getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, startDatetime, endDatetime, customMeta, allowInactive, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderList>;
|
|
60
60
|
/**
|
|
61
61
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
62
62
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -216,6 +216,8 @@ class Order {
|
|
|
216
216
|
toDate,
|
|
217
217
|
startDate,
|
|
218
218
|
endDate,
|
|
219
|
+
startDatetime,
|
|
220
|
+
endDatetime,
|
|
219
221
|
customMeta,
|
|
220
222
|
allowInactive,
|
|
221
223
|
requestHeaders,
|
|
@@ -230,6 +232,8 @@ class Order {
|
|
|
230
232
|
query_params["to_date"] = toDate;
|
|
231
233
|
query_params["start_date"] = startDate;
|
|
232
234
|
query_params["end_date"] = endDate;
|
|
235
|
+
query_params["start_datetime"] = startDatetime;
|
|
236
|
+
query_params["end_datetime"] = endDatetime;
|
|
233
237
|
query_params["custom_meta"] = customMeta;
|
|
234
238
|
query_params["allow_inactive"] = allowInactive;
|
|
235
239
|
|
|
@@ -1323,6 +1323,7 @@ export = CartPlatformModel;
|
|
|
1323
1323
|
* @property {string} [item_type] - Type of the item in cart.
|
|
1324
1324
|
* @property {ArticleCharges[]} [charges] - Charges information which denotes
|
|
1325
1325
|
* types of charges and amount of charge applied to that product in cart.
|
|
1326
|
+
* @property {string} [added_on] - Date and time when the item was added to the cart.
|
|
1326
1327
|
*/
|
|
1327
1328
|
/**
|
|
1328
1329
|
* @typedef OpenapiCartDetailsResult
|
|
@@ -1978,6 +1979,11 @@ export = CartPlatformModel;
|
|
|
1978
1979
|
* applied to cart or not
|
|
1979
1980
|
* @property {string} [coupon_type] - Type of the coupon applied to cart
|
|
1980
1981
|
* @property {string} [expires_on] - Message to display to user for expiry of the coupon
|
|
1982
|
+
* @property {string} [expires_at] - Represents the last valid timeslot date on
|
|
1983
|
+
* which the coupon can be applied in ISO 8601 (UTC Z) format,based on its
|
|
1984
|
+
* configured schedule. If the coupon is restricted to specific days (e.g.,
|
|
1985
|
+
* Mondays and Thursdays), the expiry date will be the last eligible day
|
|
1986
|
+
* within the overall end date range, not necessarily the end date itself.
|
|
1981
1987
|
* @property {number} [coupon_value] - Coupon value of the coupon applied to cart
|
|
1982
1988
|
* @property {string} [sub_title] - Coupon subtitle of the coupon applied to
|
|
1983
1989
|
* cart which is used to display
|
|
@@ -2821,18 +2827,10 @@ export = CartPlatformModel;
|
|
|
2821
2827
|
* @property {string} [approved_on] - Date time format when the offer approved
|
|
2822
2828
|
* @property {string} [rejected_on] - Date time format when the offer rejected
|
|
2823
2829
|
*/
|
|
2824
|
-
/**
|
|
2825
|
-
* @typedef NextScheduleItems
|
|
2826
|
-
* @property {string} [start] - Start date of schedule
|
|
2827
|
-
* @property {string} [end] - End date of schedule
|
|
2828
|
-
*/
|
|
2829
2830
|
/**
|
|
2830
2831
|
* @typedef OfferSchedule
|
|
2831
2832
|
* @property {string} end - The end date and time until which the offer remains valid.
|
|
2832
2833
|
* @property {string} start - The start date and time from which the offer becomes valid.
|
|
2833
|
-
* @property {NextScheduleItems[]} [next_schedule] - A auto generated list of
|
|
2834
|
-
* date-time entries based on start, end, cron and duration data on which the
|
|
2835
|
-
* offer is scheduled to activate in the future.
|
|
2836
2834
|
* @property {string} [cron] - A cron expression used to schedule the offer to
|
|
2837
2835
|
* activate periodically. When cron is null or not provided, duration is optional.
|
|
2838
2836
|
* @property {number} [duration] - Duration of the offer activation in seconds.
|
|
@@ -2858,7 +2856,7 @@ export = CartPlatformModel;
|
|
|
2858
2856
|
declare class CartPlatformModel {
|
|
2859
2857
|
}
|
|
2860
2858
|
declare namespace CartPlatformModel {
|
|
2861
|
-
export { RedeemLoyaltyPoints, CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, BuyRuleItemCriteria, DiscountItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, FulfillmentOptionSchema, StoreTimingSchema, StoreHoursSchema, PickupStoreDetailSchema, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CurrencyValue, ChargesAmount, ArticleCharges, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, PlatformAlternatePickupPerson, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutData, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, UpdateCartBreakup, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetailsData, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, DiscountOfferRule, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OfferUser, OfferItemCriteria, DiscountRuleOffer, OfferDiscountRule, OfferUsesRemaining, OfferUsesRestriction, OfferRestrictionFulfillmentOptions, OfferRestrictions, OfferDisplayMeta, OfferCouponConfiguration, OfferOwnership, OfferSchema, OfferPartialUpdate, OfferAuthor, OfferDateMeta,
|
|
2859
|
+
export { RedeemLoyaltyPoints, CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, BuyRuleItemCriteria, DiscountItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, FulfillmentOptionSchema, StoreTimingSchema, StoreHoursSchema, PickupStoreDetailSchema, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CurrencyValue, ChargesAmount, ArticleCharges, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, PlatformAlternatePickupPerson, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutData, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, UpdateCartBreakup, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetailsData, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, DiscountOfferRule, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OfferUser, OfferItemCriteria, DiscountRuleOffer, OfferDiscountRule, OfferUsesRemaining, OfferUsesRestriction, OfferRestrictionFulfillmentOptions, OfferRestrictions, OfferDisplayMeta, OfferCouponConfiguration, OfferOwnership, OfferSchema, OfferPartialUpdate, OfferAuthor, OfferDateMeta, OfferSchedule, OfferListItem, OfferListResult };
|
|
2862
2860
|
}
|
|
2863
2861
|
/** @returns {RedeemLoyaltyPoints} */
|
|
2864
2862
|
declare function RedeemLoyaltyPoints(): RedeemLoyaltyPoints;
|
|
@@ -6085,6 +6083,10 @@ type CartProductInfo = {
|
|
|
6085
6083
|
* types of charges and amount of charge applied to that product in cart.
|
|
6086
6084
|
*/
|
|
6087
6085
|
charges?: ArticleCharges[];
|
|
6086
|
+
/**
|
|
6087
|
+
* - Date and time when the item was added to the cart.
|
|
6088
|
+
*/
|
|
6089
|
+
added_on?: string;
|
|
6088
6090
|
};
|
|
6089
6091
|
/** @returns {OpenapiCartDetailsResult} */
|
|
6090
6092
|
declare function OpenapiCartDetailsResult(): OpenapiCartDetailsResult;
|
|
@@ -7807,6 +7809,14 @@ type Coupon = {
|
|
|
7807
7809
|
* - Message to display to user for expiry of the coupon
|
|
7808
7810
|
*/
|
|
7809
7811
|
expires_on?: string;
|
|
7812
|
+
/**
|
|
7813
|
+
* - Represents the last valid timeslot date on
|
|
7814
|
+
* which the coupon can be applied in ISO 8601 (UTC Z) format,based on its
|
|
7815
|
+
* configured schedule. If the coupon is restricted to specific days (e.g.,
|
|
7816
|
+
* Mondays and Thursdays), the expiry date will be the last eligible day
|
|
7817
|
+
* within the overall end date range, not necessarily the end date itself.
|
|
7818
|
+
*/
|
|
7819
|
+
expires_at?: string;
|
|
7810
7820
|
/**
|
|
7811
7821
|
* - Coupon value of the coupon applied to cart
|
|
7812
7822
|
*/
|
|
@@ -9854,18 +9864,6 @@ type OfferDateMeta = {
|
|
|
9854
9864
|
*/
|
|
9855
9865
|
rejected_on?: string;
|
|
9856
9866
|
};
|
|
9857
|
-
/** @returns {NextScheduleItems} */
|
|
9858
|
-
declare function NextScheduleItems(): NextScheduleItems;
|
|
9859
|
-
type NextScheduleItems = {
|
|
9860
|
-
/**
|
|
9861
|
-
* - Start date of schedule
|
|
9862
|
-
*/
|
|
9863
|
-
start?: string;
|
|
9864
|
-
/**
|
|
9865
|
-
* - End date of schedule
|
|
9866
|
-
*/
|
|
9867
|
-
end?: string;
|
|
9868
|
-
};
|
|
9869
9867
|
/** @returns {OfferSchedule} */
|
|
9870
9868
|
declare function OfferSchedule(): OfferSchedule;
|
|
9871
9869
|
type OfferSchedule = {
|
|
@@ -9877,12 +9875,6 @@ type OfferSchedule = {
|
|
|
9877
9875
|
* - The start date and time from which the offer becomes valid.
|
|
9878
9876
|
*/
|
|
9879
9877
|
start: string;
|
|
9880
|
-
/**
|
|
9881
|
-
* - A auto generated list of
|
|
9882
|
-
* date-time entries based on start, end, cron and duration data on which the
|
|
9883
|
-
* offer is scheduled to activate in the future.
|
|
9884
|
-
*/
|
|
9885
|
-
next_schedule?: NextScheduleItems[];
|
|
9886
9878
|
/**
|
|
9887
9879
|
* - A cron expression used to schedule the offer to
|
|
9888
9880
|
* activate periodically. When cron is null or not provided, duration is optional.
|
|
@@ -1442,6 +1442,7 @@ const Joi = require("joi");
|
|
|
1442
1442
|
* @property {string} [item_type] - Type of the item in cart.
|
|
1443
1443
|
* @property {ArticleCharges[]} [charges] - Charges information which denotes
|
|
1444
1444
|
* types of charges and amount of charge applied to that product in cart.
|
|
1445
|
+
* @property {string} [added_on] - Date and time when the item was added to the cart.
|
|
1445
1446
|
*/
|
|
1446
1447
|
|
|
1447
1448
|
/**
|
|
@@ -2150,6 +2151,11 @@ const Joi = require("joi");
|
|
|
2150
2151
|
* applied to cart or not
|
|
2151
2152
|
* @property {string} [coupon_type] - Type of the coupon applied to cart
|
|
2152
2153
|
* @property {string} [expires_on] - Message to display to user for expiry of the coupon
|
|
2154
|
+
* @property {string} [expires_at] - Represents the last valid timeslot date on
|
|
2155
|
+
* which the coupon can be applied in ISO 8601 (UTC Z) format,based on its
|
|
2156
|
+
* configured schedule. If the coupon is restricted to specific days (e.g.,
|
|
2157
|
+
* Mondays and Thursdays), the expiry date will be the last eligible day
|
|
2158
|
+
* within the overall end date range, not necessarily the end date itself.
|
|
2153
2159
|
* @property {number} [coupon_value] - Coupon value of the coupon applied to cart
|
|
2154
2160
|
* @property {string} [sub_title] - Coupon subtitle of the coupon applied to
|
|
2155
2161
|
* cart which is used to display
|
|
@@ -3058,19 +3064,10 @@ const Joi = require("joi");
|
|
|
3058
3064
|
* @property {string} [rejected_on] - Date time format when the offer rejected
|
|
3059
3065
|
*/
|
|
3060
3066
|
|
|
3061
|
-
/**
|
|
3062
|
-
* @typedef NextScheduleItems
|
|
3063
|
-
* @property {string} [start] - Start date of schedule
|
|
3064
|
-
* @property {string} [end] - End date of schedule
|
|
3065
|
-
*/
|
|
3066
|
-
|
|
3067
3067
|
/**
|
|
3068
3068
|
* @typedef OfferSchedule
|
|
3069
3069
|
* @property {string} end - The end date and time until which the offer remains valid.
|
|
3070
3070
|
* @property {string} start - The start date and time from which the offer becomes valid.
|
|
3071
|
-
* @property {NextScheduleItems[]} [next_schedule] - A auto generated list of
|
|
3072
|
-
* date-time entries based on start, end, cron and duration data on which the
|
|
3073
|
-
* offer is scheduled to activate in the future.
|
|
3074
3071
|
* @property {string} [cron] - A cron expression used to schedule the offer to
|
|
3075
3072
|
* activate periodically. When cron is null or not provided, duration is optional.
|
|
3076
3073
|
* @property {number} [duration] - Duration of the offer activation in seconds.
|
|
@@ -4567,6 +4564,7 @@ class CartPlatformModel {
|
|
|
4567
4564
|
custom_order: Joi.object().pattern(/\S/, Joi.any()),
|
|
4568
4565
|
item_type: Joi.string().allow(""),
|
|
4569
4566
|
charges: Joi.array().items(CartPlatformModel.ArticleCharges()),
|
|
4567
|
+
added_on: Joi.string().allow("").allow(null),
|
|
4570
4568
|
});
|
|
4571
4569
|
}
|
|
4572
4570
|
|
|
@@ -5280,6 +5278,7 @@ class CartPlatformModel {
|
|
|
5280
5278
|
is_applied: Joi.boolean(),
|
|
5281
5279
|
coupon_type: Joi.string().allow("").allow(null),
|
|
5282
5280
|
expires_on: Joi.string().allow(""),
|
|
5281
|
+
expires_at: Joi.string().allow("").allow(null),
|
|
5283
5282
|
coupon_value: Joi.number(),
|
|
5284
5283
|
sub_title: Joi.string().allow(""),
|
|
5285
5284
|
minimum_cart_value: Joi.number(),
|
|
@@ -6153,20 +6152,11 @@ class CartPlatformModel {
|
|
|
6153
6152
|
});
|
|
6154
6153
|
}
|
|
6155
6154
|
|
|
6156
|
-
/** @returns {NextScheduleItems} */
|
|
6157
|
-
static NextScheduleItems() {
|
|
6158
|
-
return Joi.object({
|
|
6159
|
-
start: Joi.string().allow(""),
|
|
6160
|
-
end: Joi.string().allow(""),
|
|
6161
|
-
});
|
|
6162
|
-
}
|
|
6163
|
-
|
|
6164
6155
|
/** @returns {OfferSchedule} */
|
|
6165
6156
|
static OfferSchedule() {
|
|
6166
6157
|
return Joi.object({
|
|
6167
6158
|
end: Joi.string().allow("").required(),
|
|
6168
6159
|
start: Joi.string().allow("").required(),
|
|
6169
|
-
next_schedule: Joi.array().items(CartPlatformModel.NextScheduleItems()),
|
|
6170
6160
|
cron: Joi.string().allow("").allow(null),
|
|
6171
6161
|
duration: Joi.number().allow(null),
|
|
6172
6162
|
});
|
|
@@ -83,6 +83,18 @@ declare class Content {
|
|
|
83
83
|
* @description: Generate and add a new announcement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/createAnnouncement/).
|
|
84
84
|
*/
|
|
85
85
|
createAnnouncement({ body, requestHeaders }?: ContentPlatformApplicationValidator.CreateAnnouncementParam, { responseHeaders }?: object): Promise<ContentPlatformModel.CreateAnnouncementSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* @param {ContentPlatformApplicationValidator.CreateAppAssociationParam} arg
|
|
88
|
+
* - Arg object
|
|
89
|
+
*
|
|
90
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
91
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
92
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
93
|
+
* @name createAppAssociation
|
|
94
|
+
* @summary: Create app association
|
|
95
|
+
* @description: Create-only. Returns 409 if a record already exists for this application (caller should use PUT to update). 422 on shape/size violations. Body fields `ios_payload` (object|null) and `android_payload` (array|null) are both optional and independent. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/createAppAssociation/).
|
|
96
|
+
*/
|
|
97
|
+
createAppAssociation({ body, requestHeaders }?: ContentPlatformApplicationValidator.CreateAppAssociationParam, { responseHeaders }?: object): Promise<ContentPlatformModel.AppAssociationRecord>;
|
|
86
98
|
/**
|
|
87
99
|
* @param {ContentPlatformApplicationValidator.CreateAppCustomFieldDefinitionParam} arg
|
|
88
100
|
* - Arg object
|
|
@@ -226,6 +238,18 @@ declare class Content {
|
|
|
226
238
|
* @description: Remove a specific announcement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/deleteAnnouncement/).
|
|
227
239
|
*/
|
|
228
240
|
deleteAnnouncement({ announcementId, requestHeaders }?: ContentPlatformApplicationValidator.DeleteAnnouncementParam, { responseHeaders }?: object): Promise<ContentPlatformModel.CreateAnnouncementSchema>;
|
|
241
|
+
/**
|
|
242
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppAssociationParam} arg
|
|
243
|
+
* - Arg object
|
|
244
|
+
*
|
|
245
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
246
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
247
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationDeleted>} - Success response
|
|
248
|
+
* @name deleteAppAssociation
|
|
249
|
+
* @summary: Delete app association
|
|
250
|
+
* @description: Remove the app-association record entirely. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/deleteAppAssociation/).
|
|
251
|
+
*/
|
|
252
|
+
deleteAppAssociation({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentPlatformModel.AppAssociationDeleted>;
|
|
229
253
|
/**
|
|
230
254
|
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
231
255
|
* - Arg object
|
|
@@ -471,6 +495,18 @@ declare class Content {
|
|
|
471
495
|
* @description: Lists all announcements - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/getAnnouncementsList/).
|
|
472
496
|
*/
|
|
473
497
|
getAnnouncementsList({ pageNo, pageSize, requestHeaders }?: ContentPlatformApplicationValidator.GetAnnouncementsListParam, { responseHeaders }?: object): Promise<ContentPlatformModel.GetAnnouncementListSchema>;
|
|
498
|
+
/**
|
|
499
|
+
* @param {ContentPlatformApplicationValidator.GetAppAssociationParam} arg
|
|
500
|
+
* - Arg object
|
|
501
|
+
*
|
|
502
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
503
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
504
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
505
|
+
* @name getAppAssociation
|
|
506
|
+
* @summary: Get app association
|
|
507
|
+
* @description: Fetch the app-association configuration (Apple AASA + Google Asset Links payloads) for this application. Returns 404 if no record exists. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/getAppAssociation/).
|
|
508
|
+
*/
|
|
509
|
+
getAppAssociation({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentPlatformModel.AppAssociationRecord>;
|
|
474
510
|
/**
|
|
475
511
|
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
476
512
|
* - Arg object
|
|
@@ -1034,6 +1070,18 @@ declare class Content {
|
|
|
1034
1070
|
* @description: Modify the scheduling of a specific announcement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/updateAnnouncementSchedule/).
|
|
1035
1071
|
*/
|
|
1036
1072
|
updateAnnouncementSchedule({ announcementId, body, requestHeaders }?: ContentPlatformApplicationValidator.UpdateAnnouncementScheduleParam, { responseHeaders }?: object): Promise<ContentPlatformModel.CreateAnnouncementSchema>;
|
|
1073
|
+
/**
|
|
1074
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppAssociationParam} arg
|
|
1075
|
+
* - Arg object
|
|
1076
|
+
*
|
|
1077
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1078
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1079
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
1080
|
+
* @name updateAppAssociation
|
|
1081
|
+
* @summary: Update app association
|
|
1082
|
+
* @description: Update-only. Returns 404 if no record exists (caller should use POST to create). Partial-update semantics: keys present are written (explicit null clears the field); keys absent are no-op. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/updateAppAssociation/).
|
|
1083
|
+
*/
|
|
1084
|
+
updateAppAssociation({ body, requestHeaders }?: ContentPlatformApplicationValidator.UpdateAppAssociationParam, { responseHeaders }?: object): Promise<ContentPlatformModel.AppAssociationRecord>;
|
|
1037
1085
|
/**
|
|
1038
1086
|
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
1039
1087
|
* - Arg object
|
|
@@ -574,6 +574,87 @@ class Content {
|
|
|
574
574
|
return response;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
+
/**
|
|
578
|
+
* @param {ContentPlatformApplicationValidator.CreateAppAssociationParam} arg
|
|
579
|
+
* - Arg object
|
|
580
|
+
*
|
|
581
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
582
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
583
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
584
|
+
* @name createAppAssociation
|
|
585
|
+
* @summary: Create app association
|
|
586
|
+
* @description: Create-only. Returns 409 if a record already exists for this application (caller should use PUT to update). 422 on shape/size violations. Body fields `ios_payload` (object|null) and `android_payload` (array|null) are both optional and independent. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/createAppAssociation/).
|
|
587
|
+
*/
|
|
588
|
+
async createAppAssociation(
|
|
589
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
590
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
591
|
+
) {
|
|
592
|
+
const {
|
|
593
|
+
error,
|
|
594
|
+
} = ContentPlatformApplicationValidator.createAppAssociation().validate(
|
|
595
|
+
{
|
|
596
|
+
body,
|
|
597
|
+
},
|
|
598
|
+
{ abortEarly: false, allowUnknown: true }
|
|
599
|
+
);
|
|
600
|
+
if (error) {
|
|
601
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// Showing warrnings if extra unknown parameters are found
|
|
605
|
+
const {
|
|
606
|
+
error: warrning,
|
|
607
|
+
} = ContentPlatformApplicationValidator.createAppAssociation().validate(
|
|
608
|
+
{
|
|
609
|
+
body,
|
|
610
|
+
},
|
|
611
|
+
{ abortEarly: false, allowUnknown: false }
|
|
612
|
+
);
|
|
613
|
+
if (warrning) {
|
|
614
|
+
Logger({
|
|
615
|
+
level: "WARN",
|
|
616
|
+
message: `Parameter Validation warrnings for platform > Content > createAppAssociation \n ${warrning}`,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const query_params = {};
|
|
621
|
+
|
|
622
|
+
const response = await PlatformAPIClient.execute(
|
|
623
|
+
this.config,
|
|
624
|
+
"post",
|
|
625
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
626
|
+
query_params,
|
|
627
|
+
body,
|
|
628
|
+
requestHeaders,
|
|
629
|
+
{ responseHeaders }
|
|
630
|
+
);
|
|
631
|
+
|
|
632
|
+
let responseData = response;
|
|
633
|
+
if (responseHeaders) {
|
|
634
|
+
responseData = response[0];
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
const {
|
|
638
|
+
error: res_error,
|
|
639
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
640
|
+
abortEarly: false,
|
|
641
|
+
allowUnknown: true,
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
if (res_error) {
|
|
645
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
646
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
647
|
+
} else {
|
|
648
|
+
Logger({
|
|
649
|
+
level: "WARN",
|
|
650
|
+
message: `Response Validation Warnings for platform > Content > createAppAssociation \n ${res_error}`,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
return response;
|
|
656
|
+
}
|
|
657
|
+
|
|
577
658
|
/**
|
|
578
659
|
* @param {ContentPlatformApplicationValidator.CreateAppCustomFieldDefinitionParam} arg
|
|
579
660
|
* - Arg object
|
|
@@ -1545,6 +1626,83 @@ class Content {
|
|
|
1545
1626
|
return response;
|
|
1546
1627
|
}
|
|
1547
1628
|
|
|
1629
|
+
/**
|
|
1630
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppAssociationParam} arg
|
|
1631
|
+
* - Arg object
|
|
1632
|
+
*
|
|
1633
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1634
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1635
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationDeleted>} - Success response
|
|
1636
|
+
* @name deleteAppAssociation
|
|
1637
|
+
* @summary: Delete app association
|
|
1638
|
+
* @description: Remove the app-association record entirely. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/deleteAppAssociation/).
|
|
1639
|
+
*/
|
|
1640
|
+
async deleteAppAssociation(
|
|
1641
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1642
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1643
|
+
) {
|
|
1644
|
+
const {
|
|
1645
|
+
error,
|
|
1646
|
+
} = ContentPlatformApplicationValidator.deleteAppAssociation().validate(
|
|
1647
|
+
{},
|
|
1648
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1649
|
+
);
|
|
1650
|
+
if (error) {
|
|
1651
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1655
|
+
const {
|
|
1656
|
+
error: warrning,
|
|
1657
|
+
} = ContentPlatformApplicationValidator.deleteAppAssociation().validate(
|
|
1658
|
+
{},
|
|
1659
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1660
|
+
);
|
|
1661
|
+
if (warrning) {
|
|
1662
|
+
Logger({
|
|
1663
|
+
level: "WARN",
|
|
1664
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppAssociation \n ${warrning}`,
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
const query_params = {};
|
|
1669
|
+
|
|
1670
|
+
const response = await PlatformAPIClient.execute(
|
|
1671
|
+
this.config,
|
|
1672
|
+
"delete",
|
|
1673
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
1674
|
+
query_params,
|
|
1675
|
+
undefined,
|
|
1676
|
+
requestHeaders,
|
|
1677
|
+
{ responseHeaders }
|
|
1678
|
+
);
|
|
1679
|
+
|
|
1680
|
+
let responseData = response;
|
|
1681
|
+
if (responseHeaders) {
|
|
1682
|
+
responseData = response[0];
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
const {
|
|
1686
|
+
error: res_error,
|
|
1687
|
+
} = ContentPlatformModel.AppAssociationDeleted().validate(responseData, {
|
|
1688
|
+
abortEarly: false,
|
|
1689
|
+
allowUnknown: true,
|
|
1690
|
+
});
|
|
1691
|
+
|
|
1692
|
+
if (res_error) {
|
|
1693
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1694
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1695
|
+
} else {
|
|
1696
|
+
Logger({
|
|
1697
|
+
level: "WARN",
|
|
1698
|
+
message: `Response Validation Warnings for platform > Content > deleteAppAssociation \n ${res_error}`,
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
return response;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1548
1706
|
/**
|
|
1549
1707
|
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
1550
1708
|
* - Arg object
|
|
@@ -3251,6 +3409,83 @@ class Content {
|
|
|
3251
3409
|
return response;
|
|
3252
3410
|
}
|
|
3253
3411
|
|
|
3412
|
+
/**
|
|
3413
|
+
* @param {ContentPlatformApplicationValidator.GetAppAssociationParam} arg
|
|
3414
|
+
* - Arg object
|
|
3415
|
+
*
|
|
3416
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3417
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3418
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
3419
|
+
* @name getAppAssociation
|
|
3420
|
+
* @summary: Get app association
|
|
3421
|
+
* @description: Fetch the app-association configuration (Apple AASA + Google Asset Links payloads) for this application. Returns 404 if no record exists. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/getAppAssociation/).
|
|
3422
|
+
*/
|
|
3423
|
+
async getAppAssociation(
|
|
3424
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3425
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3426
|
+
) {
|
|
3427
|
+
const {
|
|
3428
|
+
error,
|
|
3429
|
+
} = ContentPlatformApplicationValidator.getAppAssociation().validate(
|
|
3430
|
+
{},
|
|
3431
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3432
|
+
);
|
|
3433
|
+
if (error) {
|
|
3434
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3438
|
+
const {
|
|
3439
|
+
error: warrning,
|
|
3440
|
+
} = ContentPlatformApplicationValidator.getAppAssociation().validate(
|
|
3441
|
+
{},
|
|
3442
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3443
|
+
);
|
|
3444
|
+
if (warrning) {
|
|
3445
|
+
Logger({
|
|
3446
|
+
level: "WARN",
|
|
3447
|
+
message: `Parameter Validation warrnings for platform > Content > getAppAssociation \n ${warrning}`,
|
|
3448
|
+
});
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
const query_params = {};
|
|
3452
|
+
|
|
3453
|
+
const response = await PlatformAPIClient.execute(
|
|
3454
|
+
this.config,
|
|
3455
|
+
"get",
|
|
3456
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
3457
|
+
query_params,
|
|
3458
|
+
undefined,
|
|
3459
|
+
requestHeaders,
|
|
3460
|
+
{ responseHeaders }
|
|
3461
|
+
);
|
|
3462
|
+
|
|
3463
|
+
let responseData = response;
|
|
3464
|
+
if (responseHeaders) {
|
|
3465
|
+
responseData = response[0];
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
const {
|
|
3469
|
+
error: res_error,
|
|
3470
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
3471
|
+
abortEarly: false,
|
|
3472
|
+
allowUnknown: true,
|
|
3473
|
+
});
|
|
3474
|
+
|
|
3475
|
+
if (res_error) {
|
|
3476
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3477
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3478
|
+
} else {
|
|
3479
|
+
Logger({
|
|
3480
|
+
level: "WARN",
|
|
3481
|
+
message: `Response Validation Warnings for platform > Content > getAppAssociation \n ${res_error}`,
|
|
3482
|
+
});
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
return response;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3254
3489
|
/**
|
|
3255
3490
|
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
3256
3491
|
* - Arg object
|
|
@@ -7239,6 +7474,87 @@ class Content {
|
|
|
7239
7474
|
return response;
|
|
7240
7475
|
}
|
|
7241
7476
|
|
|
7477
|
+
/**
|
|
7478
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppAssociationParam} arg
|
|
7479
|
+
* - Arg object
|
|
7480
|
+
*
|
|
7481
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7482
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7483
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
7484
|
+
* @name updateAppAssociation
|
|
7485
|
+
* @summary: Update app association
|
|
7486
|
+
* @description: Update-only. Returns 404 if no record exists (caller should use POST to create). Partial-update semantics: keys present are written (explicit null clears the field); keys absent are no-op. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/updateAppAssociation/).
|
|
7487
|
+
*/
|
|
7488
|
+
async updateAppAssociation(
|
|
7489
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
7490
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
7491
|
+
) {
|
|
7492
|
+
const {
|
|
7493
|
+
error,
|
|
7494
|
+
} = ContentPlatformApplicationValidator.updateAppAssociation().validate(
|
|
7495
|
+
{
|
|
7496
|
+
body,
|
|
7497
|
+
},
|
|
7498
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7499
|
+
);
|
|
7500
|
+
if (error) {
|
|
7501
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
7502
|
+
}
|
|
7503
|
+
|
|
7504
|
+
// Showing warrnings if extra unknown parameters are found
|
|
7505
|
+
const {
|
|
7506
|
+
error: warrning,
|
|
7507
|
+
} = ContentPlatformApplicationValidator.updateAppAssociation().validate(
|
|
7508
|
+
{
|
|
7509
|
+
body,
|
|
7510
|
+
},
|
|
7511
|
+
{ abortEarly: false, allowUnknown: false }
|
|
7512
|
+
);
|
|
7513
|
+
if (warrning) {
|
|
7514
|
+
Logger({
|
|
7515
|
+
level: "WARN",
|
|
7516
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppAssociation \n ${warrning}`,
|
|
7517
|
+
});
|
|
7518
|
+
}
|
|
7519
|
+
|
|
7520
|
+
const query_params = {};
|
|
7521
|
+
|
|
7522
|
+
const response = await PlatformAPIClient.execute(
|
|
7523
|
+
this.config,
|
|
7524
|
+
"put",
|
|
7525
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
7526
|
+
query_params,
|
|
7527
|
+
body,
|
|
7528
|
+
requestHeaders,
|
|
7529
|
+
{ responseHeaders }
|
|
7530
|
+
);
|
|
7531
|
+
|
|
7532
|
+
let responseData = response;
|
|
7533
|
+
if (responseHeaders) {
|
|
7534
|
+
responseData = response[0];
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
const {
|
|
7538
|
+
error: res_error,
|
|
7539
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
7540
|
+
abortEarly: false,
|
|
7541
|
+
allowUnknown: true,
|
|
7542
|
+
});
|
|
7543
|
+
|
|
7544
|
+
if (res_error) {
|
|
7545
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
7546
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
7547
|
+
} else {
|
|
7548
|
+
Logger({
|
|
7549
|
+
level: "WARN",
|
|
7550
|
+
message: `Response Validation Warnings for platform > Content > updateAppAssociation \n ${res_error}`,
|
|
7551
|
+
});
|
|
7552
|
+
}
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
return response;
|
|
7556
|
+
}
|
|
7557
|
+
|
|
7242
7558
|
/**
|
|
7243
7559
|
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
7244
7560
|
* - Arg object
|
|
@@ -28,6 +28,10 @@ export = ContentPlatformApplicationValidator;
|
|
|
28
28
|
* @typedef CreateAnnouncementParam
|
|
29
29
|
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
30
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CreateAppAssociationParam
|
|
33
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
34
|
+
*/
|
|
31
35
|
/**
|
|
32
36
|
* @typedef CreateAppCustomFieldDefinitionParam
|
|
33
37
|
* @property {string} resource
|
|
@@ -78,6 +82,7 @@ export = ContentPlatformApplicationValidator;
|
|
|
78
82
|
* @typedef DeleteAnnouncementParam
|
|
79
83
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
80
84
|
*/
|
|
85
|
+
/** @typedef DeleteAppAssociationParam */
|
|
81
86
|
/**
|
|
82
87
|
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
83
88
|
* @property {string} slug
|
|
@@ -177,6 +182,7 @@ export = ContentPlatformApplicationValidator;
|
|
|
177
182
|
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
178
183
|
* Default value is 10.
|
|
179
184
|
*/
|
|
185
|
+
/** @typedef GetAppAssociationParam */
|
|
180
186
|
/**
|
|
181
187
|
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
182
188
|
* @property {string} pageNo
|
|
@@ -405,6 +411,10 @@ export = ContentPlatformApplicationValidator;
|
|
|
405
411
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
406
412
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
407
413
|
*/
|
|
414
|
+
/**
|
|
415
|
+
* @typedef UpdateAppAssociationParam
|
|
416
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
417
|
+
*/
|
|
408
418
|
/**
|
|
409
419
|
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
410
420
|
* @property {string} resource
|
|
@@ -517,6 +527,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
517
527
|
static bulkUnPublishApplicationLanguage(): BulkUnPublishApplicationLanguageParam;
|
|
518
528
|
/** @returns {CreateAnnouncementParam} */
|
|
519
529
|
static createAnnouncement(): CreateAnnouncementParam;
|
|
530
|
+
/** @returns {CreateAppAssociationParam} */
|
|
531
|
+
static createAppAssociation(): CreateAppAssociationParam;
|
|
520
532
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
521
533
|
static createAppCustomFieldDefinition(): CreateAppCustomFieldDefinitionParam;
|
|
522
534
|
/** @returns {CreateAppCustomObjectBySlugParam} */
|
|
@@ -541,6 +553,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
541
553
|
static createTranslateUILabels(): CreateTranslateUILabelsParam;
|
|
542
554
|
/** @returns {DeleteAnnouncementParam} */
|
|
543
555
|
static deleteAnnouncement(): DeleteAnnouncementParam;
|
|
556
|
+
/** @returns {DeleteAppAssociationParam} */
|
|
557
|
+
static deleteAppAssociation(): any;
|
|
544
558
|
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
545
559
|
static deleteAppCustomFieldDefinitionBySlug(): DeleteAppCustomFieldDefinitionBySlugParam;
|
|
546
560
|
/** @returns {DeleteAppCustomObjectBySlugParam} */
|
|
@@ -583,6 +597,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
583
597
|
static getAnnouncementById(): GetAnnouncementByIdParam;
|
|
584
598
|
/** @returns {GetAnnouncementsListParam} */
|
|
585
599
|
static getAnnouncementsList(): GetAnnouncementsListParam;
|
|
600
|
+
/** @returns {GetAppAssociationParam} */
|
|
601
|
+
static getAppAssociation(): any;
|
|
586
602
|
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
587
603
|
static getAppCustomFieldDefinitionByResource(): GetAppCustomFieldDefinitionByResourceParam;
|
|
588
604
|
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
@@ -679,6 +695,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
679
695
|
static updateAnnouncement(): UpdateAnnouncementParam;
|
|
680
696
|
/** @returns {UpdateAnnouncementScheduleParam} */
|
|
681
697
|
static updateAnnouncementSchedule(): UpdateAnnouncementScheduleParam;
|
|
698
|
+
/** @returns {UpdateAppAssociationParam} */
|
|
699
|
+
static updateAppAssociation(): UpdateAppAssociationParam;
|
|
682
700
|
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
683
701
|
static updateAppCustomFieldByResourceSlug(): UpdateAppCustomFieldByResourceSlugParam;
|
|
684
702
|
/** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
|
|
@@ -719,7 +737,7 @@ declare class ContentPlatformApplicationValidator {
|
|
|
719
737
|
static upsertApplicationResourceTranslationInBulk(): UpsertApplicationResourceTranslationInBulkParam;
|
|
720
738
|
}
|
|
721
739
|
declare namespace ContentPlatformApplicationValidator {
|
|
722
|
-
export { AddApplicationLanguageParam, AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, BulkUnPublishApplicationLanguageParam, CreateAnnouncementParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateApplicationResourceTranslationParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreateSEOMarkupSchemaParam, CreateTranslateUILabelsParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteApplicationLanguageParam, DeleteApplicationResourceTranslationParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetApplicationLanguagesParam, GetApplicationResourceTranslationsParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, GetTagsTemplateParam, GetTranslateUILabelsParam, GetTranslateUILabelsByIdParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateApplicationLanguageStatusParam, UpdateApplicationResourceTranslationParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam, UpdateTranslateUILabelsParam, UpsertApplicationResourceTranslationInBulkParam };
|
|
740
|
+
export { AddApplicationLanguageParam, AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, BulkUnPublishApplicationLanguageParam, CreateAnnouncementParam, CreateAppAssociationParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateApplicationResourceTranslationParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreateSEOMarkupSchemaParam, CreateTranslateUILabelsParam, DeleteAnnouncementParam, DeleteAppAssociationParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteApplicationLanguageParam, DeleteApplicationResourceTranslationParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppAssociationParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetApplicationLanguagesParam, GetApplicationResourceTranslationsParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, GetTagsTemplateParam, GetTranslateUILabelsParam, GetTranslateUILabelsByIdParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppAssociationParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateApplicationLanguageStatusParam, UpdateApplicationResourceTranslationParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam, UpdateTranslateUILabelsParam, UpsertApplicationResourceTranslationInBulkParam };
|
|
723
741
|
}
|
|
724
742
|
type AddApplicationLanguageParam = {
|
|
725
743
|
body: ContentPlatformModel.ApplicationLanguageCreate;
|
|
@@ -746,6 +764,9 @@ type BulkUnPublishApplicationLanguageParam = {
|
|
|
746
764
|
type CreateAnnouncementParam = {
|
|
747
765
|
body: ContentPlatformModel.AdminAnnouncementSchema;
|
|
748
766
|
};
|
|
767
|
+
type CreateAppAssociationParam = {
|
|
768
|
+
body: ContentPlatformModel.AppAssociationWriteBody;
|
|
769
|
+
};
|
|
749
770
|
type CreateAppCustomFieldDefinitionParam = {
|
|
750
771
|
resource: string;
|
|
751
772
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema;
|
|
@@ -1225,6 +1246,9 @@ type UpdateAnnouncementScheduleParam = {
|
|
|
1225
1246
|
announcementId: string;
|
|
1226
1247
|
body: ContentPlatformModel.ScheduleSchema;
|
|
1227
1248
|
};
|
|
1249
|
+
type UpdateAppAssociationParam = {
|
|
1250
|
+
body: ContentPlatformModel.AppAssociationWriteBody;
|
|
1251
|
+
};
|
|
1228
1252
|
type UpdateAppCustomFieldByResourceSlugParam = {
|
|
1229
1253
|
resource: string;
|
|
1230
1254
|
resourceSlug: string;
|
|
@@ -1333,6 +1357,8 @@ type UpdateTranslateUILabelsParam = {
|
|
|
1333
1357
|
type UpsertApplicationResourceTranslationInBulkParam = {
|
|
1334
1358
|
body: ContentPlatformModel.ResourceTranslationList;
|
|
1335
1359
|
};
|
|
1360
|
+
type DeleteAppAssociationParam = any;
|
|
1361
|
+
type GetAppAssociationParam = any;
|
|
1336
1362
|
type GetAppCustomFieldTypesParam = any;
|
|
1337
1363
|
type GetAppResourcesParam = any;
|
|
1338
1364
|
type GetApplicationLanguagesParam = any;
|
|
@@ -38,6 +38,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
38
38
|
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @typedef CreateAppAssociationParam
|
|
43
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
44
|
+
*/
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* @typedef CreateAppCustomFieldDefinitionParam
|
|
43
48
|
* @property {string} resource
|
|
@@ -100,6 +105,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
100
105
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
101
106
|
*/
|
|
102
107
|
|
|
108
|
+
/** @typedef DeleteAppAssociationParam */
|
|
109
|
+
|
|
103
110
|
/**
|
|
104
111
|
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
105
112
|
* @property {string} slug
|
|
@@ -220,6 +227,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
220
227
|
* Default value is 10.
|
|
221
228
|
*/
|
|
222
229
|
|
|
230
|
+
/** @typedef GetAppAssociationParam */
|
|
231
|
+
|
|
223
232
|
/**
|
|
224
233
|
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
225
234
|
* @property {string} pageNo
|
|
@@ -496,6 +505,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
496
505
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
497
506
|
*/
|
|
498
507
|
|
|
508
|
+
/**
|
|
509
|
+
* @typedef UpdateAppAssociationParam
|
|
510
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
511
|
+
*/
|
|
512
|
+
|
|
499
513
|
/**
|
|
500
514
|
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
501
515
|
* @property {string} resource
|
|
@@ -663,6 +677,13 @@ class ContentPlatformApplicationValidator {
|
|
|
663
677
|
}).required();
|
|
664
678
|
}
|
|
665
679
|
|
|
680
|
+
/** @returns {CreateAppAssociationParam} */
|
|
681
|
+
static createAppAssociation() {
|
|
682
|
+
return Joi.object({
|
|
683
|
+
body: ContentPlatformModel.AppAssociationWriteBody().required(),
|
|
684
|
+
}).required();
|
|
685
|
+
}
|
|
686
|
+
|
|
666
687
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
667
688
|
static createAppCustomFieldDefinition() {
|
|
668
689
|
return Joi.object({
|
|
@@ -749,6 +770,11 @@ class ContentPlatformApplicationValidator {
|
|
|
749
770
|
}).required();
|
|
750
771
|
}
|
|
751
772
|
|
|
773
|
+
/** @returns {DeleteAppAssociationParam} */
|
|
774
|
+
static deleteAppAssociation() {
|
|
775
|
+
return Joi.object({}).required();
|
|
776
|
+
}
|
|
777
|
+
|
|
752
778
|
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
753
779
|
static deleteAppCustomFieldDefinitionBySlug() {
|
|
754
780
|
return Joi.object({
|
|
@@ -905,6 +931,11 @@ class ContentPlatformApplicationValidator {
|
|
|
905
931
|
}).required();
|
|
906
932
|
}
|
|
907
933
|
|
|
934
|
+
/** @returns {GetAppAssociationParam} */
|
|
935
|
+
static getAppAssociation() {
|
|
936
|
+
return Joi.object({}).required();
|
|
937
|
+
}
|
|
938
|
+
|
|
908
939
|
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
909
940
|
static getAppCustomFieldDefinitionByResource() {
|
|
910
941
|
return Joi.object({
|
|
@@ -1264,6 +1295,13 @@ class ContentPlatformApplicationValidator {
|
|
|
1264
1295
|
}).required();
|
|
1265
1296
|
}
|
|
1266
1297
|
|
|
1298
|
+
/** @returns {UpdateAppAssociationParam} */
|
|
1299
|
+
static updateAppAssociation() {
|
|
1300
|
+
return Joi.object({
|
|
1301
|
+
body: ContentPlatformModel.AppAssociationWriteBody().required(),
|
|
1302
|
+
}).required();
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1267
1305
|
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
1268
1306
|
static updateAppCustomFieldByResourceSlug() {
|
|
1269
1307
|
return Joi.object({
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
export = ContentPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef AppAssociationDeleted
|
|
4
|
+
* @property {string} [message] - Operation status string (e.g. "deleted").
|
|
5
|
+
* @property {string} [application_id] - The application_id whose record was deleted.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @typedef AppAssociationIosPayload
|
|
9
|
+
* @property {Object} [applinks] - Universal Links configuration.
|
|
10
|
+
* @property {Object} [appclips] - App Clips configuration.
|
|
11
|
+
* @property {Object} [webcredentials] - Shared Web Credentials.
|
|
12
|
+
* @property {Object} [activitycontinuation] - Handoff. Deprecated in iOS 14+.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @typedef AppAssociationAndroidStatement
|
|
16
|
+
* @property {string[]} [relation] - Permission relations granted by this statement.
|
|
17
|
+
* @property {Object} [target] - Subject of the statement (android_app or web).
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @typedef AppAssociationWriteBody
|
|
21
|
+
* @property {AppAssociationIosPayload} [ios_payload] - Apple App Site
|
|
22
|
+
* Association JSON. Null to clear.
|
|
23
|
+
* @property {AppAssociationAndroidStatement[]} [android_payload] - Digital
|
|
24
|
+
* Asset Links JSON (array of statements). Null to clear.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @typedef AppAssociationRecord
|
|
28
|
+
* @property {AppAssociationIosPayload} [ios_payload]
|
|
29
|
+
* @property {AppAssociationAndroidStatement[]} [android_payload]
|
|
30
|
+
* @property {string} [created_at]
|
|
31
|
+
* @property {string} [updated_at]
|
|
32
|
+
* @property {string} [created_by]
|
|
33
|
+
* @property {string} [modified_by]
|
|
34
|
+
*/
|
|
2
35
|
/**
|
|
3
36
|
* @typedef ValidationError
|
|
4
37
|
* @property {string} message - A brief description of the error encountered.
|
|
@@ -1629,8 +1662,76 @@ export = ContentPlatformModel;
|
|
|
1629
1662
|
declare class ContentPlatformModel {
|
|
1630
1663
|
}
|
|
1631
1664
|
declare namespace ContentPlatformModel {
|
|
1632
|
-
export { ValidationError, GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetDetails, BlogFilters, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogPayload, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, NavigationReference, CronBasedScheduleSchema, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, TemplateSchema, TemplateField, CreateTagRequestSchema, DataLoaderSchema, TagsTemplateSchema, TagTemplateItem, TemplateLayout, FieldDefinition, FieldValidation, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessDetails, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetDetails, LandingPageSchema, DefaultNavigationDetails, NavigationGetDetails, Orientation, NavigationSchema, NavigationPayload, PageGetDetails, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PagePayload, CronSchedule, PagePublishPayload, PageMetaSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, MetaFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsDeleteSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectDefinitionSlugSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadDetails, CustomObjectListItemDefinitionModel, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldDefinition, CustomObjectBySlugSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, JobSchema, CustomFieldBulkEntry, CustomObjectBulkEntry, MetafieldTypesSchema, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, Duration, HTML, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectEntryFieldSchemaWithoutID, CustomObjectRequestSchema, CustomObjectRequestSchemaWithoutId, CustomObjectBulkSchema, ActionPage, TranslateUiLabels, TranslateUiLabelsCreate, StaticResourceUpdate, TranslateUiLabelsPage, Error, Meta, CompanyLanguage, CompanyLanguageCreate, CompanyLanguageUpdate, ApplicationLanguage, unPublishApplicationLanguage, ApplicationLanguageCreate, ApplicationLanguageUpdate, TranslatableResource, ResourceDefinition, ResourceJsonSchema, ResourceJsonSchemaType, ResourceUISchema, ResourceBulkDetails, Title, FeatureImage, SeoTranslate, MetaTag, MetaTagItem, ResourceTranslation, TranslationSeo, ResourceTranslationList, ResourceTranslationCreate, ResourceTranslationUpdate, TranslatableSection, Metrics, ResourceTranslationUpsertItem, ResourceTranslationBulkUpsert, StandardError, OperationResponseSchema, GenerationEntityType, PageType };
|
|
1665
|
+
export { AppAssociationDeleted, AppAssociationIosPayload, AppAssociationAndroidStatement, AppAssociationWriteBody, AppAssociationRecord, ValidationError, GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetDetails, BlogFilters, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogPayload, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, NavigationReference, CronBasedScheduleSchema, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, TemplateSchema, TemplateField, CreateTagRequestSchema, DataLoaderSchema, TagsTemplateSchema, TagTemplateItem, TemplateLayout, FieldDefinition, FieldValidation, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessDetails, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetDetails, LandingPageSchema, DefaultNavigationDetails, NavigationGetDetails, Orientation, NavigationSchema, NavigationPayload, PageGetDetails, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PagePayload, CronSchedule, PagePublishPayload, PageMetaSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, MetaFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsDeleteSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectDefinitionSlugSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadDetails, CustomObjectListItemDefinitionModel, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldDefinition, CustomObjectBySlugSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, JobSchema, CustomFieldBulkEntry, CustomObjectBulkEntry, MetafieldTypesSchema, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, Duration, HTML, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectEntryFieldSchemaWithoutID, CustomObjectRequestSchema, CustomObjectRequestSchemaWithoutId, CustomObjectBulkSchema, ActionPage, TranslateUiLabels, TranslateUiLabelsCreate, StaticResourceUpdate, TranslateUiLabelsPage, Error, Meta, CompanyLanguage, CompanyLanguageCreate, CompanyLanguageUpdate, ApplicationLanguage, unPublishApplicationLanguage, ApplicationLanguageCreate, ApplicationLanguageUpdate, TranslatableResource, ResourceDefinition, ResourceJsonSchema, ResourceJsonSchemaType, ResourceUISchema, ResourceBulkDetails, Title, FeatureImage, SeoTranslate, MetaTag, MetaTagItem, ResourceTranslation, TranslationSeo, ResourceTranslationList, ResourceTranslationCreate, ResourceTranslationUpdate, TranslatableSection, Metrics, ResourceTranslationUpsertItem, ResourceTranslationBulkUpsert, StandardError, OperationResponseSchema, GenerationEntityType, PageType };
|
|
1633
1666
|
}
|
|
1667
|
+
/** @returns {AppAssociationDeleted} */
|
|
1668
|
+
declare function AppAssociationDeleted(): AppAssociationDeleted;
|
|
1669
|
+
type AppAssociationDeleted = {
|
|
1670
|
+
/**
|
|
1671
|
+
* - Operation status string (e.g. "deleted").
|
|
1672
|
+
*/
|
|
1673
|
+
message?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* - The application_id whose record was deleted.
|
|
1676
|
+
*/
|
|
1677
|
+
application_id?: string;
|
|
1678
|
+
};
|
|
1679
|
+
/** @returns {AppAssociationIosPayload} */
|
|
1680
|
+
declare function AppAssociationIosPayload(): AppAssociationIosPayload;
|
|
1681
|
+
type AppAssociationIosPayload = {
|
|
1682
|
+
/**
|
|
1683
|
+
* - Universal Links configuration.
|
|
1684
|
+
*/
|
|
1685
|
+
applinks?: any;
|
|
1686
|
+
/**
|
|
1687
|
+
* - App Clips configuration.
|
|
1688
|
+
*/
|
|
1689
|
+
appclips?: any;
|
|
1690
|
+
/**
|
|
1691
|
+
* - Shared Web Credentials.
|
|
1692
|
+
*/
|
|
1693
|
+
webcredentials?: any;
|
|
1694
|
+
/**
|
|
1695
|
+
* - Handoff. Deprecated in iOS 14+.
|
|
1696
|
+
*/
|
|
1697
|
+
activitycontinuation?: any;
|
|
1698
|
+
};
|
|
1699
|
+
/** @returns {AppAssociationAndroidStatement} */
|
|
1700
|
+
declare function AppAssociationAndroidStatement(): AppAssociationAndroidStatement;
|
|
1701
|
+
type AppAssociationAndroidStatement = {
|
|
1702
|
+
/**
|
|
1703
|
+
* - Permission relations granted by this statement.
|
|
1704
|
+
*/
|
|
1705
|
+
relation?: string[];
|
|
1706
|
+
/**
|
|
1707
|
+
* - Subject of the statement (android_app or web).
|
|
1708
|
+
*/
|
|
1709
|
+
target?: any;
|
|
1710
|
+
};
|
|
1711
|
+
/** @returns {AppAssociationWriteBody} */
|
|
1712
|
+
declare function AppAssociationWriteBody(): AppAssociationWriteBody;
|
|
1713
|
+
type AppAssociationWriteBody = {
|
|
1714
|
+
/**
|
|
1715
|
+
* - Apple App Site
|
|
1716
|
+
* Association JSON. Null to clear.
|
|
1717
|
+
*/
|
|
1718
|
+
ios_payload?: AppAssociationIosPayload;
|
|
1719
|
+
/**
|
|
1720
|
+
* - Digital
|
|
1721
|
+
* Asset Links JSON (array of statements). Null to clear.
|
|
1722
|
+
*/
|
|
1723
|
+
android_payload?: AppAssociationAndroidStatement[];
|
|
1724
|
+
};
|
|
1725
|
+
/** @returns {AppAssociationRecord} */
|
|
1726
|
+
declare function AppAssociationRecord(): AppAssociationRecord;
|
|
1727
|
+
type AppAssociationRecord = {
|
|
1728
|
+
ios_payload?: AppAssociationIosPayload;
|
|
1729
|
+
android_payload?: AppAssociationAndroidStatement[];
|
|
1730
|
+
created_at?: string;
|
|
1731
|
+
updated_at?: string;
|
|
1732
|
+
created_by?: string;
|
|
1733
|
+
modified_by?: string;
|
|
1734
|
+
};
|
|
1634
1735
|
/** @returns {ValidationError} */
|
|
1635
1736
|
declare function ValidationError(): ValidationError;
|
|
1636
1737
|
type ValidationError = {
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AppAssociationDeleted
|
|
5
|
+
* @property {string} [message] - Operation status string (e.g. "deleted").
|
|
6
|
+
* @property {string} [application_id] - The application_id whose record was deleted.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @typedef AppAssociationIosPayload
|
|
11
|
+
* @property {Object} [applinks] - Universal Links configuration.
|
|
12
|
+
* @property {Object} [appclips] - App Clips configuration.
|
|
13
|
+
* @property {Object} [webcredentials] - Shared Web Credentials.
|
|
14
|
+
* @property {Object} [activitycontinuation] - Handoff. Deprecated in iOS 14+.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @typedef AppAssociationAndroidStatement
|
|
19
|
+
* @property {string[]} [relation] - Permission relations granted by this statement.
|
|
20
|
+
* @property {Object} [target] - Subject of the statement (android_app or web).
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef AppAssociationWriteBody
|
|
25
|
+
* @property {AppAssociationIosPayload} [ios_payload] - Apple App Site
|
|
26
|
+
* Association JSON. Null to clear.
|
|
27
|
+
* @property {AppAssociationAndroidStatement[]} [android_payload] - Digital
|
|
28
|
+
* Asset Links JSON (array of statements). Null to clear.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef AppAssociationRecord
|
|
33
|
+
* @property {AppAssociationIosPayload} [ios_payload]
|
|
34
|
+
* @property {AppAssociationAndroidStatement[]} [android_payload]
|
|
35
|
+
* @property {string} [created_at]
|
|
36
|
+
* @property {string} [updated_at]
|
|
37
|
+
* @property {string} [created_by]
|
|
38
|
+
* @property {string} [modified_by]
|
|
39
|
+
*/
|
|
40
|
+
|
|
3
41
|
/**
|
|
4
42
|
* @typedef ValidationError
|
|
5
43
|
* @property {string} message - A brief description of the error encountered.
|
|
@@ -1830,6 +1868,56 @@ const Joi = require("joi");
|
|
|
1830
1868
|
*/
|
|
1831
1869
|
|
|
1832
1870
|
class ContentPlatformModel {
|
|
1871
|
+
/** @returns {AppAssociationDeleted} */
|
|
1872
|
+
static AppAssociationDeleted() {
|
|
1873
|
+
return Joi.object({
|
|
1874
|
+
message: Joi.string().allow(""),
|
|
1875
|
+
application_id: Joi.string().allow(""),
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/** @returns {AppAssociationIosPayload} */
|
|
1880
|
+
static AppAssociationIosPayload() {
|
|
1881
|
+
return Joi.object({
|
|
1882
|
+
applinks: Joi.object().pattern(/\S/, Joi.any()),
|
|
1883
|
+
appclips: Joi.object().pattern(/\S/, Joi.any()),
|
|
1884
|
+
webcredentials: Joi.object().pattern(/\S/, Joi.any()),
|
|
1885
|
+
activitycontinuation: Joi.object().pattern(/\S/, Joi.any()),
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
/** @returns {AppAssociationAndroidStatement} */
|
|
1890
|
+
static AppAssociationAndroidStatement() {
|
|
1891
|
+
return Joi.object({
|
|
1892
|
+
relation: Joi.array().items(Joi.string().allow("")),
|
|
1893
|
+
target: Joi.object().pattern(/\S/, Joi.any()),
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/** @returns {AppAssociationWriteBody} */
|
|
1898
|
+
static AppAssociationWriteBody() {
|
|
1899
|
+
return Joi.object({
|
|
1900
|
+
ios_payload: ContentPlatformModel.AppAssociationIosPayload(),
|
|
1901
|
+
android_payload: Joi.array()
|
|
1902
|
+
.items(ContentPlatformModel.AppAssociationAndroidStatement())
|
|
1903
|
+
.allow(null, ""),
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/** @returns {AppAssociationRecord} */
|
|
1908
|
+
static AppAssociationRecord() {
|
|
1909
|
+
return Joi.object({
|
|
1910
|
+
ios_payload: ContentPlatformModel.AppAssociationIosPayload(),
|
|
1911
|
+
android_payload: Joi.array()
|
|
1912
|
+
.items(ContentPlatformModel.AppAssociationAndroidStatement())
|
|
1913
|
+
.allow(null, ""),
|
|
1914
|
+
created_at: Joi.string().allow(""),
|
|
1915
|
+
updated_at: Joi.string().allow(""),
|
|
1916
|
+
created_by: Joi.string().allow(""),
|
|
1917
|
+
modified_by: Joi.string().allow(""),
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1833
1921
|
/** @returns {ValidationError} */
|
|
1834
1922
|
static ValidationError() {
|
|
1835
1923
|
return Joi.object({
|
|
@@ -178,6 +178,7 @@ export = ServiceabilityPlatformModel;
|
|
|
178
178
|
* @property {ListViewItems[]} items - List of zone items, each representing a
|
|
179
179
|
* zone's details.
|
|
180
180
|
* @property {Page} page
|
|
181
|
+
* @property {FoDetails} [fo_details]
|
|
181
182
|
*/
|
|
182
183
|
/**
|
|
183
184
|
* @typedef GetZoneByIdSchema
|
|
@@ -1304,6 +1305,9 @@ export = ServiceabilityPlatformModel;
|
|
|
1304
1305
|
* in the courier partner shipment.
|
|
1305
1306
|
* @property {boolean} is_mto - A boolean indicating if the courier partner
|
|
1306
1307
|
* supports Made to Order service.
|
|
1308
|
+
* @property {boolean} [is_mps] - Indicates if shipment configuration is
|
|
1309
|
+
* multi-part shipment or single shipment.
|
|
1310
|
+
* @property {boolean} [is_b2b] - Indicates if the shipment is business-to-business.
|
|
1307
1311
|
* @property {string[]} ignore_scheme_ids - A list of scheme_id which we want to
|
|
1308
1312
|
* ignore in courier_partner assignment.
|
|
1309
1313
|
* @property {Object} [error] - Error Details
|
|
@@ -1974,6 +1978,15 @@ export = ServiceabilityPlatformModel;
|
|
|
1974
1978
|
* @property {string} [name] - Name of the region.
|
|
1975
1979
|
* @property {number} [count] - Count of items in the region.
|
|
1976
1980
|
*/
|
|
1981
|
+
/**
|
|
1982
|
+
* @typedef FoDetails
|
|
1983
|
+
* @property {string} serviceability_type - Serviceability strategy configured
|
|
1984
|
+
* for the fulfillment option. `zone_based` corresponds to the "Restrict to
|
|
1985
|
+
* Zones" strategy and `all` to "Ship to All".
|
|
1986
|
+
* @property {number} active_non_default_zone_count - Number of active,
|
|
1987
|
+
* non-default zones (excluding zones still in progress) mapped to this
|
|
1988
|
+
* fulfillment option.
|
|
1989
|
+
*/
|
|
1977
1990
|
/**
|
|
1978
1991
|
* @typedef ZoneStores
|
|
1979
1992
|
* @property {Object} type - Type of zone store.
|
|
@@ -2887,7 +2900,7 @@ export = ServiceabilityPlatformModel;
|
|
|
2887
2900
|
declare class ServiceabilityPlatformModel {
|
|
2888
2901
|
}
|
|
2889
2902
|
declare namespace ServiceabilityPlatformModel {
|
|
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 };
|
|
2903
|
+
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, FoDetails, 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 };
|
|
2891
2904
|
}
|
|
2892
2905
|
/** @returns {GenerateShipmentsAndCourierPartnerResult} */
|
|
2893
2906
|
declare function GenerateShipmentsAndCourierPartnerResult(): GenerateShipmentsAndCourierPartnerResult;
|
|
@@ -3323,6 +3336,7 @@ type ListViewSchema = {
|
|
|
3323
3336
|
*/
|
|
3324
3337
|
items: ListViewItems[];
|
|
3325
3338
|
page: Page;
|
|
3339
|
+
fo_details?: FoDetails;
|
|
3326
3340
|
};
|
|
3327
3341
|
/** @returns {GetZoneByIdSchema} */
|
|
3328
3342
|
declare function GetZoneByIdSchema(): GetZoneByIdSchema;
|
|
@@ -6122,6 +6136,15 @@ type CourierPartnerShipments = {
|
|
|
6122
6136
|
* supports Made to Order service.
|
|
6123
6137
|
*/
|
|
6124
6138
|
is_mto: boolean;
|
|
6139
|
+
/**
|
|
6140
|
+
* - Indicates if shipment configuration is
|
|
6141
|
+
* multi-part shipment or single shipment.
|
|
6142
|
+
*/
|
|
6143
|
+
is_mps?: boolean;
|
|
6144
|
+
/**
|
|
6145
|
+
* - Indicates if the shipment is business-to-business.
|
|
6146
|
+
*/
|
|
6147
|
+
is_b2b?: boolean;
|
|
6125
6148
|
/**
|
|
6126
6149
|
* - A list of scheme_id which we want to
|
|
6127
6150
|
* ignore in courier_partner assignment.
|
|
@@ -7859,6 +7882,22 @@ type RegionSchema = {
|
|
|
7859
7882
|
*/
|
|
7860
7883
|
count?: number;
|
|
7861
7884
|
};
|
|
7885
|
+
/** @returns {FoDetails} */
|
|
7886
|
+
declare function FoDetails(): FoDetails;
|
|
7887
|
+
type FoDetails = {
|
|
7888
|
+
/**
|
|
7889
|
+
* - Serviceability strategy configured
|
|
7890
|
+
* for the fulfillment option. `zone_based` corresponds to the "Restrict to
|
|
7891
|
+
* Zones" strategy and `all` to "Ship to All".
|
|
7892
|
+
*/
|
|
7893
|
+
serviceability_type: string;
|
|
7894
|
+
/**
|
|
7895
|
+
* - Number of active,
|
|
7896
|
+
* non-default zones (excluding zones still in progress) mapped to this
|
|
7897
|
+
* fulfillment option.
|
|
7898
|
+
*/
|
|
7899
|
+
active_non_default_zone_count: number;
|
|
7900
|
+
};
|
|
7862
7901
|
/** @returns {ZoneStores} */
|
|
7863
7902
|
declare function ZoneStores(): ZoneStores;
|
|
7864
7903
|
type ZoneStores = {
|
|
@@ -199,6 +199,7 @@ const Joi = require("joi");
|
|
|
199
199
|
* @property {ListViewItems[]} items - List of zone items, each representing a
|
|
200
200
|
* zone's details.
|
|
201
201
|
* @property {Page} page
|
|
202
|
+
* @property {FoDetails} [fo_details]
|
|
202
203
|
*/
|
|
203
204
|
|
|
204
205
|
/**
|
|
@@ -1426,6 +1427,9 @@ const Joi = require("joi");
|
|
|
1426
1427
|
* in the courier partner shipment.
|
|
1427
1428
|
* @property {boolean} is_mto - A boolean indicating if the courier partner
|
|
1428
1429
|
* supports Made to Order service.
|
|
1430
|
+
* @property {boolean} [is_mps] - Indicates if shipment configuration is
|
|
1431
|
+
* multi-part shipment or single shipment.
|
|
1432
|
+
* @property {boolean} [is_b2b] - Indicates if the shipment is business-to-business.
|
|
1429
1433
|
* @property {string[]} ignore_scheme_ids - A list of scheme_id which we want to
|
|
1430
1434
|
* ignore in courier_partner assignment.
|
|
1431
1435
|
* @property {Object} [error] - Error Details
|
|
@@ -2168,6 +2172,16 @@ const Joi = require("joi");
|
|
|
2168
2172
|
* @property {number} [count] - Count of items in the region.
|
|
2169
2173
|
*/
|
|
2170
2174
|
|
|
2175
|
+
/**
|
|
2176
|
+
* @typedef FoDetails
|
|
2177
|
+
* @property {string} serviceability_type - Serviceability strategy configured
|
|
2178
|
+
* for the fulfillment option. `zone_based` corresponds to the "Restrict to
|
|
2179
|
+
* Zones" strategy and `all` to "Ship to All".
|
|
2180
|
+
* @property {number} active_non_default_zone_count - Number of active,
|
|
2181
|
+
* non-default zones (excluding zones still in progress) mapped to this
|
|
2182
|
+
* fulfillment option.
|
|
2183
|
+
*/
|
|
2184
|
+
|
|
2171
2185
|
/**
|
|
2172
2186
|
* @typedef ZoneStores
|
|
2173
2187
|
* @property {Object} type - Type of zone store.
|
|
@@ -3419,6 +3433,7 @@ class ServiceabilityPlatformModel {
|
|
|
3419
3433
|
.items(ServiceabilityPlatformModel.ListViewItems())
|
|
3420
3434
|
.required(),
|
|
3421
3435
|
page: ServiceabilityPlatformModel.Page().required(),
|
|
3436
|
+
fo_details: ServiceabilityPlatformModel.FoDetails(),
|
|
3422
3437
|
});
|
|
3423
3438
|
}
|
|
3424
3439
|
|
|
@@ -4715,6 +4730,8 @@ class ServiceabilityPlatformModel {
|
|
|
4715
4730
|
.items(ServiceabilityPlatformModel.CourierPartnerShipmentsArticles())
|
|
4716
4731
|
.required(),
|
|
4717
4732
|
is_mto: Joi.boolean().required(),
|
|
4733
|
+
is_mps: Joi.boolean(),
|
|
4734
|
+
is_b2b: Joi.boolean(),
|
|
4718
4735
|
ignore_scheme_ids: Joi.array().items(Joi.string().allow("")).required(),
|
|
4719
4736
|
error: Joi.object().pattern(/\S/, Joi.any()),
|
|
4720
4737
|
});
|
|
@@ -5539,6 +5556,14 @@ class ServiceabilityPlatformModel {
|
|
|
5539
5556
|
});
|
|
5540
5557
|
}
|
|
5541
5558
|
|
|
5559
|
+
/** @returns {FoDetails} */
|
|
5560
|
+
static FoDetails() {
|
|
5561
|
+
return Joi.object({
|
|
5562
|
+
serviceability_type: Joi.string().allow("").required(),
|
|
5563
|
+
active_non_default_zone_count: Joi.number().required(),
|
|
5564
|
+
});
|
|
5565
|
+
}
|
|
5566
|
+
|
|
5542
5567
|
/** @returns {ZoneStores} */
|
|
5543
5568
|
static ZoneStores() {
|
|
5544
5569
|
return Joi.object({
|