@gofynd/fdk-client-javascript 1.4.4 → 1.4.5
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/application.d.ts +3 -3
- package/common.d.ts +3 -3
- package/index.d.ts +15 -15
- package/package.json +1 -1
- package/partner.d.ts +3 -3
- package/platform.d.ts +3 -3
- package/public.d.ts +2 -2
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationClient.d.ts +17 -17
- package/sdk/application/ApplicationConfig.d.ts +3 -3
- package/sdk/application/Cart/CartApplicationClient.d.ts +2 -2
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +2 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
- package/sdk/application/Order/OrderApplicationValidator.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +1 -1
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +2 -2
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
- package/sdk/application/Share/ShareApplicationClient.d.ts +2 -2
- package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
- package/sdk/application/Share/ShareApplicationModel.js +2 -0
- package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
- package/sdk/application/index.d.ts +18 -18
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
- package/sdk/partner/OAuthClient.d.ts +4 -4
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerClient.d.ts +6 -6
- package/sdk/partner/PartnerConfig.d.ts +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +1 -1
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +1 -1
- package/sdk/partner/index.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +2 -2
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +3 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +34 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +35 -5
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -5
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.d.ts +2 -2
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +2 -2
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/PlatformClient.d.ts +19 -19
- package/sdk/platform/PlatformConfig.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +2 -2
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
- package/sdk/platform/index.d.ts +24 -24
- package/sdk/public/Billing/BillingPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/PublicClient.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
- package/sdk/public/index.d.ts +8 -8
package/README.md
CHANGED
|
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
214
214
|
The above code will log the curl command in the console
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.
|
|
217
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.5' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
218
218
|
Active Theme: Emerge
|
|
219
219
|
```
|
|
220
220
|
|
package/application.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationConfig } from "sdk/
|
|
2
|
-
import { ApplicationClient } from "sdk/
|
|
3
|
-
import { ApplicationModel } from "sdk/
|
|
1
|
+
import { ApplicationConfig } from "./sdk/application";
|
|
2
|
+
import { ApplicationClient } from "./sdk/application";
|
|
3
|
+
import { ApplicationModel } from "./sdk/application";
|
|
4
4
|
export { ApplicationConfig, ApplicationClient, ApplicationModel };
|
package/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fdkAxios } from "sdk/
|
|
2
|
-
import Utility = require("sdk/
|
|
3
|
-
import Constant = require("sdk/
|
|
1
|
+
import { fdkAxios } from "./sdk/common/AxiosHelper";
|
|
2
|
+
import Utility = require("./sdk/common/Utility");
|
|
3
|
+
import Constant = require("./sdk/common/Constant");
|
|
4
4
|
export { fdkAxios as FdkAxios, Utility, Constant };
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ApplicationConfig } from "sdk/
|
|
2
|
-
import { ApplicationClient } from "sdk/
|
|
3
|
-
import { ApplicationModel } from "sdk/
|
|
4
|
-
import { PartnerConfig } from "sdk/
|
|
5
|
-
import { PartnerClient } from "sdk/
|
|
6
|
-
import { PartnerModel } from "sdk/
|
|
7
|
-
import { PlatformConfig } from "sdk/
|
|
8
|
-
import { PlatformClient } from "sdk/
|
|
9
|
-
import { PlatformModel } from "sdk/
|
|
10
|
-
import { PublicConfig } from "sdk/
|
|
11
|
-
import { PublicClient } from "sdk/
|
|
12
|
-
import { PublicModel } from "sdk/
|
|
13
|
-
import { fdkAxios } from "sdk/
|
|
14
|
-
import Utility = require("sdk/
|
|
15
|
-
import Constant = require("sdk/
|
|
1
|
+
import { ApplicationConfig } from "./sdk/application";
|
|
2
|
+
import { ApplicationClient } from "./sdk/application";
|
|
3
|
+
import { ApplicationModel } from "./sdk/application";
|
|
4
|
+
import { PartnerConfig } from "./sdk/partner";
|
|
5
|
+
import { PartnerClient } from "./sdk/partner";
|
|
6
|
+
import { PartnerModel } from "./sdk/partner";
|
|
7
|
+
import { PlatformConfig } from "./sdk/platform";
|
|
8
|
+
import { PlatformClient } from "./sdk/platform";
|
|
9
|
+
import { PlatformModel } from "./sdk/platform";
|
|
10
|
+
import { PublicConfig } from "./sdk/public";
|
|
11
|
+
import { PublicClient } from "./sdk/public";
|
|
12
|
+
import { PublicModel } from "./sdk/public";
|
|
13
|
+
import { fdkAxios } from "./sdk/common/AxiosHelper";
|
|
14
|
+
import Utility = require("./sdk/common/Utility");
|
|
15
|
+
import Constant = require("./sdk/common/Constant");
|
|
16
16
|
export { ApplicationConfig, ApplicationClient, ApplicationModel, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
|
package/package.json
CHANGED
package/partner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PartnerConfig } from "sdk/
|
|
2
|
-
import { PartnerClient } from "sdk/
|
|
3
|
-
import { PartnerModel } from "sdk/
|
|
1
|
+
import { PartnerConfig } from "./sdk/partner";
|
|
2
|
+
import { PartnerClient } from "./sdk/partner";
|
|
3
|
+
import { PartnerModel } from "./sdk/partner";
|
|
4
4
|
export { PartnerConfig, PartnerClient, PartnerModel };
|
package/platform.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformConfig } from "sdk/
|
|
2
|
-
import { PlatformClient } from "sdk/
|
|
3
|
-
import { PlatformModel } from "sdk/
|
|
1
|
+
import { PlatformConfig } from "./sdk/platform";
|
|
2
|
+
import { PlatformClient } from "./sdk/platform";
|
|
3
|
+
import { PlatformModel } from "./sdk/platform";
|
|
4
4
|
export { PlatformConfig, PlatformClient, PlatformModel };
|
package/public.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublicConfig } from "sdk/
|
|
2
|
-
import { PublicClient } from "sdk/
|
|
1
|
+
import { PublicConfig } from "./sdk/public";
|
|
2
|
+
import { PublicClient } from "./sdk/public";
|
|
3
3
|
export declare const PublicModel: any;
|
|
4
4
|
export { PublicConfig, PublicClient };
|
|
@@ -12,7 +12,7 @@ declare class APIClient {
|
|
|
12
12
|
* @param {object} body
|
|
13
13
|
* @param {object} xHeaders
|
|
14
14
|
*/
|
|
15
|
-
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): Promise<import("
|
|
15
|
+
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
16
|
}
|
|
17
17
|
declare namespace APIClient {
|
|
18
18
|
export { Options };
|
|
@@ -7,7 +7,7 @@ export = ApplicationClient;
|
|
|
7
7
|
declare class ApplicationClient {
|
|
8
8
|
/** @param {import("./ApplicationConfig")} config - The application configuration. */
|
|
9
9
|
constructor(config: import("./ApplicationConfig"));
|
|
10
|
-
config: import("
|
|
10
|
+
config: import("./ApplicationConfig");
|
|
11
11
|
cart: Cart;
|
|
12
12
|
catalog: Catalog;
|
|
13
13
|
common: Common;
|
|
@@ -56,19 +56,19 @@ declare class ApplicationClient {
|
|
|
56
56
|
*/
|
|
57
57
|
setExtraHeaders(header: object): void;
|
|
58
58
|
}
|
|
59
|
-
import Cart = require("
|
|
60
|
-
import Catalog = require("
|
|
61
|
-
import Common = require("
|
|
62
|
-
import Communication = require("
|
|
63
|
-
import Configuration = require("
|
|
64
|
-
import Content = require("
|
|
65
|
-
import FileStorage = require("
|
|
66
|
-
import Lead = require("
|
|
67
|
-
import Logistic = require("
|
|
68
|
-
import Order = require("
|
|
69
|
-
import Payment = require("
|
|
70
|
-
import PosCart = require("
|
|
71
|
-
import Rewards = require("
|
|
72
|
-
import Share = require("
|
|
73
|
-
import Theme = require("
|
|
74
|
-
import User = require("
|
|
59
|
+
import Cart = require("./Cart/CartApplicationClient");
|
|
60
|
+
import Catalog = require("./Catalog/CatalogApplicationClient");
|
|
61
|
+
import Common = require("./Common/CommonApplicationClient");
|
|
62
|
+
import Communication = require("./Communication/CommunicationApplicationClient");
|
|
63
|
+
import Configuration = require("./Configuration/ConfigurationApplicationClient");
|
|
64
|
+
import Content = require("./Content/ContentApplicationClient");
|
|
65
|
+
import FileStorage = require("./FileStorage/FileStorageApplicationClient");
|
|
66
|
+
import Lead = require("./Lead/LeadApplicationClient");
|
|
67
|
+
import Logistic = require("./Logistic/LogisticApplicationClient");
|
|
68
|
+
import Order = require("./Order/OrderApplicationClient");
|
|
69
|
+
import Payment = require("./Payment/PaymentApplicationClient");
|
|
70
|
+
import PosCart = require("./PosCart/PosCartApplicationClient");
|
|
71
|
+
import Rewards = require("./Rewards/RewardsApplicationClient");
|
|
72
|
+
import Share = require("./Share/ShareApplicationClient");
|
|
73
|
+
import Theme = require("./Theme/ThemeApplicationClient");
|
|
74
|
+
import User = require("./User/UserApplicationClient");
|
|
@@ -38,7 +38,7 @@ declare class ApplicationConfig {
|
|
|
38
38
|
applicationID: string;
|
|
39
39
|
applicationToken?: string;
|
|
40
40
|
domain?: string;
|
|
41
|
-
logLevel?: "
|
|
41
|
+
logLevel?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
42
42
|
locationDetails?: LocationObject;
|
|
43
43
|
currencyCode?: string;
|
|
44
44
|
}, options?: {
|
|
@@ -50,7 +50,7 @@ declare class ApplicationConfig {
|
|
|
50
50
|
strictResponseCheck: boolean;
|
|
51
51
|
};
|
|
52
52
|
domain: string;
|
|
53
|
-
logLevel: "
|
|
53
|
+
logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
54
54
|
extraHeaders: any[];
|
|
55
55
|
locationDetails: LocationObject;
|
|
56
56
|
currencyCode: string;
|
|
@@ -59,7 +59,7 @@ declare class ApplicationConfig {
|
|
|
59
59
|
*
|
|
60
60
|
* @param {logLevelEnum} level - The log level to set.
|
|
61
61
|
*/
|
|
62
|
-
setLogLevel(level: "
|
|
62
|
+
setLogLevel(level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"): void;
|
|
63
63
|
/**
|
|
64
64
|
* Sets the cookie for the application.
|
|
65
65
|
*
|
|
@@ -318,5 +318,5 @@ declare class Cart {
|
|
|
318
318
|
*/
|
|
319
319
|
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
|
|
320
320
|
}
|
|
321
|
-
import CartApplicationValidator = require("
|
|
322
|
-
import CartApplicationModel = require("
|
|
321
|
+
import CartApplicationValidator = require("./CartApplicationValidator");
|
|
322
|
+
import CartApplicationModel = require("./CartApplicationModel");
|
|
@@ -558,6 +558,6 @@ declare class Catalog {
|
|
|
558
558
|
*/
|
|
559
559
|
unfollowById({ collectionType, collectionId, requestHeaders }?: CatalogApplicationValidator.UnfollowByIdParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.FollowPostResponse>;
|
|
560
560
|
}
|
|
561
|
-
import CatalogApplicationValidator = require("
|
|
562
|
-
import CatalogApplicationModel = require("
|
|
563
|
-
import Paginator = require("
|
|
561
|
+
import CatalogApplicationValidator = require("./CatalogApplicationValidator");
|
|
562
|
+
import CatalogApplicationModel = require("./CatalogApplicationModel");
|
|
563
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -29,5 +29,5 @@ declare class Common {
|
|
|
29
29
|
*/
|
|
30
30
|
searchApplication({ authorization, query, requestHeaders }?: CommonApplicationValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonApplicationModel.ApplicationResponse>;
|
|
31
31
|
}
|
|
32
|
-
import CommonApplicationValidator = require("
|
|
33
|
-
import CommonApplicationModel = require("
|
|
32
|
+
import CommonApplicationValidator = require("./CommonApplicationValidator");
|
|
33
|
+
import CommonApplicationModel = require("./CommonApplicationModel");
|
|
@@ -48,5 +48,5 @@ declare class Communication {
|
|
|
48
48
|
*/
|
|
49
49
|
upsertCommunicationConsent({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsentRes>;
|
|
50
50
|
}
|
|
51
|
-
import CommunicationApplicationModel = require("
|
|
52
|
-
import CommunicationApplicationValidator = require("
|
|
51
|
+
import CommunicationApplicationModel = require("./CommunicationApplicationModel");
|
|
52
|
+
import CommunicationApplicationValidator = require("./CommunicationApplicationValidator");
|
|
@@ -26,4 +26,4 @@ type UpsertCommunicationConsentParam = {
|
|
|
26
26
|
body: CommunicationApplicationModel.CommunicationConsentReq;
|
|
27
27
|
};
|
|
28
28
|
type GetCommunicationConsentParam = any;
|
|
29
|
-
import CommunicationApplicationModel = require("
|
|
29
|
+
import CommunicationApplicationModel = require("./CommunicationApplicationModel");
|
|
@@ -206,5 +206,5 @@ declare class Configuration {
|
|
|
206
206
|
*/
|
|
207
207
|
removeOrderingStoreCookie({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
|
|
208
208
|
}
|
|
209
|
-
import ConfigurationApplicationModel = require("
|
|
210
|
-
import ConfigurationApplicationValidator = require("
|
|
209
|
+
import ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
|
|
210
|
+
import ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");
|
|
@@ -168,4 +168,4 @@ type GetIntegrationTokensParam = any;
|
|
|
168
168
|
type GetLanguagesParam = any;
|
|
169
169
|
type GetOwnerInfoParam = any;
|
|
170
170
|
type RemoveOrderingStoreCookieParam = any;
|
|
171
|
-
import ConfigurationApplicationModel = require("
|
|
171
|
+
import ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
|
|
@@ -267,6 +267,6 @@ declare class Content {
|
|
|
267
267
|
*/
|
|
268
268
|
getTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentApplicationModel.TagsSchema>;
|
|
269
269
|
}
|
|
270
|
-
import ContentApplicationModel = require("
|
|
271
|
-
import ContentApplicationValidator = require("
|
|
272
|
-
import Paginator = require("
|
|
270
|
+
import ContentApplicationModel = require("./ContentApplicationModel");
|
|
271
|
+
import ContentApplicationValidator = require("./ContentApplicationValidator");
|
|
272
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -56,5 +56,5 @@ declare class FileStorage {
|
|
|
56
56
|
tags: any;
|
|
57
57
|
}): Promise<any>;
|
|
58
58
|
}
|
|
59
|
-
import FileStorageApplicationValidator = require("
|
|
60
|
-
import FileStorageApplicationModel = require("
|
|
59
|
+
import FileStorageApplicationValidator = require("./FileStorageApplicationValidator");
|
|
60
|
+
import FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
@@ -53,4 +53,4 @@ type StartUploadParam = {
|
|
|
53
53
|
namespace: string;
|
|
54
54
|
body: FileStorageApplicationModel.StartRequest;
|
|
55
55
|
};
|
|
56
|
-
import FileStorageApplicationModel = require("
|
|
56
|
+
import FileStorageApplicationModel = require("./FileStorageApplicationModel");
|
|
@@ -90,5 +90,5 @@ declare class Lead {
|
|
|
90
90
|
*/
|
|
91
91
|
submitCustomForm({ slug, body, requestHeaders }?: LeadApplicationValidator.SubmitCustomFormParam, { responseHeaders }?: object): Promise<LeadApplicationModel.SubmitCustomFormResponse>;
|
|
92
92
|
}
|
|
93
|
-
import LeadApplicationValidator = require("
|
|
94
|
-
import LeadApplicationModel = require("
|
|
93
|
+
import LeadApplicationValidator = require("./LeadApplicationValidator");
|
|
94
|
+
import LeadApplicationModel = require("./LeadApplicationModel");
|
|
@@ -89,4 +89,4 @@ type SubmitCustomFormParam = {
|
|
|
89
89
|
slug: string;
|
|
90
90
|
body: LeadApplicationModel.CustomFormSubmissionPayload;
|
|
91
91
|
};
|
|
92
|
-
import LeadApplicationModel = require("
|
|
92
|
+
import LeadApplicationModel = require("./LeadApplicationModel");
|
|
@@ -132,5 +132,5 @@ declare class Logistic {
|
|
|
132
132
|
*/
|
|
133
133
|
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressRequest>;
|
|
134
134
|
}
|
|
135
|
-
import LogisticApplicationModel = require("
|
|
136
|
-
import LogisticApplicationValidator = require("
|
|
135
|
+
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
136
|
+
import LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
@@ -257,4 +257,4 @@ type ValidateAddressParam = {
|
|
|
257
257
|
body: LogisticApplicationModel.ValidateAddressRequest;
|
|
258
258
|
};
|
|
259
259
|
type GetAllCountriesParam = any;
|
|
260
|
-
import LogisticApplicationModel = require("
|
|
260
|
+
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
@@ -135,5 +135,5 @@ declare class Order {
|
|
|
135
135
|
*/
|
|
136
136
|
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponse>;
|
|
137
137
|
}
|
|
138
|
-
import OrderApplicationValidator = require("
|
|
139
|
-
import OrderApplicationModel = require("
|
|
138
|
+
import OrderApplicationValidator = require("./OrderApplicationValidator");
|
|
139
|
+
import OrderApplicationModel = require("./OrderApplicationModel");
|
|
@@ -260,4 +260,4 @@ type VerifyOtpShipmentCustomerParam = {
|
|
|
260
260
|
shipmentId: string;
|
|
261
261
|
body: OrderApplicationModel.VerifyOtp;
|
|
262
262
|
};
|
|
263
|
-
import OrderApplicationModel = require("
|
|
263
|
+
import OrderApplicationModel = require("./OrderApplicationModel");
|
|
@@ -585,5 +585,5 @@ declare class Payment {
|
|
|
585
585
|
*/
|
|
586
586
|
walletLinkInitiate({ body, requestHeaders }?: PaymentApplicationValidator.WalletLinkInitiateParam, { responseHeaders }?: object): Promise<PaymentApplicationModel.WalletResponseSchema>;
|
|
587
587
|
}
|
|
588
|
-
import PaymentApplicationValidator = require("
|
|
589
|
-
import PaymentApplicationModel = require("
|
|
588
|
+
import PaymentApplicationValidator = require("./PaymentApplicationValidator");
|
|
589
|
+
import PaymentApplicationModel = require("./PaymentApplicationModel");
|
|
@@ -540,4 +540,4 @@ type WalletLinkInitiateParam = {
|
|
|
540
540
|
type GetActiveRefundTransferModesParam = any;
|
|
541
541
|
type GetEpaylaterBannerDetailsParam = any;
|
|
542
542
|
type GetRupifiBannerDetailsParam = any;
|
|
543
|
-
import PaymentApplicationModel = require("
|
|
543
|
+
import PaymentApplicationModel = require("./PaymentApplicationModel");
|
|
@@ -319,5 +319,5 @@ declare class PosCart {
|
|
|
319
319
|
*/
|
|
320
320
|
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: PosCartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.PaymentCouponValidate>;
|
|
321
321
|
}
|
|
322
|
-
import PosCartApplicationValidator = require("
|
|
323
|
-
import PosCartApplicationModel = require("
|
|
322
|
+
import PosCartApplicationValidator = require("./PosCartApplicationValidator");
|
|
323
|
+
import PosCartApplicationModel = require("./PosCartApplicationModel");
|
|
@@ -480,4 +480,4 @@ type ValidateCouponForPaymentParam = {
|
|
|
480
480
|
type?: string;
|
|
481
481
|
cardId?: string;
|
|
482
482
|
};
|
|
483
|
-
import PosCartApplicationModel = require("
|
|
483
|
+
import PosCartApplicationModel = require("./PosCartApplicationModel");
|
|
@@ -89,5 +89,5 @@ declare class Rewards {
|
|
|
89
89
|
*/
|
|
90
90
|
redeemReferralCode({ body, requestHeaders }?: RewardsApplicationValidator.RedeemReferralCodeParam, { responseHeaders }?: object): Promise<RewardsApplicationModel.RedeemReferralCodeResponse>;
|
|
91
91
|
}
|
|
92
|
-
import RewardsApplicationValidator = require("
|
|
93
|
-
import RewardsApplicationModel = require("
|
|
92
|
+
import RewardsApplicationValidator = require("./RewardsApplicationValidator");
|
|
93
|
+
import RewardsApplicationModel = require("./RewardsApplicationModel");
|
|
@@ -70,4 +70,4 @@ type RedeemReferralCodeParam = {
|
|
|
70
70
|
};
|
|
71
71
|
type GetUserPointsParam = any;
|
|
72
72
|
type GetUserReferralDetailsParam = any;
|
|
73
|
-
import RewardsApplicationModel = require("
|
|
73
|
+
import RewardsApplicationModel = require("./RewardsApplicationModel");
|
|
@@ -85,5 +85,5 @@ declare class Share {
|
|
|
85
85
|
*/
|
|
86
86
|
getUrlQRCode({ url, requestHeaders }?: ShareApplicationValidator.GetUrlQRCodeParam, { responseHeaders }?: object): Promise<ShareApplicationModel.QRCodeResp>;
|
|
87
87
|
}
|
|
88
|
-
import ShareApplicationValidator = require("
|
|
89
|
-
import ShareApplicationModel = require("
|
|
88
|
+
import ShareApplicationValidator = require("./ShareApplicationValidator");
|
|
89
|
+
import ShareApplicationModel = require("./ShareApplicationModel");
|
|
@@ -55,6 +55,7 @@ export = ShareApplicationModel;
|
|
|
55
55
|
* @typedef UrlInfo
|
|
56
56
|
* @property {string} [original]
|
|
57
57
|
* @property {string} [hash]
|
|
58
|
+
* @property {string} [short_url]
|
|
58
59
|
*/
|
|
59
60
|
/**
|
|
60
61
|
* @typedef ShortLinkRes
|
|
@@ -162,6 +163,7 @@ declare function UrlInfo(): UrlInfo;
|
|
|
162
163
|
type UrlInfo = {
|
|
163
164
|
original?: string;
|
|
164
165
|
hash?: string;
|
|
166
|
+
short_url?: string;
|
|
165
167
|
};
|
|
166
168
|
/** @returns {ShortLinkRes} */
|
|
167
169
|
declare function ShortLinkRes(): ShortLinkRes;
|
|
@@ -64,6 +64,7 @@ const Joi = require("joi");
|
|
|
64
64
|
* @typedef UrlInfo
|
|
65
65
|
* @property {string} [original]
|
|
66
66
|
* @property {string} [hash]
|
|
67
|
+
* @property {string} [short_url]
|
|
67
68
|
*/
|
|
68
69
|
|
|
69
70
|
/**
|
|
@@ -177,6 +178,7 @@ class ShareApplicationModel {
|
|
|
177
178
|
return Joi.object({
|
|
178
179
|
original: Joi.string().allow(""),
|
|
179
180
|
hash: Joi.string().allow(""),
|
|
181
|
+
short_url: Joi.string().allow(""),
|
|
180
182
|
});
|
|
181
183
|
}
|
|
182
184
|
|
|
@@ -85,4 +85,4 @@ type GetUrlQRCodeParam = {
|
|
|
85
85
|
url: string;
|
|
86
86
|
};
|
|
87
87
|
type GetApplicationQRCodeParam = any;
|
|
88
|
-
import ShareApplicationModel = require("
|
|
88
|
+
import ShareApplicationModel = require("./ShareApplicationModel");
|
|
@@ -51,5 +51,5 @@ declare class Theme {
|
|
|
51
51
|
*/
|
|
52
52
|
getThemeForPreview({ themeId, requestHeaders }?: ThemeApplicationValidator.GetThemeForPreviewParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.ThemesSchema>;
|
|
53
53
|
}
|
|
54
|
-
import ThemeApplicationValidator = require("
|
|
55
|
-
import ThemeApplicationModel = require("
|
|
54
|
+
import ThemeApplicationValidator = require("./ThemeApplicationValidator");
|
|
55
|
+
import ThemeApplicationModel = require("./ThemeApplicationModel");
|
|
@@ -486,5 +486,5 @@ declare class User {
|
|
|
486
486
|
*/
|
|
487
487
|
verifyMobileOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyMobileOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyOtpSuccess>;
|
|
488
488
|
}
|
|
489
|
-
import UserApplicationValidator = require("
|
|
490
|
-
import UserApplicationModel = require("
|
|
489
|
+
import UserApplicationValidator = require("./UserApplicationValidator");
|
|
490
|
+
import UserApplicationModel = require("./UserApplicationModel");
|
|
@@ -557,4 +557,4 @@ type GetListOfActiveSessionsParam = any;
|
|
|
557
557
|
type GetLoggedInUserParam = any;
|
|
558
558
|
type HasPasswordParam = any;
|
|
559
559
|
type LogoutParam = any;
|
|
560
|
-
import UserApplicationModel = require("
|
|
560
|
+
import UserApplicationModel = require("./UserApplicationModel");
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export const ApplicationConfig: typeof import("
|
|
2
|
-
export const ApplicationClient: typeof import("
|
|
1
|
+
export const ApplicationConfig: typeof import("./ApplicationConfig");
|
|
2
|
+
export const ApplicationClient: typeof import("./ApplicationClient");
|
|
3
3
|
export namespace ApplicationModel {
|
|
4
|
-
const CartApplicationModel: typeof import("
|
|
5
|
-
const CatalogApplicationModel: typeof import("
|
|
6
|
-
const CommonApplicationModel: typeof import("
|
|
7
|
-
const CommunicationApplicationModel: typeof import("
|
|
8
|
-
const ConfigurationApplicationModel: typeof import("
|
|
9
|
-
const ContentApplicationModel: typeof import("
|
|
10
|
-
const FileStorageApplicationModel: typeof import("
|
|
11
|
-
const LeadApplicationModel: typeof import("
|
|
12
|
-
const LogisticApplicationModel: typeof import("
|
|
13
|
-
const OrderApplicationModel: typeof import("
|
|
14
|
-
const PaymentApplicationModel: typeof import("
|
|
15
|
-
const PosCartApplicationModel: typeof import("
|
|
16
|
-
const RewardsApplicationModel: typeof import("
|
|
17
|
-
const ShareApplicationModel: typeof import("
|
|
18
|
-
const ThemeApplicationModel: typeof import("
|
|
19
|
-
const UserApplicationModel: typeof import("
|
|
4
|
+
const CartApplicationModel: typeof import("./Cart/CartApplicationModel");
|
|
5
|
+
const CatalogApplicationModel: typeof import("./Catalog/CatalogApplicationModel");
|
|
6
|
+
const CommonApplicationModel: typeof import("./Common/CommonApplicationModel");
|
|
7
|
+
const CommunicationApplicationModel: typeof import("./Communication/CommunicationApplicationModel");
|
|
8
|
+
const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel");
|
|
9
|
+
const ContentApplicationModel: typeof import("./Content/ContentApplicationModel");
|
|
10
|
+
const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel");
|
|
11
|
+
const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel");
|
|
12
|
+
const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel");
|
|
13
|
+
const OrderApplicationModel: typeof import("./Order/OrderApplicationModel");
|
|
14
|
+
const PaymentApplicationModel: typeof import("./Payment/PaymentApplicationModel");
|
|
15
|
+
const PosCartApplicationModel: typeof import("./PosCart/PosCartApplicationModel");
|
|
16
|
+
const RewardsApplicationModel: typeof import("./Rewards/RewardsApplicationModel");
|
|
17
|
+
const ShareApplicationModel: typeof import("./Share/ShareApplicationModel");
|
|
18
|
+
const ThemeApplicationModel: typeof import("./Theme/ThemeApplicationModel");
|
|
19
|
+
const UserApplicationModel: typeof import("./User/UserApplicationModel");
|
|
20
20
|
}
|
|
@@ -69,4 +69,4 @@ declare class FileStorage {
|
|
|
69
69
|
*/
|
|
70
70
|
browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
71
71
|
}
|
|
72
|
-
import FileStoragePartnerModel = require("
|
|
72
|
+
import FileStoragePartnerModel = require("./FileStoragePartnerModel");
|
|
@@ -121,5 +121,5 @@ declare class Lead {
|
|
|
121
121
|
*/
|
|
122
122
|
getGeneralConfig({ requestHeaders }?: LeadPartnerValidator.GetGeneralConfigParam, { responseHeaders }?: object): Promise<LeadPartnerModel.GeneralConfigResponse>;
|
|
123
123
|
}
|
|
124
|
-
import LeadPartnerModel = require("
|
|
125
|
-
import Paginator = require("
|
|
124
|
+
import LeadPartnerModel = require("./LeadPartnerModel");
|
|
125
|
+
import Paginator = require("../../common/Paginator");
|
|
@@ -152,4 +152,4 @@ declare class Logistics {
|
|
|
152
152
|
*/
|
|
153
153
|
getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.GetCountries>;
|
|
154
154
|
}
|
|
155
|
-
import LogisticsPartnerModel = require("
|
|
155
|
+
import LogisticsPartnerModel = require("./LogisticsPartnerModel");
|
|
@@ -8,8 +8,8 @@ declare class OAuthClient extends BaseOAuthClient {
|
|
|
8
8
|
grant_type: any;
|
|
9
9
|
refresh_token: any;
|
|
10
10
|
code: any;
|
|
11
|
-
}): Promise<import("
|
|
12
|
-
getOfflineAccessToken(scopes: any, code: any): Promise<import("
|
|
13
|
-
getOfflineAccessTokenObj(scopes: any, code: any): Promise<import("
|
|
11
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
getOfflineAccessToken(scopes: any, code: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
getOfflineAccessTokenObj(scopes: any, code: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
14
|
}
|
|
15
|
-
import BaseOAuthClient = require("
|
|
15
|
+
import BaseOAuthClient = require("../common/BaseOAuthClient");
|
|
@@ -13,7 +13,7 @@ declare class APIClient {
|
|
|
13
13
|
* @param {object} xHeaders
|
|
14
14
|
* @param {Options} options
|
|
15
15
|
*/
|
|
16
|
-
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: Options): Promise<import("
|
|
16
|
+
static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: Options): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
17
|
get(url: any, config: any): Promise<any>;
|
|
18
18
|
}
|
|
19
19
|
declare namespace APIClient {
|
|
@@ -12,7 +12,7 @@ declare class PartnerClient {
|
|
|
12
12
|
* partner client.
|
|
13
13
|
*/
|
|
14
14
|
constructor(config: import("./PartnerConfig"));
|
|
15
|
-
config: import("
|
|
15
|
+
config: import("./PartnerConfig");
|
|
16
16
|
fileStorage: FileStorage;
|
|
17
17
|
lead: Lead;
|
|
18
18
|
logistics: Logistics;
|
|
@@ -26,8 +26,8 @@ declare class PartnerClient {
|
|
|
26
26
|
*/
|
|
27
27
|
setExtraHeaders(header: object): void;
|
|
28
28
|
}
|
|
29
|
-
import FileStorage = require("
|
|
30
|
-
import Lead = require("
|
|
31
|
-
import Logistics = require("
|
|
32
|
-
import Theme = require("
|
|
33
|
-
import Webhook = require("
|
|
29
|
+
import FileStorage = require("./FileStorage/FileStoragePartnerClient");
|
|
30
|
+
import Lead = require("./Lead/LeadPartnerClient");
|
|
31
|
+
import Logistics = require("./Logistics/LogisticsPartnerClient");
|
|
32
|
+
import Theme = require("./Theme/ThemePartnerClient");
|
|
33
|
+
import Webhook = require("./Webhook/WebhookPartnerClient");
|