@gofynd/fdk-client-javascript 1.3.3-beta.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -0
  4. package/sdk/application/Cart/CartApplicationModel.js +4 -0
  5. package/sdk/application/Theme/ThemeApplicationModel.d.ts +6 -8
  6. package/sdk/application/Theme/ThemeApplicationModel.js +6 -8
  7. package/sdk/common/AxiosHelper.js +2 -2
  8. package/sdk/platform/Cart/CartPlatformModel.d.ts +11 -2
  9. package/sdk/platform/Cart/CartPlatformModel.js +8 -2
  10. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +56 -0
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +308 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -1
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +38 -0
  14. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  15. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  16. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +344 -66
  17. package/sdk/platform/Catalog/CatalogPlatformModel.js +247 -65
  18. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +26 -0
  19. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +152 -0
  20. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +14 -1
  21. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -0
  22. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +22 -1
  23. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +24 -0
  24. package/sdk/platform/Order/OrderPlatformClient.d.ts +121 -3
  25. package/sdk/platform/Order/OrderPlatformClient.js +211 -0
  26. package/sdk/platform/Order/OrderPlatformModel.d.ts +16 -4
  27. package/sdk/platform/Order/OrderPlatformModel.js +513 -501
  28. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  29. package/sdk/platform/Order/OrderPlatformValidator.js +6 -0
@@ -235,6 +235,19 @@ declare class Configuration {
235
235
  * @description: Fetch the details of the deployment stores (the selling locations where the application will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreConfig/).
236
236
  */
237
237
  getOrderingStoreConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationPlatformModel.OrderingStoreConfig>;
238
+ /**
239
+ * @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreCookieParam} arg
240
+ * - Arg object
241
+ *
242
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
243
+ * @param {import("../PlatformAPIClient").Options} - Options
244
+ * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
245
+ * Success response
246
+ * @name getOrderingStoreCookie
247
+ * @summary: Get an Ordering Store signed cookie on selection of ordering store.
248
+ * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreCookie/).
249
+ */
250
+ getOrderingStoreCookie({ body, requestHeaders }?: ConfigurationPlatformApplicationValidator.GetOrderingStoreCookieParam, { responseHeaders }?: object): Promise<ConfigurationPlatformModel.SuccessMessageResponse>;
238
251
  /**
239
252
  * @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
240
253
  * - Arg object
@@ -349,6 +362,19 @@ declare class Configuration {
349
362
  * @description: Delete a domain (secondary or shortlink domain) added to a sales channel. It will disable user's access to website, shared links, and other features associated with this domain. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeDomainById/).
350
363
  */
351
364
  removeDomainById({ id, requestHeaders }?: ConfigurationPlatformApplicationValidator.RemoveDomainByIdParam, { responseHeaders }?: object): Promise<ConfigurationPlatformModel.SuccessMessageResponse>;
365
+ /**
366
+ * @param {ConfigurationPlatformApplicationValidator.RemoveOrderingStoreCookieParam} arg
367
+ * - Arg object
368
+ *
369
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
370
+ * @param {import("../PlatformAPIClient").Options} - Options
371
+ * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
372
+ * Success response
373
+ * @name removeOrderingStoreCookie
374
+ * @summary: Unset the Ordering Store signed cookie.
375
+ * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeOrderingStoreCookie/).
376
+ */
377
+ removeOrderingStoreCookie({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationPlatformModel.SuccessMessageResponse>;
352
378
  /**
353
379
  * @param {ConfigurationPlatformApplicationValidator.UpdateAppApiTokensParam} arg
354
380
  * - Arg object
@@ -1289,6 +1289,84 @@ class Configuration {
1289
1289
  return response;
1290
1290
  }
1291
1291
 
1292
+ /**
1293
+ * @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreCookieParam} arg
1294
+ * - Arg object
1295
+ *
1296
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1297
+ * @param {import("../PlatformAPIClient").Options} - Options
1298
+ * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
1299
+ * Success response
1300
+ * @name getOrderingStoreCookie
1301
+ * @summary: Get an Ordering Store signed cookie on selection of ordering store.
1302
+ * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreCookie/).
1303
+ */
1304
+ async getOrderingStoreCookie(
1305
+ { body, requestHeaders } = { requestHeaders: {} },
1306
+ { responseHeaders } = { responseHeaders: false }
1307
+ ) {
1308
+ const {
1309
+ error,
1310
+ } = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
1311
+ {
1312
+ body,
1313
+ },
1314
+ { abortEarly: false, allowUnknown: true }
1315
+ );
1316
+ if (error) {
1317
+ return Promise.reject(new FDKClientValidationError(error));
1318
+ }
1319
+
1320
+ // Showing warrnings if extra unknown parameters are found
1321
+ const {
1322
+ error: warrning,
1323
+ } = ConfigurationPlatformApplicationValidator.getOrderingStoreCookie().validate(
1324
+ {
1325
+ body,
1326
+ },
1327
+ { abortEarly: false, allowUnknown: false }
1328
+ );
1329
+ if (warrning) {
1330
+ Logger({
1331
+ level: "WARN",
1332
+ message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreCookie \n ${warrning}`,
1333
+ });
1334
+ }
1335
+
1336
+ const query_params = {};
1337
+
1338
+ const response = await PlatformAPIClient.execute(
1339
+ this.config,
1340
+ "post",
1341
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/select`,
1342
+ query_params,
1343
+ body,
1344
+ requestHeaders,
1345
+ { responseHeaders }
1346
+ );
1347
+
1348
+ let responseData = response;
1349
+ if (responseHeaders) {
1350
+ responseData = response[0];
1351
+ }
1352
+
1353
+ const {
1354
+ error: res_error,
1355
+ } = ConfigurationPlatformModel.SuccessMessageResponse().validate(
1356
+ responseData,
1357
+ { abortEarly: false, allowUnknown: false }
1358
+ );
1359
+
1360
+ if (res_error) {
1361
+ Logger({
1362
+ level: "WARN",
1363
+ message: `Response Validation Warnnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
1364
+ });
1365
+ }
1366
+
1367
+ return response;
1368
+ }
1369
+
1292
1370
  /**
1293
1371
  * @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
1294
1372
  * - Arg object
@@ -1850,6 +1928,80 @@ class Configuration {
1850
1928
  return response;
1851
1929
  }
1852
1930
 
1931
+ /**
1932
+ * @param {ConfigurationPlatformApplicationValidator.RemoveOrderingStoreCookieParam} arg
1933
+ * - Arg object
1934
+ *
1935
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1936
+ * @param {import("../PlatformAPIClient").Options} - Options
1937
+ * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
1938
+ * Success response
1939
+ * @name removeOrderingStoreCookie
1940
+ * @summary: Unset the Ordering Store signed cookie.
1941
+ * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeOrderingStoreCookie/).
1942
+ */
1943
+ async removeOrderingStoreCookie(
1944
+ { requestHeaders } = { requestHeaders: {} },
1945
+ { responseHeaders } = { responseHeaders: false }
1946
+ ) {
1947
+ const {
1948
+ error,
1949
+ } = ConfigurationPlatformApplicationValidator.removeOrderingStoreCookie().validate(
1950
+ {},
1951
+ { abortEarly: false, allowUnknown: true }
1952
+ );
1953
+ if (error) {
1954
+ return Promise.reject(new FDKClientValidationError(error));
1955
+ }
1956
+
1957
+ // Showing warrnings if extra unknown parameters are found
1958
+ const {
1959
+ error: warrning,
1960
+ } = ConfigurationPlatformApplicationValidator.removeOrderingStoreCookie().validate(
1961
+ {},
1962
+ { abortEarly: false, allowUnknown: false }
1963
+ );
1964
+ if (warrning) {
1965
+ Logger({
1966
+ level: "WARN",
1967
+ message: `Parameter Validation warrnings for platform > Configuration > removeOrderingStoreCookie \n ${warrning}`,
1968
+ });
1969
+ }
1970
+
1971
+ const query_params = {};
1972
+
1973
+ const response = await PlatformAPIClient.execute(
1974
+ this.config,
1975
+ "delete",
1976
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/select`,
1977
+ query_params,
1978
+ undefined,
1979
+ requestHeaders,
1980
+ { responseHeaders }
1981
+ );
1982
+
1983
+ let responseData = response;
1984
+ if (responseHeaders) {
1985
+ responseData = response[0];
1986
+ }
1987
+
1988
+ const {
1989
+ error: res_error,
1990
+ } = ConfigurationPlatformModel.SuccessMessageResponse().validate(
1991
+ responseData,
1992
+ { abortEarly: false, allowUnknown: false }
1993
+ );
1994
+
1995
+ if (res_error) {
1996
+ Logger({
1997
+ level: "WARN",
1998
+ message: `Response Validation Warnnings for platform > Configuration > removeOrderingStoreCookie \n ${res_error}`,
1999
+ });
2000
+ }
2001
+
2002
+ return response;
2003
+ }
2004
+
1853
2005
  /**
1854
2006
  * @param {ConfigurationPlatformApplicationValidator.UpdateAppApiTokensParam} arg
1855
2007
  * - Arg object
@@ -41,6 +41,10 @@ export = ConfigurationPlatformApplicationValidator;
41
41
  /** @typedef GetDomainsParam */
42
42
  /** @typedef GetInventoryConfigParam */
43
43
  /** @typedef GetOrderingStoreConfigParam */
44
+ /**
45
+ * @typedef GetOrderingStoreCookieParam
46
+ * @property {ConfigurationPlatformModel.OrderingStoreSelectRequest} body
47
+ */
44
48
  /**
45
49
  * @typedef GetOrderingStoresByFilterParam
46
50
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -74,6 +78,7 @@ export = ConfigurationPlatformApplicationValidator;
74
78
  * @typedef RemoveDomainByIdParam
75
79
  * @property {string} id - The unique identifier (24-digit Mongo Object ID) of the domain
76
80
  */
81
+ /** @typedef RemoveOrderingStoreCookieParam */
77
82
  /**
78
83
  * @typedef UpdateAppApiTokensParam
79
84
  * @property {ConfigurationPlatformModel.TokenResponse} body
@@ -141,6 +146,8 @@ declare class ConfigurationPlatformApplicationValidator {
141
146
  static getInventoryConfig(): any;
142
147
  /** @returns {GetOrderingStoreConfigParam} */
143
148
  static getOrderingStoreConfig(): any;
149
+ /** @returns {GetOrderingStoreCookieParam} */
150
+ static getOrderingStoreCookie(): GetOrderingStoreCookieParam;
144
151
  /** @returns {GetOrderingStoresByFilterParam} */
145
152
  static getOrderingStoresByFilter(): GetOrderingStoresByFilterParam;
146
153
  /** @returns {GetPreviousVersionsParam} */
@@ -153,6 +160,8 @@ declare class ConfigurationPlatformApplicationValidator {
153
160
  static partiallyUpdateInventoryConfig(): PartiallyUpdateInventoryConfigParam;
154
161
  /** @returns {RemoveDomainByIdParam} */
155
162
  static removeDomainById(): RemoveDomainByIdParam;
163
+ /** @returns {RemoveOrderingStoreCookieParam} */
164
+ static removeOrderingStoreCookie(): any;
156
165
  /** @returns {UpdateAppApiTokensParam} */
157
166
  static updateAppApiTokens(): UpdateAppApiTokensParam;
158
167
  /** @returns {UpdateAppBasicDetailsParam} */
@@ -171,7 +180,7 @@ declare class ConfigurationPlatformApplicationValidator {
171
180
  static updateOrderingStoreConfig(): UpdateOrderingStoreConfigParam;
172
181
  }
173
182
  declare namespace ConfigurationPlatformApplicationValidator {
174
- export { AddDomainParam, ChangeDomainTypeParam, GetAppApiTokensParam, GetAppBasicDetailsParam, GetAppCompaniesParam, GetAppContactInfoParam, GetAppCurrencyConfigParam, GetAppFeaturesParam, GetAppStoresParam, GetAppSupportedCurrencyParam, GetApplicationByIdParam, GetBuildConfigParam, GetDomainStatusParam, GetDomainsParam, GetInventoryConfigParam, GetOrderingStoreConfigParam, GetOrderingStoresByFilterParam, GetPreviousVersionsParam, GetStaffOrderingStoresParam, ModifyAppFeaturesParam, PartiallyUpdateInventoryConfigParam, RemoveDomainByIdParam, UpdateAppApiTokensParam, UpdateAppBasicDetailsParam, UpdateAppContactInfoParam, UpdateAppCurrencyConfigParam, UpdateAppFeaturesParam, UpdateBuildConfigParam, UpdateInventoryConfigParam, UpdateOrderingStoreConfigParam };
183
+ export { AddDomainParam, ChangeDomainTypeParam, GetAppApiTokensParam, GetAppBasicDetailsParam, GetAppCompaniesParam, GetAppContactInfoParam, GetAppCurrencyConfigParam, GetAppFeaturesParam, GetAppStoresParam, GetAppSupportedCurrencyParam, GetApplicationByIdParam, GetBuildConfigParam, GetDomainStatusParam, GetDomainsParam, GetInventoryConfigParam, GetOrderingStoreConfigParam, GetOrderingStoreCookieParam, GetOrderingStoresByFilterParam, GetPreviousVersionsParam, GetStaffOrderingStoresParam, ModifyAppFeaturesParam, PartiallyUpdateInventoryConfigParam, RemoveDomainByIdParam, RemoveOrderingStoreCookieParam, UpdateAppApiTokensParam, UpdateAppBasicDetailsParam, UpdateAppContactInfoParam, UpdateAppCurrencyConfigParam, UpdateAppFeaturesParam, UpdateBuildConfigParam, UpdateInventoryConfigParam, UpdateOrderingStoreConfigParam };
175
184
  }
176
185
  type AddDomainParam = {
177
186
  body: ConfigurationPlatformModel.DomainAddRequest;
@@ -217,6 +226,9 @@ type GetBuildConfigParam = {
217
226
  type GetDomainStatusParam = {
218
227
  body: ConfigurationPlatformModel.DomainStatusRequest;
219
228
  };
229
+ type GetOrderingStoreCookieParam = {
230
+ body: ConfigurationPlatformModel.OrderingStoreSelectRequest;
231
+ };
220
232
  type GetOrderingStoresByFilterParam = {
221
233
  /**
222
234
  * - The page number to navigate through the given
@@ -304,4 +316,5 @@ type GetApplicationByIdParam = any;
304
316
  type GetDomainsParam = any;
305
317
  type GetInventoryConfigParam = any;
306
318
  type GetOrderingStoreConfigParam = any;
319
+ type RemoveOrderingStoreCookieParam = any;
307
320
  import ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
@@ -60,6 +60,11 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
60
60
 
61
61
  /** @typedef GetOrderingStoreConfigParam */
62
62
 
63
+ /**
64
+ * @typedef GetOrderingStoreCookieParam
65
+ * @property {ConfigurationPlatformModel.OrderingStoreSelectRequest} body
66
+ */
67
+
63
68
  /**
64
69
  * @typedef GetOrderingStoresByFilterParam
65
70
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -99,6 +104,8 @@ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
99
104
  * @property {string} id - The unique identifier (24-digit Mongo Object ID) of the domain
100
105
  */
101
106
 
107
+ /** @typedef RemoveOrderingStoreCookieParam */
108
+
102
109
  /**
103
110
  * @typedef UpdateAppApiTokensParam
104
111
  * @property {ConfigurationPlatformModel.TokenResponse} body
@@ -237,6 +244,13 @@ class ConfigurationPlatformApplicationValidator {
237
244
  return Joi.object({}).required();
238
245
  }
239
246
 
247
+ /** @returns {GetOrderingStoreCookieParam} */
248
+ static getOrderingStoreCookie() {
249
+ return Joi.object({
250
+ body: ConfigurationPlatformModel.OrderingStoreSelectRequest().required(),
251
+ }).required();
252
+ }
253
+
240
254
  /** @returns {GetOrderingStoresByFilterParam} */
241
255
  static getOrderingStoresByFilter() {
242
256
  return Joi.object({
@@ -283,6 +297,11 @@ class ConfigurationPlatformApplicationValidator {
283
297
  }).required();
284
298
  }
285
299
 
300
+ /** @returns {RemoveOrderingStoreCookieParam} */
301
+ static removeOrderingStoreCookie() {
302
+ return Joi.object({}).required();
303
+ }
304
+
286
305
  /** @returns {UpdateAppApiTokensParam} */
287
306
  static updateAppApiTokens() {
288
307
  return Joi.object({
@@ -1127,6 +1127,14 @@ export = ConfigurationPlatformModel;
1127
1127
  * @property {string} [type] - For hard type delivery, store selection is
1128
1128
  * compulsory. For soft type, delivery store selection is optional.
1129
1129
  */
1130
+ /**
1131
+ * @typedef OrderingStoreSelect
1132
+ * @property {number} uid - Ordering store unique uid. It is required.
1133
+ */
1134
+ /**
1135
+ * @typedef OrderingStoreSelectRequest
1136
+ * @property {OrderingStoreSelect} ordering_store
1137
+ */
1130
1138
  /**
1131
1139
  * @typedef OrderingStoresResponse
1132
1140
  * @property {OrderingStore[]} [items]
@@ -1431,7 +1439,7 @@ export = ConfigurationPlatformModel;
1431
1439
  declare class ConfigurationPlatformModel {
1432
1440
  }
1433
1441
  declare namespace ConfigurationPlatformModel {
1434
- export { Android, App, AppCartConfig, AppCurrencyResponse, AppDomain, AppFeature, AppFeatureRequest, AppFeatureResponse, AppInventory, AppInventoryCompanies, AppInventoryConfig, AppInventoryPartialUpdate, AppInventoryStores, Application, ApplicationAuth, ApplicationCors, ApplicationDetail, ApplicationInformation, ApplicationInventory, ApplicationMeta, ApplicationRedirections, ApplicationsResponse, ApplicationWebsite, AppLogisticsConfig, AppOrderConfig, AppPaymentConfig, AppStoreRules, AppSupportedCurrency, ArticleAssignmentConfig, ArticleAssignmentRule, ArticleAssignmentRules, AuthenticationConfig, BlogLink, BrandCompanyInfo, BrandsByCompanyResponse, BrandStoreInfo, BuildVersion, BuildVersionHistory, BusinessHighlights, CallbackUrl, CartFeature, Charges, CommonFeature, CommsConfig, CommunicationConfig, CommunicationOptinDialogFeature, CompaniesResponse, CompanyBrandInfo, CompanyByBrandsRequest, CompanyByBrandsResponse, CompanyValidator, CompareProductsFeature, CreateApplicationRequest, CreateAppResponse, Credentials, Credit, CurrenciesResponse, Currency, CurrencyFeature, Debit, DefaultCurrency, DeliveryCharges, DeploymentMeta, DeploymentStoreSelectionFeature, Domain, DomainAdd, DomainAddRequest, DomainsResponse, DomainStatus, DomainStatusRequest, DomainStatusResponse, DomainSuggestion, DomainSuggestionsRequest, DomainSuggestionsResponse, FacebookLink, FeedbackFeature, FilterOrderingStoreRequest, Firebase, Freshchat, FreshchatCredentials, FyndRewards, FyndRewardsCredentials, GetIntegrationsOptInsResponse, GoogleMap, GoogleMapCredentials, GooglePlusLink, Gtm, GtmCredentials, HomePageFeature, InformationAddress, InformationPhone, InformationSupport, InstagramLink, Integration, IntegrationConfigResponse, IntegrationLevel, IntegrationMeta, IntegrationOptIn, InvalidPayloadRequest, InventoryArticleAssignment, InventoryBrand, InventoryBrandRule, InventoryCategory, InventoryDiscount, InventoryPaymentConfig, InventoryPrice, InventoryStore, InventoryStoreRule, InventoryValidator, Ios, JsonSchema, LandingImage, LandingPageFeature, LastPatch, LaunchPage, LinkedInLink, Links, ListingPriceFeature, LoyaltyPointsConfig, Methods, MobileAppConfigRequest, MobileAppConfiguration, Moengage, MoengageCredentials, NotFound, OptedApplicationResponse, OptedCompany, OptedInventory, OptedStore, OptedStoreAddress, OptedStoreIntegration, OptOutInventory, OptType, OrderFeature, OrderingStore, OrderingStoreConfig, OrderingStores, OrderingStoresResponse, OrderValidator, OtherEntity, OtherEntityData, OtherSellerApplication, OtherSellerApplications, OtherSellerCompany, Page, PanCardConfig, PaymentModeConfig, PaymentSelectionLock, PcrFeature, PinterestLink, ProductDetailFeature, QrFeature, RegistrationPageFeature, RevenueEngineFeature, RewardPointsConfig, Safetynet, SafetynetCredentials, SecureUrl, Segment, SegmentCredentials, SocialLinks, SplashImage, StoreByBrandsRequest, StoreByBrandsResponse, StoreCriteriaRule, StoreLatLong, StorePriority, StorePriorityRule, StoresResponse, StoreValidator, SuccessMessageResponse, TokenResponse, Tokens, TwitterLink, UpdateDomain, UpdateDomainTypeRequest, UpdateIntegrationLevelRequest, ValidationFailedResponse, Validators, VimeoLink, YoutubeLink };
1442
+ export { Android, App, AppCartConfig, AppCurrencyResponse, AppDomain, AppFeature, AppFeatureRequest, AppFeatureResponse, AppInventory, AppInventoryCompanies, AppInventoryConfig, AppInventoryPartialUpdate, AppInventoryStores, Application, ApplicationAuth, ApplicationCors, ApplicationDetail, ApplicationInformation, ApplicationInventory, ApplicationMeta, ApplicationRedirections, ApplicationsResponse, ApplicationWebsite, AppLogisticsConfig, AppOrderConfig, AppPaymentConfig, AppStoreRules, AppSupportedCurrency, ArticleAssignmentConfig, ArticleAssignmentRule, ArticleAssignmentRules, AuthenticationConfig, BlogLink, BrandCompanyInfo, BrandsByCompanyResponse, BrandStoreInfo, BuildVersion, BuildVersionHistory, BusinessHighlights, CallbackUrl, CartFeature, Charges, CommonFeature, CommsConfig, CommunicationConfig, CommunicationOptinDialogFeature, CompaniesResponse, CompanyBrandInfo, CompanyByBrandsRequest, CompanyByBrandsResponse, CompanyValidator, CompareProductsFeature, CreateApplicationRequest, CreateAppResponse, Credentials, Credit, CurrenciesResponse, Currency, CurrencyFeature, Debit, DefaultCurrency, DeliveryCharges, DeploymentMeta, DeploymentStoreSelectionFeature, Domain, DomainAdd, DomainAddRequest, DomainsResponse, DomainStatus, DomainStatusRequest, DomainStatusResponse, DomainSuggestion, DomainSuggestionsRequest, DomainSuggestionsResponse, FacebookLink, FeedbackFeature, FilterOrderingStoreRequest, Firebase, Freshchat, FreshchatCredentials, FyndRewards, FyndRewardsCredentials, GetIntegrationsOptInsResponse, GoogleMap, GoogleMapCredentials, GooglePlusLink, Gtm, GtmCredentials, HomePageFeature, InformationAddress, InformationPhone, InformationSupport, InstagramLink, Integration, IntegrationConfigResponse, IntegrationLevel, IntegrationMeta, IntegrationOptIn, InvalidPayloadRequest, InventoryArticleAssignment, InventoryBrand, InventoryBrandRule, InventoryCategory, InventoryDiscount, InventoryPaymentConfig, InventoryPrice, InventoryStore, InventoryStoreRule, InventoryValidator, Ios, JsonSchema, LandingImage, LandingPageFeature, LastPatch, LaunchPage, LinkedInLink, Links, ListingPriceFeature, LoyaltyPointsConfig, Methods, MobileAppConfigRequest, MobileAppConfiguration, Moengage, MoengageCredentials, NotFound, OptedApplicationResponse, OptedCompany, OptedInventory, OptedStore, OptedStoreAddress, OptedStoreIntegration, OptOutInventory, OptType, OrderFeature, OrderingStore, OrderingStoreConfig, OrderingStores, OrderingStoreSelect, OrderingStoreSelectRequest, OrderingStoresResponse, OrderValidator, OtherEntity, OtherEntityData, OtherSellerApplication, OtherSellerApplications, OtherSellerCompany, Page, PanCardConfig, PaymentModeConfig, PaymentSelectionLock, PcrFeature, PinterestLink, ProductDetailFeature, QrFeature, RegistrationPageFeature, RevenueEngineFeature, RewardPointsConfig, Safetynet, SafetynetCredentials, SecureUrl, Segment, SegmentCredentials, SocialLinks, SplashImage, StoreByBrandsRequest, StoreByBrandsResponse, StoreCriteriaRule, StoreLatLong, StorePriority, StorePriorityRule, StoresResponse, StoreValidator, SuccessMessageResponse, TokenResponse, Tokens, TwitterLink, UpdateDomain, UpdateDomainTypeRequest, UpdateIntegrationLevelRequest, ValidationFailedResponse, Validators, VimeoLink, YoutubeLink };
1435
1443
  }
1436
1444
  /** @returns {Android} */
1437
1445
  declare function Android(): Android;
@@ -3760,6 +3768,19 @@ type OrderingStores = {
3760
3768
  */
3761
3769
  type?: string;
3762
3770
  };
3771
+ /** @returns {OrderingStoreSelect} */
3772
+ declare function OrderingStoreSelect(): OrderingStoreSelect;
3773
+ type OrderingStoreSelect = {
3774
+ /**
3775
+ * - Ordering store unique uid. It is required.
3776
+ */
3777
+ uid: number;
3778
+ };
3779
+ /** @returns {OrderingStoreSelectRequest} */
3780
+ declare function OrderingStoreSelectRequest(): OrderingStoreSelectRequest;
3781
+ type OrderingStoreSelectRequest = {
3782
+ ordering_store: OrderingStoreSelect;
3783
+ };
3763
3784
  /** @returns {OrderingStoresResponse} */
3764
3785
  declare function OrderingStoresResponse(): OrderingStoresResponse;
3765
3786
  type OrderingStoresResponse = {
@@ -1265,6 +1265,16 @@ const Joi = require("joi");
1265
1265
  * compulsory. For soft type, delivery store selection is optional.
1266
1266
  */
1267
1267
 
1268
+ /**
1269
+ * @typedef OrderingStoreSelect
1270
+ * @property {number} uid - Ordering store unique uid. It is required.
1271
+ */
1272
+
1273
+ /**
1274
+ * @typedef OrderingStoreSelectRequest
1275
+ * @property {OrderingStoreSelect} ordering_store
1276
+ */
1277
+
1268
1278
  /**
1269
1279
  * @typedef OrderingStoresResponse
1270
1280
  * @property {OrderingStore[]} [items]
@@ -2976,6 +2986,20 @@ class ConfigurationPlatformModel {
2976
2986
  });
2977
2987
  }
2978
2988
 
2989
+ /** @returns {OrderingStoreSelect} */
2990
+ static OrderingStoreSelect() {
2991
+ return Joi.object({
2992
+ uid: Joi.number().required(),
2993
+ });
2994
+ }
2995
+
2996
+ /** @returns {OrderingStoreSelectRequest} */
2997
+ static OrderingStoreSelectRequest() {
2998
+ return Joi.object({
2999
+ ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
3000
+ });
3001
+ }
3002
+
2979
3003
  /** @returns {OrderingStoresResponse} */
2980
3004
  static OrderingStoresResponse() {
2981
3005
  return Joi.object({
@@ -211,7 +211,7 @@ declare class Order {
211
211
  * @summary:
212
212
  * @description: Get lane config for the order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getLaneConfig/).
213
213
  */
214
- getLaneConfig({ superLane, groupEntity, fromDate, toDate, dpIds, stores, salesChannels, paymentMode, bagStatus, searchType, searchValue, tags, timeToDispatch, paymentMethods, myOrders, showCrossCompanyData, requestHeaders, }?: OrderPlatformValidator.GetLaneConfigParam, { responseHeaders }?: object): Promise<OrderPlatformModel.LaneConfigResponse>;
214
+ getLaneConfig({ superLane, groupEntity, fromDate, toDate, dpIds, stores, salesChannels, paymentMode, bagStatus, searchType, searchValue, tags, timeToDispatch, paymentMethods, myOrders, showCrossCompanyData, orderType, requestHeaders, }?: OrderPlatformValidator.GetLaneConfigParam, { responseHeaders }?: object): Promise<OrderPlatformModel.LaneConfigResponse>;
215
215
  /**
216
216
  * @param {OrderPlatformValidator.GetOrderByIdParam} arg - Arg object
217
217
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -231,7 +231,60 @@ declare class Order {
231
231
  * @summary:
232
232
  * @description: Get Orders Listing - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrders/).
233
233
  */
234
- getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderListingResponse>;
234
+ getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderListingResponse>;
235
+ /**
236
+ * @param {Object} arg - Arg object.
237
+ * @param {string} [arg.lane] - Lane refers to a section where orders are
238
+ * assigned, indicating its grouping
239
+ * @param {string} [arg.searchType] - Search_type refers to the field that
240
+ * will be used as the target for the search operation
241
+ * @param {string} [arg.bagStatus] - Bag_status refers to status of the
242
+ * entity. Filters orders based on the status.
243
+ * @param {string} [arg.timeToDispatch] - Time_to_dispatch refers to
244
+ * estimated SLA time.
245
+ * @param {string} [arg.paymentMethods] -
246
+ * @param {string} [arg.tags] - Tags refers to additional descriptive labels
247
+ * associated with the order
248
+ * @param {string} [arg.searchValue] - Search_value is matched against the
249
+ * field specified by the search_type
250
+ * @param {string} [arg.fromDate] -
251
+ * @param {string} [arg.toDate] -
252
+ * @param {string} [arg.dpIds] - Delivery Partner IDs to which shipments are assigned.
253
+ * @param {string} [arg.stores] -
254
+ * @param {string} [arg.salesChannels] -
255
+ * @param {number} [arg.pageSize] -
256
+ * @param {boolean} [arg.isPrioritySort] -
257
+ * @param {string} [arg.customMeta] -
258
+ * @param {boolean} [arg.myOrders] -
259
+ * @param {boolean} [arg.showCrossCompanyData] - Flag to view cross &
260
+ * non-cross company order
261
+ * @param {string} [arg.customerId] -
262
+ * @param {string} [arg.orderType] -
263
+ * @returns {Paginator<OrderPlatformModel.OrderListingResponse>}
264
+ * @summary:
265
+ * @description: Get Orders Listing
266
+ */
267
+ getOrdersPaginator({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, }?: {
268
+ lane?: string;
269
+ searchType?: string;
270
+ bagStatus?: string;
271
+ timeToDispatch?: string;
272
+ paymentMethods?: string;
273
+ tags?: string;
274
+ searchValue?: string;
275
+ fromDate?: string;
276
+ toDate?: string;
277
+ dpIds?: string;
278
+ stores?: string;
279
+ salesChannels?: string;
280
+ pageSize?: number;
281
+ isPrioritySort?: boolean;
282
+ customMeta?: string;
283
+ myOrders?: boolean;
284
+ showCrossCompanyData?: boolean;
285
+ customerId?: string;
286
+ orderType?: string;
287
+ }): Paginator<OrderPlatformModel.OrderListingResponse>;
235
288
  /**
236
289
  * @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object
237
290
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -284,7 +337,71 @@ declare class Order {
284
337
  * @summary:
285
338
  * @description: Get Shipments Listing for the company id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipments/).
286
339
  */
287
- getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
340
+ getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
341
+ /**
342
+ * @param {Object} arg - Arg object.
343
+ * @param {string} [arg.lane] - Name of lane for which data is to be fetched
344
+ * @param {string} [arg.bagStatus] - Comma separated values of bag statuses
345
+ * @param {boolean} [arg.statusOverrideLane] - Use this flag to fetch by
346
+ * bag_status and override lane
347
+ * @param {number} [arg.timeToDispatch] -
348
+ * @param {string} [arg.searchType] - Search type key
349
+ * @param {string} [arg.searchValue] - Search type value
350
+ * @param {string} [arg.fromDate] - Start Date in DD-MM-YYYY format
351
+ * @param {string} [arg.toDate] - End Date in DD-MM-YYYY format
352
+ * @param {string} [arg.dpIds] - Comma separated values of delivery partner ids
353
+ * @param {string} [arg.stores] - Comma separated values of store ids
354
+ * @param {string} [arg.salesChannels] - Comma separated values of sales channel ids
355
+ * @param {number} [arg.pageSize] - Page size of data received per page
356
+ * @param {boolean} [arg.fetchActiveShipment] - Flag to fetch active shipments
357
+ * @param {boolean} [arg.excludeLockedShipments] - Flag to fetch locked shipments
358
+ * @param {string} [arg.paymentMethods] - Comma separated values of payment methods
359
+ * @param {string} [arg.channelShipmentId] - App Shipment Id
360
+ * @param {string} [arg.channelOrderId] - App Order Id
361
+ * @param {string} [arg.customMeta] -
362
+ * @param {string} [arg.orderingChannel] -
363
+ * @param {string} [arg.companyAffiliateTag] -
364
+ * @param {boolean} [arg.myOrders] -
365
+ * @param {string} [arg.platformUserId] -
366
+ * @param {string} [arg.sortType] - Sort the result data on basis of input
367
+ * @param {boolean} [arg.showCrossCompanyData] - Flag to view cross &
368
+ * non-cross company order
369
+ * @param {string} [arg.tags] - Comma separated values of tags
370
+ * @param {string} [arg.customerId] -
371
+ * @param {string} [arg.orderType] -
372
+ * @returns {Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
373
+ * @summary:
374
+ * @description: Get Shipments Listing for the company id
375
+ */
376
+ getShipmentsPaginator({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, dpIds, stores, salesChannels, pageSize, fetchActiveShipment, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, }?: {
377
+ lane?: string;
378
+ bagStatus?: string;
379
+ statusOverrideLane?: boolean;
380
+ timeToDispatch?: number;
381
+ searchType?: string;
382
+ searchValue?: string;
383
+ fromDate?: string;
384
+ toDate?: string;
385
+ dpIds?: string;
386
+ stores?: string;
387
+ salesChannels?: string;
388
+ pageSize?: number;
389
+ fetchActiveShipment?: boolean;
390
+ excludeLockedShipments?: boolean;
391
+ paymentMethods?: string;
392
+ channelShipmentId?: string;
393
+ channelOrderId?: string;
394
+ customMeta?: string;
395
+ orderingChannel?: string;
396
+ companyAffiliateTag?: string;
397
+ myOrders?: boolean;
398
+ platformUserId?: string;
399
+ sortType?: string;
400
+ showCrossCompanyData?: boolean;
401
+ tags?: string;
402
+ customerId?: string;
403
+ orderType?: string;
404
+ }): Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
288
405
  /**
289
406
  * @param {OrderPlatformValidator.GetStateTransitionMapParam} arg - Arg object
290
407
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -466,3 +583,4 @@ declare class Order {
466
583
  }
467
584
  import OrderPlatformValidator = require("./OrderPlatformValidator");
468
585
  import OrderPlatformModel = require("./OrderPlatformModel");
586
+ import Paginator = require("../../common/Paginator");