@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.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/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +20 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -12,30 +12,30 @@ declare class FileStorage {
|
|
|
12
12
|
/**
|
|
13
13
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
14
14
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
15
|
-
* @returns {Promise<
|
|
15
|
+
* @returns {Promise<CompleteResponse>} - Success response
|
|
16
16
|
* @name completeUpload
|
|
17
|
-
* @summary:
|
|
17
|
+
* @summary: Complete file upload
|
|
18
18
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
19
19
|
*/
|
|
20
|
-
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
20
|
+
completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CompleteResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
23
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
24
|
-
* @returns {Promise<
|
|
24
|
+
* @returns {Promise<SignUrlResponse>} - Success response
|
|
25
25
|
* @name signUrls
|
|
26
|
-
* @summary:
|
|
26
|
+
* @summary: Get signed URLs
|
|
27
27
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
28
28
|
*/
|
|
29
|
-
signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
29
|
+
signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SignUrlResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
32
32
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
33
|
-
* @returns {Promise<
|
|
33
|
+
* @returns {Promise<StartResponse>} - Success response
|
|
34
34
|
* @name startUpload
|
|
35
35
|
* @summary: Initiates file upload
|
|
36
36
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
37
37
|
*/
|
|
38
|
-
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
38
|
+
startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<StartResponse>;
|
|
39
39
|
/**
|
|
40
40
|
* @param data
|
|
41
41
|
* @param {string} file_name
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -9,10 +14,10 @@ class FileStorage {
|
|
|
9
14
|
this._conf = _conf;
|
|
10
15
|
this._relativeUrls = {
|
|
11
16
|
completeUpload:
|
|
12
|
-
"/service/application/assets/
|
|
17
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",
|
|
13
18
|
signUrls: "/service/application/assets/v1.0/sign-urls",
|
|
14
19
|
startUpload:
|
|
15
|
-
"/service/application/assets/
|
|
20
|
+
"/service/application/assets/v1.0/namespaces/{namespace}/upload/start",
|
|
16
21
|
};
|
|
17
22
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
18
23
|
(urls, [method, relativeUrl]) => {
|
|
@@ -33,15 +38,30 @@ class FileStorage {
|
|
|
33
38
|
/**
|
|
34
39
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
35
40
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
36
|
-
* @returns {Promise<
|
|
41
|
+
* @returns {Promise<CompleteResponse>} - Success response
|
|
37
42
|
* @name completeUpload
|
|
38
|
-
* @summary:
|
|
43
|
+
* @summary: Complete file upload
|
|
39
44
|
* @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
|
|
40
45
|
*/
|
|
41
46
|
async completeUpload(
|
|
42
47
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
43
48
|
{ responseHeaders } = { responseHeaders: false }
|
|
44
49
|
) {
|
|
50
|
+
let invalidInput = [];
|
|
51
|
+
|
|
52
|
+
if (!namespace) {
|
|
53
|
+
invalidInput.push({
|
|
54
|
+
message: `The 'namespace' field is required.`,
|
|
55
|
+
path: ["namespace"],
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (invalidInput.length) {
|
|
59
|
+
const error = new Error();
|
|
60
|
+
error.message = "Missing required field";
|
|
61
|
+
error.details = invalidInput;
|
|
62
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
63
|
+
}
|
|
64
|
+
|
|
45
65
|
const query_params = {};
|
|
46
66
|
|
|
47
67
|
const xHeaders = {};
|
|
@@ -70,15 +90,23 @@ class FileStorage {
|
|
|
70
90
|
/**
|
|
71
91
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
92
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
73
|
-
* @returns {Promise<
|
|
93
|
+
* @returns {Promise<SignUrlResponse>} - Success response
|
|
74
94
|
* @name signUrls
|
|
75
|
-
* @summary:
|
|
95
|
+
* @summary: Get signed URLs
|
|
76
96
|
* @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
|
|
77
97
|
*/
|
|
78
98
|
async signUrls(
|
|
79
99
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
80
100
|
{ responseHeaders } = { responseHeaders: false }
|
|
81
101
|
) {
|
|
102
|
+
let invalidInput = [];
|
|
103
|
+
if (invalidInput.length) {
|
|
104
|
+
const error = new Error();
|
|
105
|
+
error.message = "Missing required field";
|
|
106
|
+
error.details = invalidInput;
|
|
107
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
108
|
+
}
|
|
109
|
+
|
|
82
110
|
const query_params = {};
|
|
83
111
|
|
|
84
112
|
const xHeaders = {};
|
|
@@ -107,7 +135,7 @@ class FileStorage {
|
|
|
107
135
|
/**
|
|
108
136
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
109
137
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
110
|
-
* @returns {Promise<
|
|
138
|
+
* @returns {Promise<StartResponse>} - Success response
|
|
111
139
|
* @name startUpload
|
|
112
140
|
* @summary: Initiates file upload
|
|
113
141
|
* @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
|
|
@@ -116,6 +144,21 @@ class FileStorage {
|
|
|
116
144
|
{ namespace, body, requestHeaders } = { requestHeaders: {} },
|
|
117
145
|
{ responseHeaders } = { responseHeaders: false }
|
|
118
146
|
) {
|
|
147
|
+
let invalidInput = [];
|
|
148
|
+
|
|
149
|
+
if (!namespace) {
|
|
150
|
+
invalidInput.push({
|
|
151
|
+
message: `The 'namespace' field is required.`,
|
|
152
|
+
path: ["namespace"],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
if (invalidInput.length) {
|
|
156
|
+
const error = new Error();
|
|
157
|
+
error.message = "Missing required field";
|
|
158
|
+
error.details = invalidInput;
|
|
159
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
160
|
+
}
|
|
161
|
+
|
|
119
162
|
const query_params = {};
|
|
120
163
|
|
|
121
164
|
const xHeaders = {};
|
|
@@ -50,10 +50,10 @@ declare class Lead {
|
|
|
50
50
|
/**
|
|
51
51
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
52
52
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
53
|
-
* @returns {Promise<
|
|
53
|
+
* @returns {Promise<SubmitCustomFormResponse>} - Success response
|
|
54
54
|
* @name submitCustomForm
|
|
55
55
|
* @summary: Submits form data
|
|
56
56
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
57
57
|
*/
|
|
58
|
-
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
58
|
+
submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SubmitCustomFormResponse>;
|
|
59
59
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -40,6 +45,21 @@ class Lead {
|
|
|
40
45
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
41
46
|
{ responseHeaders } = { responseHeaders: false }
|
|
42
47
|
) {
|
|
48
|
+
let invalidInput = [];
|
|
49
|
+
|
|
50
|
+
if (!id) {
|
|
51
|
+
invalidInput.push({
|
|
52
|
+
message: `The 'id' field is required.`,
|
|
53
|
+
path: ["id"],
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (invalidInput.length) {
|
|
57
|
+
const error = new Error();
|
|
58
|
+
error.message = "Missing required field";
|
|
59
|
+
error.details = invalidInput;
|
|
60
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
61
|
+
}
|
|
62
|
+
|
|
43
63
|
const query_params = {};
|
|
44
64
|
|
|
45
65
|
const xHeaders = {};
|
|
@@ -77,6 +97,14 @@ class Lead {
|
|
|
77
97
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
78
98
|
{ responseHeaders } = { responseHeaders: false }
|
|
79
99
|
) {
|
|
100
|
+
let invalidInput = [];
|
|
101
|
+
if (invalidInput.length) {
|
|
102
|
+
const error = new Error();
|
|
103
|
+
error.message = "Missing required field";
|
|
104
|
+
error.details = invalidInput;
|
|
105
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
106
|
+
}
|
|
107
|
+
|
|
80
108
|
const query_params = {};
|
|
81
109
|
|
|
82
110
|
const xHeaders = {};
|
|
@@ -114,6 +142,21 @@ class Lead {
|
|
|
114
142
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
115
143
|
{ responseHeaders } = { responseHeaders: false }
|
|
116
144
|
) {
|
|
145
|
+
let invalidInput = [];
|
|
146
|
+
|
|
147
|
+
if (!slug) {
|
|
148
|
+
invalidInput.push({
|
|
149
|
+
message: `The 'slug' field is required.`,
|
|
150
|
+
path: ["slug"],
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (invalidInput.length) {
|
|
154
|
+
const error = new Error();
|
|
155
|
+
error.message = "Missing required field";
|
|
156
|
+
error.details = invalidInput;
|
|
157
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
158
|
+
}
|
|
159
|
+
|
|
117
160
|
const query_params = {};
|
|
118
161
|
|
|
119
162
|
const xHeaders = {};
|
|
@@ -151,6 +194,21 @@ class Lead {
|
|
|
151
194
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
152
195
|
{ responseHeaders } = { responseHeaders: false }
|
|
153
196
|
) {
|
|
197
|
+
let invalidInput = [];
|
|
198
|
+
|
|
199
|
+
if (!id) {
|
|
200
|
+
invalidInput.push({
|
|
201
|
+
message: `The 'id' field is required.`,
|
|
202
|
+
path: ["id"],
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
if (invalidInput.length) {
|
|
206
|
+
const error = new Error();
|
|
207
|
+
error.message = "Missing required field";
|
|
208
|
+
error.details = invalidInput;
|
|
209
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
210
|
+
}
|
|
211
|
+
|
|
154
212
|
const query_params = {};
|
|
155
213
|
|
|
156
214
|
const xHeaders = {};
|
|
@@ -179,7 +237,7 @@ class Lead {
|
|
|
179
237
|
/**
|
|
180
238
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
181
239
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
182
|
-
* @returns {Promise<
|
|
240
|
+
* @returns {Promise<SubmitCustomFormResponse>} - Success response
|
|
183
241
|
* @name submitCustomForm
|
|
184
242
|
* @summary: Submits form data
|
|
185
243
|
* @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
|
|
@@ -188,6 +246,21 @@ class Lead {
|
|
|
188
246
|
{ slug, body, requestHeaders } = { requestHeaders: {} },
|
|
189
247
|
{ responseHeaders } = { responseHeaders: false }
|
|
190
248
|
) {
|
|
249
|
+
let invalidInput = [];
|
|
250
|
+
|
|
251
|
+
if (!slug) {
|
|
252
|
+
invalidInput.push({
|
|
253
|
+
message: `The 'slug' field is required.`,
|
|
254
|
+
path: ["slug"],
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
if (invalidInput.length) {
|
|
258
|
+
const error = new Error();
|
|
259
|
+
error.message = "Missing required field";
|
|
260
|
+
error.details = invalidInput;
|
|
261
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
262
|
+
}
|
|
263
|
+
|
|
191
264
|
const query_params = {};
|
|
192
265
|
|
|
193
266
|
const xHeaders = {};
|
|
@@ -6,8 +6,6 @@ declare class Logistic {
|
|
|
6
6
|
getAllCountries: string;
|
|
7
7
|
getCountries: string;
|
|
8
8
|
getCountry: string;
|
|
9
|
-
getCourierPartners: string;
|
|
10
|
-
getDeliveryPromise: string;
|
|
11
9
|
getLocalities: string;
|
|
12
10
|
getLocality: string;
|
|
13
11
|
getLocations: string;
|
|
@@ -22,12 +20,12 @@ declare class Logistic {
|
|
|
22
20
|
/**
|
|
23
21
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
24
22
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
25
|
-
* @returns {Promise<
|
|
23
|
+
* @returns {Promise<CountryListResponse>} - Success response
|
|
26
24
|
* @name getAllCountries
|
|
27
25
|
* @summary: Get deliverable countries
|
|
28
26
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
29
27
|
*/
|
|
30
|
-
getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
28
|
+
getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryListResponse>;
|
|
31
29
|
/**
|
|
32
30
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
33
31
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -36,7 +34,7 @@ declare class Logistic {
|
|
|
36
34
|
* @summary: Get countries
|
|
37
35
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
38
36
|
*/
|
|
39
|
-
getCountries({ onboarding, pageNo, pageSize, q,
|
|
37
|
+
getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
|
|
40
38
|
/**
|
|
41
39
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
42
40
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -46,24 +44,6 @@ declare class Logistic {
|
|
|
46
44
|
* @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
|
|
47
45
|
*/
|
|
48
46
|
getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountry>;
|
|
49
|
-
/**
|
|
50
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
51
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
52
|
-
* @returns {Promise<ShipmentCourierPartnerResult>} - Success response
|
|
53
|
-
* @name getCourierPartners
|
|
54
|
-
* @summary: Serviceable Courier Partners.
|
|
55
|
-
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
56
|
-
*/
|
|
57
|
-
getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentCourierPartnerResult>;
|
|
58
|
-
/**
|
|
59
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
|
-
* @returns {Promise<GetPromiseDetails>} - Success response
|
|
62
|
-
* @name getDeliveryPromise
|
|
63
|
-
* @summary: Get delivery promise
|
|
64
|
-
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
65
|
-
*/
|
|
66
|
-
getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
|
|
67
47
|
/**
|
|
68
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
49
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -85,55 +65,55 @@ declare class Logistic {
|
|
|
85
65
|
/**
|
|
86
66
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
87
67
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
88
|
-
* @returns {Promise<
|
|
68
|
+
* @returns {Promise<GetStoreResponse>} - Success response
|
|
89
69
|
* @name getLocations
|
|
90
70
|
* @summary: Get available selling locations
|
|
91
71
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
92
72
|
*/
|
|
93
|
-
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
73
|
+
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetStoreResponse>;
|
|
94
74
|
/**
|
|
95
75
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
96
76
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
97
|
-
* @returns {Promise<
|
|
77
|
+
* @returns {Promise<ReAssignStoreResponse>} - Success response
|
|
98
78
|
* @name getOptimalLocations
|
|
99
79
|
* @summary: Get selling locations
|
|
100
80
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
101
81
|
*/
|
|
102
|
-
getOptimalLocations({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
82
|
+
getOptimalLocations({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ReAssignStoreResponse>;
|
|
103
83
|
/**
|
|
104
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
105
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
106
|
-
* @returns {Promise<
|
|
86
|
+
* @returns {Promise<PincodeApiResponse>} - Success response
|
|
107
87
|
* @name getPincodeCity
|
|
108
88
|
* @summary: Get pincode details
|
|
109
89
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
110
90
|
*/
|
|
111
|
-
getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
91
|
+
getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PincodeApiResponse>;
|
|
112
92
|
/**
|
|
113
93
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
114
94
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
115
|
-
* @returns {Promise<
|
|
95
|
+
* @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
|
|
116
96
|
* @name getPincodeZones
|
|
117
97
|
* @summary: Get zones
|
|
118
98
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
119
99
|
*/
|
|
120
|
-
getPincodeZones({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
100
|
+
getPincodeZones({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetZoneFromPincodeViewResponse>;
|
|
121
101
|
/**
|
|
122
102
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
123
103
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
124
|
-
* @returns {Promise<
|
|
104
|
+
* @returns {Promise<TATViewResponse>} - Success response
|
|
125
105
|
* @name getTatProduct
|
|
126
106
|
* @summary: Get product's turnaround time
|
|
127
107
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
128
108
|
*/
|
|
129
|
-
getTatProduct({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
109
|
+
getTatProduct({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TATViewResponse>;
|
|
130
110
|
/**
|
|
131
111
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
132
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
133
|
-
* @returns {Promise<
|
|
113
|
+
* @returns {Promise<ValidateAddressRequest>} - Success response
|
|
134
114
|
* @name validateAddress
|
|
135
115
|
* @summary: Validate address
|
|
136
116
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
137
117
|
*/
|
|
138
|
-
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
118
|
+
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateAddressRequest>;
|
|
139
119
|
}
|