@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
- package/sdk/application/Content/ContentApplicationModel.js +4 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformModel.js +6 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
- package/sdk/platform/Order/OrderPlatformModel.js +47 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
- package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
|
@@ -20,19 +20,9 @@ const Joi = require("joi");
|
|
|
20
20
|
* @property {string} [payable_by] - Promo amount bearable party
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* @typedef FreeGiftItem
|
|
25
|
-
* @property {string} [item_slug] - Item slug
|
|
26
|
-
* @property {string} [item_name] - Item name
|
|
27
|
-
* @property {Object} [item_price_details] - Item price details
|
|
28
|
-
* @property {string} [item_brand_name] - Item brand name
|
|
29
|
-
* @property {number} [item_id] - Item id
|
|
30
|
-
* @property {string[]} [item_images_url] - Item images URL
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
23
|
/**
|
|
34
24
|
* @typedef AppliedFreeArticles
|
|
35
|
-
* @property {
|
|
25
|
+
* @property {FreeGiftItems} [free_gift_item_details] - Free gift items details
|
|
36
26
|
* @property {string} [parent_item_identifier] - Parent item identifier for free article
|
|
37
27
|
* @property {number} [quantity] - Free article quantity
|
|
38
28
|
* @property {string} [article_id] - Free article id
|
|
@@ -433,6 +423,7 @@ const Joi = require("joi");
|
|
|
433
423
|
* @property {string} [coupon_text]
|
|
434
424
|
* @property {boolean} [buy_now]
|
|
435
425
|
* @property {Object} [pan_config]
|
|
426
|
+
* @property {Object} [custom_cart_meta]
|
|
436
427
|
*/
|
|
437
428
|
|
|
438
429
|
/**
|
|
@@ -537,6 +528,8 @@ const Joi = require("joi");
|
|
|
537
528
|
* @property {string} [start_date]
|
|
538
529
|
* @property {string} [end_date]
|
|
539
530
|
* @property {string} [coupon_applicable_message]
|
|
531
|
+
* @property {string} [offer_text]
|
|
532
|
+
* @property {boolean} [is_bank_offer]
|
|
540
533
|
*/
|
|
541
534
|
|
|
542
535
|
/**
|
|
@@ -729,6 +722,7 @@ const Joi = require("joi");
|
|
|
729
722
|
* @property {string} [comment]
|
|
730
723
|
* @property {boolean} [buy_now]
|
|
731
724
|
* @property {string} [uid]
|
|
725
|
+
* @property {Object} [custom_cart_meta]
|
|
732
726
|
*/
|
|
733
727
|
|
|
734
728
|
/**
|
|
@@ -812,6 +806,7 @@ const Joi = require("joi");
|
|
|
812
806
|
* @property {string} [coupon_text]
|
|
813
807
|
* @property {boolean} [buy_now]
|
|
814
808
|
* @property {number} [cod_charges]
|
|
809
|
+
* @property {Object} [custom_cart_meta]
|
|
815
810
|
*/
|
|
816
811
|
|
|
817
812
|
/**
|
|
@@ -846,6 +841,7 @@ const Joi = require("joi");
|
|
|
846
841
|
* @property {string} [checkout_mode]
|
|
847
842
|
* @property {string} [comment]
|
|
848
843
|
* @property {string} [gstin]
|
|
844
|
+
* @property {Object} [custom_cart_meta]
|
|
849
845
|
*/
|
|
850
846
|
|
|
851
847
|
/**
|
|
@@ -902,6 +898,7 @@ const Joi = require("joi");
|
|
|
902
898
|
* @property {CartCurrency} [currency]
|
|
903
899
|
* @property {string} [coupon_text]
|
|
904
900
|
* @property {boolean} [buy_now]
|
|
901
|
+
* @property {Object} [custom_cart_meta]
|
|
905
902
|
*/
|
|
906
903
|
|
|
907
904
|
/**
|
|
@@ -910,11 +907,24 @@ const Joi = require("joi");
|
|
|
910
907
|
* @property {SharedCart} [cart]
|
|
911
908
|
*/
|
|
912
909
|
|
|
910
|
+
/**
|
|
911
|
+
* @typedef PriceMinMax
|
|
912
|
+
* @property {number} [min]
|
|
913
|
+
* @property {number} [max]
|
|
914
|
+
*/
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* @typedef ItemPriceDetails
|
|
918
|
+
* @property {PriceMinMax} [marked]
|
|
919
|
+
* @property {PriceMinMax} [effective]
|
|
920
|
+
* @property {string} [currency]
|
|
921
|
+
*/
|
|
922
|
+
|
|
913
923
|
/**
|
|
914
924
|
* @typedef FreeGiftItems
|
|
915
925
|
* @property {string} [item_slug] - Item slug
|
|
916
926
|
* @property {string} [item_name] - Item name
|
|
917
|
-
* @property {
|
|
927
|
+
* @property {ItemPriceDetails} [item_price_details]
|
|
918
928
|
* @property {string} [item_brand_name] - Item brand name
|
|
919
929
|
* @property {number} [item_id] - Item id
|
|
920
930
|
* @property {string[]} [item_images_url] - Item images URL
|
|
@@ -925,6 +935,8 @@ const Joi = require("joi");
|
|
|
925
935
|
* @property {string} [id] - Promotion id
|
|
926
936
|
* @property {Object} [buy_rules] - Buy rules of promotions
|
|
927
937
|
* @property {string} [offer_text] - Offer title
|
|
938
|
+
* @property {string} [promotion_type] - Promotion type
|
|
939
|
+
* @property {string} [promotion_name] - Name of the promotion
|
|
928
940
|
* @property {string} [promotion_group] - Group of promotion belongs to
|
|
929
941
|
* @property {string} [valid_till] - Datetime ISOString for promotion end date
|
|
930
942
|
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
@@ -937,6 +949,26 @@ const Joi = require("joi");
|
|
|
937
949
|
* @property {PromotionOffer[]} [available_promotions]
|
|
938
950
|
*/
|
|
939
951
|
|
|
952
|
+
/**
|
|
953
|
+
* @typedef PromotionPaymentOffer
|
|
954
|
+
* @property {string} [application_id] - Application id
|
|
955
|
+
* @property {Object[]} [buy_rules] - Buy rules of promotions
|
|
956
|
+
* @property {string} [calculate_on] - Price on which promotion calculated
|
|
957
|
+
* @property {string} [description] - Offer details including T&C
|
|
958
|
+
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
959
|
+
* @property {string} [id] - Promotion id
|
|
960
|
+
* @property {string} [offer_text] - Offer title
|
|
961
|
+
* @property {string} [promotion_group] - Group of promotion belongs to
|
|
962
|
+
* @property {string} [promotion_type] - Promotion type
|
|
963
|
+
* @property {string} [promotion_name] - Name of the promotion
|
|
964
|
+
*/
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* @typedef PromotionPaymentOffersResponse
|
|
968
|
+
* @property {boolean} [success]
|
|
969
|
+
* @property {PromotionPaymentOffer[]} [promotions]
|
|
970
|
+
*/
|
|
971
|
+
|
|
940
972
|
/**
|
|
941
973
|
* @typedef OperationErrorResponse
|
|
942
974
|
* @property {string} [message]
|
|
@@ -1064,22 +1096,10 @@ class CartApplicationModel {
|
|
|
1064
1096
|
});
|
|
1065
1097
|
}
|
|
1066
1098
|
|
|
1067
|
-
/** @returns {FreeGiftItem} */
|
|
1068
|
-
static FreeGiftItem() {
|
|
1069
|
-
return Joi.object({
|
|
1070
|
-
item_slug: Joi.string().allow(""),
|
|
1071
|
-
item_name: Joi.string().allow(""),
|
|
1072
|
-
item_price_details: Joi.any(),
|
|
1073
|
-
item_brand_name: Joi.string().allow(""),
|
|
1074
|
-
item_id: Joi.number(),
|
|
1075
|
-
item_images_url: Joi.array().items(Joi.string().allow("")),
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
1099
|
/** @returns {AppliedFreeArticles} */
|
|
1080
1100
|
static AppliedFreeArticles() {
|
|
1081
1101
|
return Joi.object({
|
|
1082
|
-
free_gift_item_details: CartApplicationModel.
|
|
1102
|
+
free_gift_item_details: CartApplicationModel.FreeGiftItems(),
|
|
1083
1103
|
parent_item_identifier: Joi.string().allow(""),
|
|
1084
1104
|
quantity: Joi.number(),
|
|
1085
1105
|
article_id: Joi.string().allow(""),
|
|
@@ -1564,6 +1584,7 @@ class CartApplicationModel {
|
|
|
1564
1584
|
coupon_text: Joi.string().allow(""),
|
|
1565
1585
|
buy_now: Joi.boolean(),
|
|
1566
1586
|
pan_config: Joi.any(),
|
|
1587
|
+
custom_cart_meta: Joi.any(),
|
|
1567
1588
|
});
|
|
1568
1589
|
}
|
|
1569
1590
|
|
|
@@ -1686,6 +1707,8 @@ class CartApplicationModel {
|
|
|
1686
1707
|
start_date: Joi.string().allow("").allow(null),
|
|
1687
1708
|
end_date: Joi.string().allow("").allow(null),
|
|
1688
1709
|
coupon_applicable_message: Joi.string().allow(""),
|
|
1710
|
+
offer_text: Joi.string().allow(""),
|
|
1711
|
+
is_bank_offer: Joi.boolean(),
|
|
1689
1712
|
});
|
|
1690
1713
|
}
|
|
1691
1714
|
|
|
@@ -1915,6 +1938,7 @@ class CartApplicationModel {
|
|
|
1915
1938
|
comment: Joi.string().allow(""),
|
|
1916
1939
|
buy_now: Joi.boolean(),
|
|
1917
1940
|
uid: Joi.string().allow(""),
|
|
1941
|
+
custom_cart_meta: Joi.any(),
|
|
1918
1942
|
});
|
|
1919
1943
|
}
|
|
1920
1944
|
|
|
@@ -2010,6 +2034,7 @@ class CartApplicationModel {
|
|
|
2010
2034
|
coupon_text: Joi.string().allow(""),
|
|
2011
2035
|
buy_now: Joi.boolean(),
|
|
2012
2036
|
cod_charges: Joi.number(),
|
|
2037
|
+
custom_cart_meta: Joi.any(),
|
|
2013
2038
|
});
|
|
2014
2039
|
}
|
|
2015
2040
|
|
|
@@ -2051,6 +2076,7 @@ class CartApplicationModel {
|
|
|
2051
2076
|
checkout_mode: Joi.string().allow(""),
|
|
2052
2077
|
comment: Joi.string().allow(""),
|
|
2053
2078
|
gstin: Joi.string().allow(""),
|
|
2079
|
+
custom_cart_meta: Joi.any(),
|
|
2054
2080
|
});
|
|
2055
2081
|
}
|
|
2056
2082
|
|
|
@@ -2118,6 +2144,7 @@ class CartApplicationModel {
|
|
|
2118
2144
|
currency: CartApplicationModel.CartCurrency(),
|
|
2119
2145
|
coupon_text: Joi.string().allow(""),
|
|
2120
2146
|
buy_now: Joi.boolean(),
|
|
2147
|
+
custom_cart_meta: Joi.any(),
|
|
2121
2148
|
});
|
|
2122
2149
|
}
|
|
2123
2150
|
|
|
@@ -2129,12 +2156,29 @@ class CartApplicationModel {
|
|
|
2129
2156
|
});
|
|
2130
2157
|
}
|
|
2131
2158
|
|
|
2159
|
+
/** @returns {PriceMinMax} */
|
|
2160
|
+
static PriceMinMax() {
|
|
2161
|
+
return Joi.object({
|
|
2162
|
+
min: Joi.number(),
|
|
2163
|
+
max: Joi.number(),
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/** @returns {ItemPriceDetails} */
|
|
2168
|
+
static ItemPriceDetails() {
|
|
2169
|
+
return Joi.object({
|
|
2170
|
+
marked: CartApplicationModel.PriceMinMax(),
|
|
2171
|
+
effective: CartApplicationModel.PriceMinMax(),
|
|
2172
|
+
currency: Joi.string().allow(""),
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2132
2176
|
/** @returns {FreeGiftItems} */
|
|
2133
2177
|
static FreeGiftItems() {
|
|
2134
2178
|
return Joi.object({
|
|
2135
2179
|
item_slug: Joi.string().allow(""),
|
|
2136
2180
|
item_name: Joi.string().allow(""),
|
|
2137
|
-
item_price_details:
|
|
2181
|
+
item_price_details: CartApplicationModel.ItemPriceDetails(),
|
|
2138
2182
|
item_brand_name: Joi.string().allow(""),
|
|
2139
2183
|
item_id: Joi.number(),
|
|
2140
2184
|
item_images_url: Joi.array().items(Joi.string().allow("")),
|
|
@@ -2147,6 +2191,8 @@ class CartApplicationModel {
|
|
|
2147
2191
|
id: Joi.string().allow(""),
|
|
2148
2192
|
buy_rules: Joi.any(),
|
|
2149
2193
|
offer_text: Joi.string().allow(""),
|
|
2194
|
+
promotion_type: Joi.string().allow(""),
|
|
2195
|
+
promotion_name: Joi.string().allow(""),
|
|
2150
2196
|
promotion_group: Joi.string().allow(""),
|
|
2151
2197
|
valid_till: Joi.string().allow(""),
|
|
2152
2198
|
discount_rules: Joi.array().items(Joi.any()),
|
|
@@ -2164,6 +2210,32 @@ class CartApplicationModel {
|
|
|
2164
2210
|
});
|
|
2165
2211
|
}
|
|
2166
2212
|
|
|
2213
|
+
/** @returns {PromotionPaymentOffer} */
|
|
2214
|
+
static PromotionPaymentOffer() {
|
|
2215
|
+
return Joi.object({
|
|
2216
|
+
application_id: Joi.string().allow(""),
|
|
2217
|
+
buy_rules: Joi.array().items(Joi.any()),
|
|
2218
|
+
calculate_on: Joi.string().allow(""),
|
|
2219
|
+
description: Joi.string().allow(""),
|
|
2220
|
+
discount_rules: Joi.array().items(Joi.any()),
|
|
2221
|
+
id: Joi.string().allow(""),
|
|
2222
|
+
offer_text: Joi.string().allow(""),
|
|
2223
|
+
promotion_group: Joi.string().allow(""),
|
|
2224
|
+
promotion_type: Joi.string().allow(""),
|
|
2225
|
+
promotion_name: Joi.string().allow(""),
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/** @returns {PromotionPaymentOffersResponse} */
|
|
2230
|
+
static PromotionPaymentOffersResponse() {
|
|
2231
|
+
return Joi.object({
|
|
2232
|
+
success: Joi.boolean(),
|
|
2233
|
+
promotions: Joi.array().items(
|
|
2234
|
+
CartApplicationModel.PromotionPaymentOffer()
|
|
2235
|
+
),
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2167
2239
|
/** @returns {OperationErrorResponse} */
|
|
2168
2240
|
static OperationErrorResponse() {
|
|
2169
2241
|
return Joi.object({
|
|
@@ -13,6 +13,9 @@ export = CartApplicationValidator;
|
|
|
13
13
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
14
14
|
* set/initialize buy now cart
|
|
15
15
|
* @property {string} [id] - The unique identifier of the cart
|
|
16
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
17
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
18
|
+
* wants the handover of an order at the store itself.
|
|
16
19
|
* @property {CartApplicationModel.AddCartRequest} body
|
|
17
20
|
*/
|
|
18
21
|
/**
|
|
@@ -92,6 +95,9 @@ export = CartApplicationValidator;
|
|
|
92
95
|
* @property {string} [areaCode] - Customer servicable area_code
|
|
93
96
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
94
97
|
* set/initialize buy now cart
|
|
98
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
99
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
100
|
+
* wants the handover of an order at the store itself.
|
|
95
101
|
*/
|
|
96
102
|
/**
|
|
97
103
|
* @typedef GetCartLastModifiedParam
|
|
@@ -138,6 +144,11 @@ export = CartApplicationValidator;
|
|
|
138
144
|
* @property {number} [storeId] - Store id
|
|
139
145
|
* @property {string} [cartType] - The type of cart
|
|
140
146
|
*/
|
|
147
|
+
/**
|
|
148
|
+
* @typedef GetPromotionPaymentOffersParam
|
|
149
|
+
* @property {string} [id] - Cart id
|
|
150
|
+
* @property {number} [uid] - Cart uid
|
|
151
|
+
*/
|
|
141
152
|
/**
|
|
142
153
|
* @typedef GetShipmentsParam
|
|
143
154
|
* @property {boolean} [p] - This is a boolean value. Select `true` for getting
|
|
@@ -190,6 +201,9 @@ export = CartApplicationValidator;
|
|
|
190
201
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
191
202
|
* set/initialize buy now cart
|
|
192
203
|
* @property {string} [cartType] - The type of cart
|
|
204
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
205
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
206
|
+
* wants the handover of an order at the store itself.
|
|
193
207
|
* @property {CartApplicationModel.UpdateCartRequest} body
|
|
194
208
|
*/
|
|
195
209
|
/**
|
|
@@ -256,6 +270,8 @@ declare class CartApplicationValidator {
|
|
|
256
270
|
static getLadderOffers(): GetLadderOffersParam;
|
|
257
271
|
/** @returns {GetPromotionOffersParam} */
|
|
258
272
|
static getPromotionOffers(): GetPromotionOffersParam;
|
|
273
|
+
/** @returns {GetPromotionPaymentOffersParam} */
|
|
274
|
+
static getPromotionPaymentOffers(): GetPromotionPaymentOffersParam;
|
|
259
275
|
/** @returns {GetShipmentsParam} */
|
|
260
276
|
static getShipments(): GetShipmentsParam;
|
|
261
277
|
/** @returns {RemoveAddressParam} */
|
|
@@ -278,7 +294,7 @@ declare class CartApplicationValidator {
|
|
|
278
294
|
static validateCouponForPayment(): ValidateCouponForPaymentParam;
|
|
279
295
|
}
|
|
280
296
|
declare namespace CartApplicationValidator {
|
|
281
|
-
export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam };
|
|
297
|
+
export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetPromotionPaymentOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam };
|
|
282
298
|
}
|
|
283
299
|
type AddAddressParam = {
|
|
284
300
|
body: CartApplicationModel.Address;
|
|
@@ -307,6 +323,12 @@ type AddItemsParam = {
|
|
|
307
323
|
* - The unique identifier of the cart
|
|
308
324
|
*/
|
|
309
325
|
id?: string;
|
|
326
|
+
/**
|
|
327
|
+
* - The order type of shipment HomeDelivery - If
|
|
328
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
329
|
+
* wants the handover of an order at the store itself.
|
|
330
|
+
*/
|
|
331
|
+
orderType?: string;
|
|
310
332
|
body: CartApplicationModel.AddCartRequest;
|
|
311
333
|
};
|
|
312
334
|
type ApplyCouponParam = {
|
|
@@ -437,6 +459,12 @@ type GetCartParam = {
|
|
|
437
459
|
* set/initialize buy now cart
|
|
438
460
|
*/
|
|
439
461
|
buyNow?: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* - The order type of shipment HomeDelivery - If
|
|
464
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
465
|
+
* wants the handover of an order at the store itself.
|
|
466
|
+
*/
|
|
467
|
+
orderType?: string;
|
|
440
468
|
};
|
|
441
469
|
type GetCartLastModifiedParam = {
|
|
442
470
|
id?: string;
|
|
@@ -509,6 +537,16 @@ type GetPromotionOffersParam = {
|
|
|
509
537
|
*/
|
|
510
538
|
cartType?: string;
|
|
511
539
|
};
|
|
540
|
+
type GetPromotionPaymentOffersParam = {
|
|
541
|
+
/**
|
|
542
|
+
* - Cart id
|
|
543
|
+
*/
|
|
544
|
+
id?: string;
|
|
545
|
+
/**
|
|
546
|
+
* - Cart uid
|
|
547
|
+
*/
|
|
548
|
+
uid?: number;
|
|
549
|
+
};
|
|
512
550
|
type GetShipmentsParam = {
|
|
513
551
|
/**
|
|
514
552
|
* - This is a boolean value. Select `true` for getting
|
|
@@ -599,6 +637,12 @@ type UpdateCartParam = {
|
|
|
599
637
|
* - The type of cart
|
|
600
638
|
*/
|
|
601
639
|
cartType?: string;
|
|
640
|
+
/**
|
|
641
|
+
* - The order type of shipment HomeDelivery - If
|
|
642
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
643
|
+
* wants the handover of an order at the store itself.
|
|
644
|
+
*/
|
|
645
|
+
orderType?: string;
|
|
602
646
|
body: CartApplicationModel.UpdateCartRequest;
|
|
603
647
|
};
|
|
604
648
|
type UpdateCartMetaParam = {
|
|
@@ -17,6 +17,9 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
17
17
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
18
18
|
* set/initialize buy now cart
|
|
19
19
|
* @property {string} [id] - The unique identifier of the cart
|
|
20
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
21
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
22
|
+
* wants the handover of an order at the store itself.
|
|
20
23
|
* @property {CartApplicationModel.AddCartRequest} body
|
|
21
24
|
*/
|
|
22
25
|
|
|
@@ -105,6 +108,9 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
105
108
|
* @property {string} [areaCode] - Customer servicable area_code
|
|
106
109
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
107
110
|
* set/initialize buy now cart
|
|
111
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
112
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
113
|
+
* wants the handover of an order at the store itself.
|
|
108
114
|
*/
|
|
109
115
|
|
|
110
116
|
/**
|
|
@@ -159,6 +165,12 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
159
165
|
* @property {string} [cartType] - The type of cart
|
|
160
166
|
*/
|
|
161
167
|
|
|
168
|
+
/**
|
|
169
|
+
* @typedef GetPromotionPaymentOffersParam
|
|
170
|
+
* @property {string} [id] - Cart id
|
|
171
|
+
* @property {number} [uid] - Cart uid
|
|
172
|
+
*/
|
|
173
|
+
|
|
162
174
|
/**
|
|
163
175
|
* @typedef GetShipmentsParam
|
|
164
176
|
* @property {boolean} [p] - This is a boolean value. Select `true` for getting
|
|
@@ -217,6 +229,9 @@ const CartApplicationModel = require("./CartApplicationModel");
|
|
|
217
229
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
218
230
|
* set/initialize buy now cart
|
|
219
231
|
* @property {string} [cartType] - The type of cart
|
|
232
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
233
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
234
|
+
* wants the handover of an order at the store itself.
|
|
220
235
|
* @property {CartApplicationModel.UpdateCartRequest} body
|
|
221
236
|
*/
|
|
222
237
|
|
|
@@ -266,6 +281,7 @@ class CartApplicationValidator {
|
|
|
266
281
|
areaCode: Joi.string().allow(""),
|
|
267
282
|
buyNow: Joi.boolean(),
|
|
268
283
|
id: Joi.string().allow(""),
|
|
284
|
+
orderType: Joi.string().allow(""),
|
|
269
285
|
body: CartApplicationModel.AddCartRequest().required(),
|
|
270
286
|
}).required();
|
|
271
287
|
}
|
|
@@ -364,6 +380,7 @@ class CartApplicationValidator {
|
|
|
364
380
|
assignCardId: Joi.number(),
|
|
365
381
|
areaCode: Joi.string().allow(""),
|
|
366
382
|
buyNow: Joi.boolean(),
|
|
383
|
+
orderType: Joi.string().allow(""),
|
|
367
384
|
});
|
|
368
385
|
}
|
|
369
386
|
|
|
@@ -427,6 +444,14 @@ class CartApplicationValidator {
|
|
|
427
444
|
});
|
|
428
445
|
}
|
|
429
446
|
|
|
447
|
+
/** @returns {GetPromotionPaymentOffersParam} */
|
|
448
|
+
static getPromotionPaymentOffers() {
|
|
449
|
+
return Joi.object({
|
|
450
|
+
id: Joi.string().allow(""),
|
|
451
|
+
uid: Joi.number(),
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
|
|
430
455
|
/** @returns {GetShipmentsParam} */
|
|
431
456
|
static getShipments() {
|
|
432
457
|
return Joi.object({
|
|
@@ -491,6 +516,7 @@ class CartApplicationValidator {
|
|
|
491
516
|
areaCode: Joi.string().allow(""),
|
|
492
517
|
buyNow: Joi.boolean(),
|
|
493
518
|
cartType: Joi.string().allow(""),
|
|
519
|
+
orderType: Joi.string().allow(""),
|
|
494
520
|
body: CartApplicationModel.UpdateCartRequest().required(),
|
|
495
521
|
}).required();
|
|
496
522
|
}
|
|
@@ -162,7 +162,7 @@ export = CatalogApplicationModel;
|
|
|
162
162
|
*/
|
|
163
163
|
/**
|
|
164
164
|
* @typedef DiscountMeta
|
|
165
|
-
* @property {boolean} timer - Determines whether the discount countdown is
|
|
165
|
+
* @property {boolean} [timer] - Determines whether the discount countdown is
|
|
166
166
|
* visible or not.
|
|
167
167
|
* @property {number} [start_timer_in_minutes] - The time in minutes before the
|
|
168
168
|
* discount ends when the countdown timer should start.
|
|
@@ -274,6 +274,7 @@ export = CatalogApplicationModel;
|
|
|
274
274
|
* @typedef ProductVariantResponse
|
|
275
275
|
* @property {string} [display_type]
|
|
276
276
|
* @property {string} [header]
|
|
277
|
+
* @property {string} [group_id]
|
|
277
278
|
* @property {ProductVariantItemResponse[]} [items]
|
|
278
279
|
* @property {string} [key]
|
|
279
280
|
* @property {string} [logo]
|
|
@@ -1233,7 +1234,7 @@ type DiscountMeta = {
|
|
|
1233
1234
|
* - Determines whether the discount countdown is
|
|
1234
1235
|
* visible or not.
|
|
1235
1236
|
*/
|
|
1236
|
-
timer
|
|
1237
|
+
timer?: boolean;
|
|
1237
1238
|
/**
|
|
1238
1239
|
* - The time in minutes before the
|
|
1239
1240
|
* discount ends when the countdown timer should start.
|
|
@@ -1367,6 +1368,7 @@ declare function ProductVariantResponse(): ProductVariantResponse;
|
|
|
1367
1368
|
type ProductVariantResponse = {
|
|
1368
1369
|
display_type?: string;
|
|
1369
1370
|
header?: string;
|
|
1371
|
+
group_id?: string;
|
|
1370
1372
|
items?: ProductVariantItemResponse[];
|
|
1371
1373
|
key?: string;
|
|
1372
1374
|
logo?: string;
|
|
@@ -184,7 +184,7 @@ const Joi = require("joi");
|
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* @typedef DiscountMeta
|
|
187
|
-
* @property {boolean} timer - Determines whether the discount countdown is
|
|
187
|
+
* @property {boolean} [timer] - Determines whether the discount countdown is
|
|
188
188
|
* visible or not.
|
|
189
189
|
* @property {number} [start_timer_in_minutes] - The time in minutes before the
|
|
190
190
|
* discount ends when the countdown timer should start.
|
|
@@ -310,6 +310,7 @@ const Joi = require("joi");
|
|
|
310
310
|
* @typedef ProductVariantResponse
|
|
311
311
|
* @property {string} [display_type]
|
|
312
312
|
* @property {string} [header]
|
|
313
|
+
* @property {string} [group_id]
|
|
313
314
|
* @property {ProductVariantItemResponse[]} [items]
|
|
314
315
|
* @property {string} [key]
|
|
315
316
|
* @property {string} [logo]
|
|
@@ -1326,7 +1327,7 @@ class CatalogApplicationModel {
|
|
|
1326
1327
|
/** @returns {DiscountMeta} */
|
|
1327
1328
|
static DiscountMeta() {
|
|
1328
1329
|
return Joi.object({
|
|
1329
|
-
timer: Joi.boolean()
|
|
1330
|
+
timer: Joi.boolean(),
|
|
1330
1331
|
start_timer_in_minutes: Joi.number(),
|
|
1331
1332
|
start: Joi.string().allow(""),
|
|
1332
1333
|
end: Joi.string().allow(""),
|
|
@@ -1484,6 +1485,7 @@ class CatalogApplicationModel {
|
|
|
1484
1485
|
return Joi.object({
|
|
1485
1486
|
display_type: Joi.string().allow(""),
|
|
1486
1487
|
header: Joi.string().allow(""),
|
|
1488
|
+
group_id: Joi.string().allow(""),
|
|
1487
1489
|
items: Joi.array().items(
|
|
1488
1490
|
CatalogApplicationModel.ProductVariantItemResponse()
|
|
1489
1491
|
),
|
|
@@ -59,7 +59,7 @@ declare class Content {
|
|
|
59
59
|
* @summary: List blogs
|
|
60
60
|
* @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
61
61
|
*/
|
|
62
|
-
getBlogs({ pageNo, pageSize, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
|
|
62
|
+
getBlogs({ pageNo, pageSize, tags, search, requestHeaders }?: ContentApplicationValidator.GetBlogsParam, { responseHeaders }?: object): Promise<ContentApplicationModel.BlogGetResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* @param {ContentApplicationValidator.GetCustomFieldsParam} arg - Arg object.
|
|
65
65
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -224,11 +224,11 @@ class Content {
|
|
|
224
224
|
* @description: List all the blogs against an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
225
225
|
*/
|
|
226
226
|
async getBlogs(
|
|
227
|
-
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
227
|
+
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
|
|
228
228
|
{ responseHeaders } = { responseHeaders: false }
|
|
229
229
|
) {
|
|
230
230
|
const { error } = ContentApplicationValidator.getBlogs().validate(
|
|
231
|
-
{ pageNo, pageSize },
|
|
231
|
+
{ pageNo, pageSize, tags, search },
|
|
232
232
|
{ abortEarly: false, allowUnknown: true }
|
|
233
233
|
);
|
|
234
234
|
if (error) {
|
|
@@ -237,7 +237,7 @@ class Content {
|
|
|
237
237
|
|
|
238
238
|
// Showing warrnings if extra unknown parameters are found
|
|
239
239
|
const { error: warrning } = ContentApplicationValidator.getBlogs().validate(
|
|
240
|
-
{ pageNo, pageSize },
|
|
240
|
+
{ pageNo, pageSize, tags, search },
|
|
241
241
|
{ abortEarly: false, allowUnknown: false }
|
|
242
242
|
);
|
|
243
243
|
if (warrning) {
|
|
@@ -250,6 +250,8 @@ class Content {
|
|
|
250
250
|
const query_params = {};
|
|
251
251
|
query_params["page_no"] = pageNo;
|
|
252
252
|
query_params["page_size"] = pageSize;
|
|
253
|
+
query_params["tags"] = tags;
|
|
254
|
+
query_params["search"] = search;
|
|
253
255
|
|
|
254
256
|
const xHeaders = {};
|
|
255
257
|
|
|
@@ -88,6 +88,7 @@ export = ContentApplicationModel;
|
|
|
88
88
|
* @typedef BlogGetResponse
|
|
89
89
|
* @property {BlogSchema[]} [items]
|
|
90
90
|
* @property {Page} [page]
|
|
91
|
+
* @property {string[]} [filters]
|
|
91
92
|
*/
|
|
92
93
|
/**
|
|
93
94
|
* @typedef ResourceContent
|
|
@@ -121,9 +122,9 @@ export = ContentApplicationModel;
|
|
|
121
122
|
* @property {string[]} [tags]
|
|
122
123
|
* @property {string} [publish_date]
|
|
123
124
|
* @property {SEO} [seo]
|
|
124
|
-
* @property {CronSchedule} [_schedule]
|
|
125
125
|
* @property {string} [title]
|
|
126
126
|
* @property {DateMeta} [date_meta]
|
|
127
|
+
* @property {string} [summary]
|
|
127
128
|
*/
|
|
128
129
|
/**
|
|
129
130
|
* @typedef SEO
|
|
@@ -390,13 +391,6 @@ export = ContentApplicationModel;
|
|
|
390
391
|
* @typedef CreatedBySchema
|
|
391
392
|
* @property {string} [id]
|
|
392
393
|
*/
|
|
393
|
-
/**
|
|
394
|
-
* @typedef CronSchedule
|
|
395
|
-
* @property {string} [cron]
|
|
396
|
-
* @property {string} [start]
|
|
397
|
-
* @property {string} [end]
|
|
398
|
-
* @property {number} [duration]
|
|
399
|
-
*/
|
|
400
394
|
/**
|
|
401
395
|
* @typedef SlideshowGetResponse
|
|
402
396
|
* @property {SlideshowSchema[]} [items]
|
|
@@ -589,7 +583,7 @@ export = ContentApplicationModel;
|
|
|
589
583
|
declare class ContentApplicationModel {
|
|
590
584
|
}
|
|
591
585
|
declare namespace ContentApplicationModel {
|
|
592
|
-
export { ApplicationLegal, ApplicationLegalFAQ, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, AnnouncementSchema, ScheduleStartSchema, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, LocaleLanguage, Language, Action, NavigationReference, ConfigurationSchema, SlideshowMedia, AnnouncementsResponseSchema, FaqResponseSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, FAQCategorySchema, FaqSchema, GetFaqSchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageSchema, NavigationGetResponse, Orientation, NavigationSchema, PageGetResponse, PageSchema, CreatedBySchema,
|
|
586
|
+
export { ApplicationLegal, ApplicationLegalFAQ, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, AnnouncementSchema, ScheduleStartSchema, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, LocaleLanguage, Language, Action, NavigationReference, ConfigurationSchema, SlideshowMedia, AnnouncementsResponseSchema, FaqResponseSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, FAQCategorySchema, FaqSchema, GetFaqSchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageSchema, NavigationGetResponse, Orientation, NavigationSchema, PageGetResponse, PageSchema, CreatedBySchema, SlideshowGetResponse, SlideshowSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, CustomObjectFieldValue, CustomObjectListItemDefinationSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseByResourceIdSchema, ActionPage, PageType };
|
|
593
587
|
}
|
|
594
588
|
/** @returns {ApplicationLegal} */
|
|
595
589
|
declare function ApplicationLegal(): ApplicationLegal;
|
|
@@ -693,6 +687,7 @@ declare function BlogGetResponse(): BlogGetResponse;
|
|
|
693
687
|
type BlogGetResponse = {
|
|
694
688
|
items?: BlogSchema[];
|
|
695
689
|
page?: Page;
|
|
690
|
+
filters?: string[];
|
|
696
691
|
};
|
|
697
692
|
/** @returns {ResourceContent} */
|
|
698
693
|
declare function ResourceContent(): ResourceContent;
|
|
@@ -730,9 +725,9 @@ type BlogSchema = {
|
|
|
730
725
|
tags?: string[];
|
|
731
726
|
publish_date?: string;
|
|
732
727
|
seo?: SEO;
|
|
733
|
-
_schedule?: CronSchedule;
|
|
734
728
|
title?: string;
|
|
735
729
|
date_meta?: DateMeta;
|
|
730
|
+
summary?: string;
|
|
736
731
|
};
|
|
737
732
|
/** @returns {SEO} */
|
|
738
733
|
declare function SEO(): SEO;
|
|
@@ -1043,14 +1038,6 @@ declare function CreatedBySchema(): CreatedBySchema;
|
|
|
1043
1038
|
type CreatedBySchema = {
|
|
1044
1039
|
id?: string;
|
|
1045
1040
|
};
|
|
1046
|
-
/** @returns {CronSchedule} */
|
|
1047
|
-
declare function CronSchedule(): CronSchedule;
|
|
1048
|
-
type CronSchedule = {
|
|
1049
|
-
cron?: string;
|
|
1050
|
-
start?: string;
|
|
1051
|
-
end?: string;
|
|
1052
|
-
duration?: number;
|
|
1053
|
-
};
|
|
1054
1041
|
/** @returns {SlideshowGetResponse} */
|
|
1055
1042
|
declare function SlideshowGetResponse(): SlideshowGetResponse;
|
|
1056
1043
|
type SlideshowGetResponse = {
|