@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- 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 +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- 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 +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- 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 +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- 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 +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +810 -6
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -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/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export = ServiceabilityPlatformValidator;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef BulkServiceabilityParam
|
|
4
|
-
* @property {string} extensionId - Unique Identifier of
|
|
5
|
-
* @property {string} schemeId - Unique identifier of
|
|
6
|
-
* @property {ServiceabilityPlatformModel.
|
|
4
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
5
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
6
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef BulkTatParam
|
|
10
|
-
* @property {string} extensionId - Unique Identifier of
|
|
11
|
-
* @property {string} schemeId - Unique identifier of
|
|
12
|
-
* @property {ServiceabilityPlatformModel.
|
|
10
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
11
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
12
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* @typedef CreateCourierPartnerAccountParam
|
|
16
|
-
* @property {ServiceabilityPlatformModel.
|
|
16
|
+
* @property {ServiceabilityPlatformModel.CourierAccountDetailsBody} body
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
19
|
* @typedef CreatePackageMaterialParam
|
|
@@ -30,8 +30,8 @@ export = ServiceabilityPlatformValidator;
|
|
|
30
30
|
/** @typedef GetAllStoresParam */
|
|
31
31
|
/**
|
|
32
32
|
* @typedef GetBulkServiceabilityParam
|
|
33
|
-
* @property {string} extensionId - Unique Identifier of
|
|
34
|
-
* @property {string} schemeId - Unique identifier of
|
|
33
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
34
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
35
35
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
36
36
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
37
37
|
* @property {string} [batchId] - Unique identifier of bulk job
|
|
@@ -44,8 +44,8 @@ export = ServiceabilityPlatformValidator;
|
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
46
|
* @typedef GetBulkTatParam
|
|
47
|
-
* @property {string} extensionId - Unique Identifier of
|
|
48
|
-
* @property {string} schemeId - Unique identifier of
|
|
47
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
48
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
49
49
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
50
50
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
51
51
|
* @property {string} [batchId] - Unique identifier of bulk job
|
|
@@ -59,7 +59,7 @@ export = ServiceabilityPlatformValidator;
|
|
|
59
59
|
/** @typedef GetCompanyConfigurationParam */
|
|
60
60
|
/**
|
|
61
61
|
* @typedef GetCourierPartnerAccountParam
|
|
62
|
-
* @property {string} accountId - Unique ID of courier account
|
|
62
|
+
* @property {string} accountId - Unique ID of courier partner account
|
|
63
63
|
*/
|
|
64
64
|
/**
|
|
65
65
|
* @typedef GetCourierPartnerAccountsParam
|
|
@@ -71,7 +71,7 @@ export = ServiceabilityPlatformValidator;
|
|
|
71
71
|
*/
|
|
72
72
|
/**
|
|
73
73
|
* @typedef GetOptimalLocationsParam
|
|
74
|
-
* @property {ServiceabilityPlatformModel.
|
|
74
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsDetailsSchema} body
|
|
75
75
|
*/
|
|
76
76
|
/**
|
|
77
77
|
* @typedef GetPackageMaterialListParam
|
|
@@ -94,13 +94,12 @@ export = ServiceabilityPlatformValidator;
|
|
|
94
94
|
*/
|
|
95
95
|
/**
|
|
96
96
|
* @typedef GetPackageMaterialsParam
|
|
97
|
-
* @property {string} packageMaterialId -
|
|
98
|
-
* identifier for a Package Material
|
|
97
|
+
* @property {string} packageMaterialId - Unique identifier for a Package. Material
|
|
99
98
|
*/
|
|
100
99
|
/**
|
|
101
100
|
* @typedef GetServiceabilityParam
|
|
102
|
-
* @property {string} extensionId - Unique Identifier of
|
|
103
|
-
* @property {string} schemeId - Unique identifier of
|
|
101
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
102
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
104
103
|
* @property {string} regionId - Unique identifier of a region
|
|
105
104
|
*/
|
|
106
105
|
/**
|
|
@@ -126,8 +125,8 @@ export = ServiceabilityPlatformValidator;
|
|
|
126
125
|
*/
|
|
127
126
|
/**
|
|
128
127
|
* @typedef UpdateCourierPartnerAccountParam
|
|
129
|
-
* @property {string} accountId - Unique ID of courier account
|
|
130
|
-
* @property {ServiceabilityPlatformModel.
|
|
128
|
+
* @property {string} accountId - Unique ID of courier partner account
|
|
129
|
+
* @property {ServiceabilityPlatformModel.CourierAccountUpdateDetails} body
|
|
131
130
|
*/
|
|
132
131
|
/**
|
|
133
132
|
* @typedef UpdatePackageMaterialRuleParam
|
|
@@ -137,14 +136,13 @@ export = ServiceabilityPlatformValidator;
|
|
|
137
136
|
*/
|
|
138
137
|
/**
|
|
139
138
|
* @typedef UpdatePackageMaterialsParam
|
|
140
|
-
* @property {string} packageMaterialId -
|
|
141
|
-
* identifier for a Package Material
|
|
139
|
+
* @property {string} packageMaterialId - Unique identifier for a Package. Material
|
|
142
140
|
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
143
141
|
*/
|
|
144
142
|
/**
|
|
145
143
|
* @typedef UpdateServiceabilityParam
|
|
146
|
-
* @property {string} extensionId - Unique Identifier of
|
|
147
|
-
* @property {string} schemeId - Unique identifier of
|
|
144
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
145
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
148
146
|
* @property {string} regionId - Unique identifier of a region
|
|
149
147
|
* @property {ServiceabilityPlatformModel.ServiceabilityModel} body
|
|
150
148
|
*/
|
|
@@ -212,28 +210,28 @@ declare namespace ServiceabilityPlatformValidator {
|
|
|
212
210
|
}
|
|
213
211
|
type BulkServiceabilityParam = {
|
|
214
212
|
/**
|
|
215
|
-
* - Unique Identifier of
|
|
213
|
+
* - Unique Identifier of courier partner extension.
|
|
216
214
|
*/
|
|
217
215
|
extensionId: string;
|
|
218
216
|
/**
|
|
219
|
-
* - Unique identifier of
|
|
217
|
+
* - Unique identifier of courier partner scheme.
|
|
220
218
|
*/
|
|
221
219
|
schemeId: string;
|
|
222
|
-
body: ServiceabilityPlatformModel.
|
|
220
|
+
body: ServiceabilityPlatformModel.BulkRegionJobDetails;
|
|
223
221
|
};
|
|
224
222
|
type BulkTatParam = {
|
|
225
223
|
/**
|
|
226
|
-
* - Unique Identifier of
|
|
224
|
+
* - Unique Identifier of courier partner extension.
|
|
227
225
|
*/
|
|
228
226
|
extensionId: string;
|
|
229
227
|
/**
|
|
230
|
-
* - Unique identifier of
|
|
228
|
+
* - Unique identifier of courier partner scheme.
|
|
231
229
|
*/
|
|
232
230
|
schemeId: string;
|
|
233
|
-
body: ServiceabilityPlatformModel.
|
|
231
|
+
body: ServiceabilityPlatformModel.BulkRegionJobDetails;
|
|
234
232
|
};
|
|
235
233
|
type CreateCourierPartnerAccountParam = {
|
|
236
|
-
body: ServiceabilityPlatformModel.
|
|
234
|
+
body: ServiceabilityPlatformModel.CourierAccountDetailsBody;
|
|
237
235
|
};
|
|
238
236
|
type CreatePackageMaterialParam = {
|
|
239
237
|
body: ServiceabilityPlatformModel.PackageMaterial;
|
|
@@ -246,11 +244,11 @@ type CreateZoneParam = {
|
|
|
246
244
|
};
|
|
247
245
|
type GetBulkServiceabilityParam = {
|
|
248
246
|
/**
|
|
249
|
-
* - Unique Identifier of
|
|
247
|
+
* - Unique Identifier of courier partner extension.
|
|
250
248
|
*/
|
|
251
249
|
extensionId: string;
|
|
252
250
|
/**
|
|
253
|
-
* - Unique identifier of
|
|
251
|
+
* - Unique identifier of courier partner scheme.
|
|
254
252
|
*/
|
|
255
253
|
schemeId: string;
|
|
256
254
|
/**
|
|
@@ -292,11 +290,11 @@ type GetBulkServiceabilityParam = {
|
|
|
292
290
|
};
|
|
293
291
|
type GetBulkTatParam = {
|
|
294
292
|
/**
|
|
295
|
-
* - Unique Identifier of
|
|
293
|
+
* - Unique Identifier of courier partner extension.
|
|
296
294
|
*/
|
|
297
295
|
extensionId: string;
|
|
298
296
|
/**
|
|
299
|
-
* - Unique identifier of
|
|
297
|
+
* - Unique identifier of courier partner scheme.
|
|
300
298
|
*/
|
|
301
299
|
schemeId: string;
|
|
302
300
|
/**
|
|
@@ -338,7 +336,7 @@ type GetBulkTatParam = {
|
|
|
338
336
|
};
|
|
339
337
|
type GetCourierPartnerAccountParam = {
|
|
340
338
|
/**
|
|
341
|
-
* - Unique ID of courier account
|
|
339
|
+
* - Unique ID of courier partner account
|
|
342
340
|
*/
|
|
343
341
|
accountId: string;
|
|
344
342
|
};
|
|
@@ -365,7 +363,7 @@ type GetCourierPartnerAccountsParam = {
|
|
|
365
363
|
transportType?: string;
|
|
366
364
|
};
|
|
367
365
|
type GetOptimalLocationsParam = {
|
|
368
|
-
body: ServiceabilityPlatformModel.
|
|
366
|
+
body: ServiceabilityPlatformModel.OptimlLocationsDetailsSchema;
|
|
369
367
|
};
|
|
370
368
|
type GetPackageMaterialListParam = {
|
|
371
369
|
/**
|
|
@@ -412,18 +410,17 @@ type GetPackageMaterialRulesParam = {
|
|
|
412
410
|
};
|
|
413
411
|
type GetPackageMaterialsParam = {
|
|
414
412
|
/**
|
|
415
|
-
* -
|
|
416
|
-
* identifier for a Package Material
|
|
413
|
+
* - Unique identifier for a Package. Material
|
|
417
414
|
*/
|
|
418
415
|
packageMaterialId: string;
|
|
419
416
|
};
|
|
420
417
|
type GetServiceabilityParam = {
|
|
421
418
|
/**
|
|
422
|
-
* - Unique Identifier of
|
|
419
|
+
* - Unique Identifier of courier partner extension.
|
|
423
420
|
*/
|
|
424
421
|
extensionId: string;
|
|
425
422
|
/**
|
|
426
|
-
* - Unique identifier of
|
|
423
|
+
* - Unique identifier of courier partner scheme.
|
|
427
424
|
*/
|
|
428
425
|
schemeId: string;
|
|
429
426
|
/**
|
|
@@ -484,10 +481,10 @@ type UpdateCompanyConfigurationParam = {
|
|
|
484
481
|
};
|
|
485
482
|
type UpdateCourierPartnerAccountParam = {
|
|
486
483
|
/**
|
|
487
|
-
* - Unique ID of courier account
|
|
484
|
+
* - Unique ID of courier partner account
|
|
488
485
|
*/
|
|
489
486
|
accountId: string;
|
|
490
|
-
body: ServiceabilityPlatformModel.
|
|
487
|
+
body: ServiceabilityPlatformModel.CourierAccountUpdateDetails;
|
|
491
488
|
};
|
|
492
489
|
type UpdatePackageMaterialRuleParam = {
|
|
493
490
|
/**
|
|
@@ -499,19 +496,18 @@ type UpdatePackageMaterialRuleParam = {
|
|
|
499
496
|
};
|
|
500
497
|
type UpdatePackageMaterialsParam = {
|
|
501
498
|
/**
|
|
502
|
-
* -
|
|
503
|
-
* identifier for a Package Material
|
|
499
|
+
* - Unique identifier for a Package. Material
|
|
504
500
|
*/
|
|
505
501
|
packageMaterialId: string;
|
|
506
502
|
body: ServiceabilityPlatformModel.PackageMaterial;
|
|
507
503
|
};
|
|
508
504
|
type UpdateServiceabilityParam = {
|
|
509
505
|
/**
|
|
510
|
-
* - Unique Identifier of
|
|
506
|
+
* - Unique Identifier of courier partner extension.
|
|
511
507
|
*/
|
|
512
508
|
extensionId: string;
|
|
513
509
|
/**
|
|
514
|
-
* - Unique identifier of
|
|
510
|
+
* - Unique identifier of courier partner scheme.
|
|
515
511
|
*/
|
|
516
512
|
schemeId: string;
|
|
517
513
|
/**
|
|
@@ -4,21 +4,21 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef BulkServiceabilityParam
|
|
7
|
-
* @property {string} extensionId - Unique Identifier of
|
|
8
|
-
* @property {string} schemeId - Unique identifier of
|
|
9
|
-
* @property {ServiceabilityPlatformModel.
|
|
7
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
8
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
9
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @typedef BulkTatParam
|
|
14
|
-
* @property {string} extensionId - Unique Identifier of
|
|
15
|
-
* @property {string} schemeId - Unique identifier of
|
|
16
|
-
* @property {ServiceabilityPlatformModel.
|
|
14
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
15
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
16
|
+
* @property {ServiceabilityPlatformModel.BulkRegionJobDetails} body
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @typedef CreateCourierPartnerAccountParam
|
|
21
|
-
* @property {ServiceabilityPlatformModel.
|
|
21
|
+
* @property {ServiceabilityPlatformModel.CourierAccountDetailsBody} body
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -40,8 +40,8 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @typedef GetBulkServiceabilityParam
|
|
43
|
-
* @property {string} extensionId - Unique Identifier of
|
|
44
|
-
* @property {string} schemeId - Unique identifier of
|
|
43
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
44
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
45
45
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
46
46
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
47
47
|
* @property {string} [batchId] - Unique identifier of bulk job
|
|
@@ -55,8 +55,8 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* @typedef GetBulkTatParam
|
|
58
|
-
* @property {string} extensionId - Unique Identifier of
|
|
59
|
-
* @property {string} schemeId - Unique identifier of
|
|
58
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
59
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
60
60
|
* @property {number} [pageNo] - Index of the item to start returning with
|
|
61
61
|
* @property {number} [pageSize] - Determines the items to be displayed in a page
|
|
62
62
|
* @property {string} [batchId] - Unique identifier of bulk job
|
|
@@ -72,7 +72,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* @typedef GetCourierPartnerAccountParam
|
|
75
|
-
* @property {string} accountId - Unique ID of courier account
|
|
75
|
+
* @property {string} accountId - Unique ID of courier partner account
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -86,7 +86,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* @typedef GetOptimalLocationsParam
|
|
89
|
-
* @property {ServiceabilityPlatformModel.
|
|
89
|
+
* @property {ServiceabilityPlatformModel.OptimlLocationsDetailsSchema} body
|
|
90
90
|
*/
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -113,14 +113,13 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* @typedef GetPackageMaterialsParam
|
|
116
|
-
* @property {string} packageMaterialId -
|
|
117
|
-
* identifier for a Package Material
|
|
116
|
+
* @property {string} packageMaterialId - Unique identifier for a Package. Material
|
|
118
117
|
*/
|
|
119
118
|
|
|
120
119
|
/**
|
|
121
120
|
* @typedef GetServiceabilityParam
|
|
122
|
-
* @property {string} extensionId - Unique Identifier of
|
|
123
|
-
* @property {string} schemeId - Unique identifier of
|
|
121
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
122
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
124
123
|
* @property {string} regionId - Unique identifier of a region
|
|
125
124
|
*/
|
|
126
125
|
|
|
@@ -150,8 +149,8 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
150
149
|
|
|
151
150
|
/**
|
|
152
151
|
* @typedef UpdateCourierPartnerAccountParam
|
|
153
|
-
* @property {string} accountId - Unique ID of courier account
|
|
154
|
-
* @property {ServiceabilityPlatformModel.
|
|
152
|
+
* @property {string} accountId - Unique ID of courier partner account
|
|
153
|
+
* @property {ServiceabilityPlatformModel.CourierAccountUpdateDetails} body
|
|
155
154
|
*/
|
|
156
155
|
|
|
157
156
|
/**
|
|
@@ -163,15 +162,14 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
|
|
|
163
162
|
|
|
164
163
|
/**
|
|
165
164
|
* @typedef UpdatePackageMaterialsParam
|
|
166
|
-
* @property {string} packageMaterialId -
|
|
167
|
-
* identifier for a Package Material
|
|
165
|
+
* @property {string} packageMaterialId - Unique identifier for a Package. Material
|
|
168
166
|
* @property {ServiceabilityPlatformModel.PackageMaterial} body
|
|
169
167
|
*/
|
|
170
168
|
|
|
171
169
|
/**
|
|
172
170
|
* @typedef UpdateServiceabilityParam
|
|
173
|
-
* @property {string} extensionId - Unique Identifier of
|
|
174
|
-
* @property {string} schemeId - Unique identifier of
|
|
171
|
+
* @property {string} extensionId - Unique Identifier of courier partner extension.
|
|
172
|
+
* @property {string} schemeId - Unique identifier of courier partner scheme.
|
|
175
173
|
* @property {string} regionId - Unique identifier of a region
|
|
176
174
|
* @property {ServiceabilityPlatformModel.ServiceabilityModel} body
|
|
177
175
|
*/
|
|
@@ -188,7 +186,7 @@ class ServiceabilityPlatformValidator {
|
|
|
188
186
|
return Joi.object({
|
|
189
187
|
extensionId: Joi.string().allow("").required(),
|
|
190
188
|
schemeId: Joi.string().allow("").required(),
|
|
191
|
-
body: ServiceabilityPlatformModel.
|
|
189
|
+
body: ServiceabilityPlatformModel.BulkRegionJobDetails().required(),
|
|
192
190
|
}).required();
|
|
193
191
|
}
|
|
194
192
|
|
|
@@ -197,14 +195,14 @@ class ServiceabilityPlatformValidator {
|
|
|
197
195
|
return Joi.object({
|
|
198
196
|
extensionId: Joi.string().allow("").required(),
|
|
199
197
|
schemeId: Joi.string().allow("").required(),
|
|
200
|
-
body: ServiceabilityPlatformModel.
|
|
198
|
+
body: ServiceabilityPlatformModel.BulkRegionJobDetails().required(),
|
|
201
199
|
}).required();
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
/** @returns {CreateCourierPartnerAccountParam} */
|
|
205
203
|
static createCourierPartnerAccount() {
|
|
206
204
|
return Joi.object({
|
|
207
|
-
body: ServiceabilityPlatformModel.
|
|
205
|
+
body: ServiceabilityPlatformModel.CourierAccountDetailsBody().required(),
|
|
208
206
|
}).required();
|
|
209
207
|
}
|
|
210
208
|
|
|
@@ -294,7 +292,7 @@ class ServiceabilityPlatformValidator {
|
|
|
294
292
|
/** @returns {GetOptimalLocationsParam} */
|
|
295
293
|
static getOptimalLocations() {
|
|
296
294
|
return Joi.object({
|
|
297
|
-
body: ServiceabilityPlatformModel.
|
|
295
|
+
body: ServiceabilityPlatformModel.OptimlLocationsDetailsSchema().required(),
|
|
298
296
|
}).required();
|
|
299
297
|
}
|
|
300
298
|
|
|
@@ -375,7 +373,7 @@ class ServiceabilityPlatformValidator {
|
|
|
375
373
|
static updateCourierPartnerAccount() {
|
|
376
374
|
return Joi.object({
|
|
377
375
|
accountId: Joi.string().allow("").required(),
|
|
378
|
-
body: ServiceabilityPlatformModel.
|
|
376
|
+
body: ServiceabilityPlatformModel.CourierAccountUpdateDetails().required(),
|
|
379
377
|
}).required();
|
|
380
378
|
}
|
|
381
379
|
|
|
@@ -9,7 +9,7 @@ declare class Share {
|
|
|
9
9
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
10
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
11
11
|
* @name createShortLink
|
|
12
|
-
* @summary: Create short link
|
|
12
|
+
* @summary: Create short link.
|
|
13
13
|
* @description: Generate a shortened URL link for sharing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/createShortLink/).
|
|
14
14
|
*/
|
|
15
15
|
createShortLink({ body, requestHeaders }?: SharePlatformApplicationValidator.CreateShortLinkParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|
|
@@ -19,7 +19,7 @@ declare class Share {
|
|
|
19
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
20
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
21
21
|
* @name getShortLinkByHash
|
|
22
|
-
* @summary: Get short link by hash
|
|
22
|
+
* @summary: Get short link by hash.
|
|
23
23
|
* @description: Retrieve a specific short link by its unique hash. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkByHash/).
|
|
24
24
|
*/
|
|
25
25
|
getShortLinkByHash({ hash, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkByHashParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|
|
@@ -29,12 +29,12 @@ declare class Share {
|
|
|
29
29
|
*
|
|
30
30
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
31
31
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
32
|
-
* @returns {Promise<SharePlatformModel.
|
|
32
|
+
* @returns {Promise<SharePlatformModel.ClickStatsResult>} - Success response
|
|
33
33
|
* @name getShortLinkClickStats
|
|
34
34
|
* @summary: Get short link click statistics
|
|
35
35
|
* @description: Retrieve statistics and analytics for clicks on a short link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
|
|
36
36
|
*/
|
|
37
|
-
getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.
|
|
37
|
+
getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.ClickStatsResult>;
|
|
38
38
|
/**
|
|
39
39
|
* @param {SharePlatformApplicationValidator.GetShortLinksParam} arg - Arg object
|
|
40
40
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -53,7 +53,7 @@ declare class Share {
|
|
|
53
53
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
54
54
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
55
55
|
* @name updateShortLinkById
|
|
56
|
-
* @summary: Update short link
|
|
56
|
+
* @summary: Update short link by ID.
|
|
57
57
|
* @description: Update details of a specific short link by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/updateShortLinkById/).
|
|
58
58
|
*/
|
|
59
59
|
updateShortLinkById({ id, body, requestHeaders }?: SharePlatformApplicationValidator.UpdateShortLinkByIdParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
|
|
@@ -21,7 +21,7 @@ class Share {
|
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
22
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
23
23
|
* @name createShortLink
|
|
24
|
-
* @summary: Create short link
|
|
24
|
+
* @summary: Create short link.
|
|
25
25
|
* @description: Generate a shortened URL link for sharing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/createShortLink/).
|
|
26
26
|
*/
|
|
27
27
|
async createShortLink(
|
|
@@ -61,7 +61,7 @@ class Share {
|
|
|
61
61
|
const response = await PlatformAPIClient.execute(
|
|
62
62
|
this.config,
|
|
63
63
|
"post",
|
|
64
|
-
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link
|
|
64
|
+
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link`,
|
|
65
65
|
query_params,
|
|
66
66
|
body,
|
|
67
67
|
requestHeaders,
|
|
@@ -100,7 +100,7 @@ class Share {
|
|
|
100
100
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
101
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
102
102
|
* @name getShortLinkByHash
|
|
103
|
-
* @summary: Get short link by hash
|
|
103
|
+
* @summary: Get short link by hash.
|
|
104
104
|
* @description: Retrieve a specific short link by its unique hash. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkByHash/).
|
|
105
105
|
*/
|
|
106
106
|
async getShortLinkByHash(
|
|
@@ -140,7 +140,7 @@ class Share {
|
|
|
140
140
|
const response = await PlatformAPIClient.execute(
|
|
141
141
|
this.config,
|
|
142
142
|
"get",
|
|
143
|
-
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${hash}
|
|
143
|
+
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${hash}`,
|
|
144
144
|
query_params,
|
|
145
145
|
undefined,
|
|
146
146
|
requestHeaders,
|
|
@@ -179,7 +179,7 @@ class Share {
|
|
|
179
179
|
*
|
|
180
180
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
181
181
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
182
|
-
* @returns {Promise<SharePlatformModel.
|
|
182
|
+
* @returns {Promise<SharePlatformModel.ClickStatsResult>} - Success response
|
|
183
183
|
* @name getShortLinkClickStats
|
|
184
184
|
* @summary: Get short link click statistics
|
|
185
185
|
* @description: Retrieve statistics and analytics for clicks on a short link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
|
|
@@ -232,7 +232,7 @@ class Share {
|
|
|
232
232
|
|
|
233
233
|
const {
|
|
234
234
|
error: res_error,
|
|
235
|
-
} = SharePlatformModel.
|
|
235
|
+
} = SharePlatformModel.ClickStatsResult().validate(responseData, {
|
|
236
236
|
abortEarly: false,
|
|
237
237
|
allowUnknown: true,
|
|
238
238
|
});
|
|
@@ -325,7 +325,7 @@ class Share {
|
|
|
325
325
|
const response = await PlatformAPIClient.execute(
|
|
326
326
|
this.config,
|
|
327
327
|
"get",
|
|
328
|
-
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link
|
|
328
|
+
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link`,
|
|
329
329
|
query_params,
|
|
330
330
|
undefined,
|
|
331
331
|
requestHeaders,
|
|
@@ -366,7 +366,7 @@ class Share {
|
|
|
366
366
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
367
367
|
* @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
|
|
368
368
|
* @name updateShortLinkById
|
|
369
|
-
* @summary: Update short link
|
|
369
|
+
* @summary: Update short link by ID.
|
|
370
370
|
* @description: Update details of a specific short link by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/updateShortLinkById/).
|
|
371
371
|
*/
|
|
372
372
|
async updateShortLinkById(
|
|
@@ -408,7 +408,7 @@ class Share {
|
|
|
408
408
|
const response = await PlatformAPIClient.execute(
|
|
409
409
|
this.config,
|
|
410
410
|
"patch",
|
|
411
|
-
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${id}
|
|
411
|
+
`/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${id}`,
|
|
412
412
|
query_params,
|
|
413
413
|
body,
|
|
414
414
|
requestHeaders,
|
|
@@ -5,7 +5,7 @@ export = SharePlatformApplicationValidator;
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef GetShortLinkByHashParam
|
|
8
|
-
* @property {string} hash
|
|
8
|
+
* @property {string} hash
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef GetShortLinkClickStatsParam
|
|
@@ -24,7 +24,7 @@ export = SharePlatformApplicationValidator;
|
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* @typedef UpdateShortLinkByIdParam
|
|
27
|
-
* @property {string} id -
|
|
27
|
+
* @property {string} id - Document Id
|
|
28
28
|
* @property {SharePlatformModel.ShortLinkReq} body
|
|
29
29
|
*/
|
|
30
30
|
declare class SharePlatformApplicationValidator {
|
|
@@ -46,9 +46,6 @@ type CreateShortLinkParam = {
|
|
|
46
46
|
body: SharePlatformModel.ShortLinkReq;
|
|
47
47
|
};
|
|
48
48
|
type GetShortLinkByHashParam = {
|
|
49
|
-
/**
|
|
50
|
-
* - Hash of short url
|
|
51
|
-
*/
|
|
52
49
|
hash: string;
|
|
53
50
|
};
|
|
54
51
|
type GetShortLinkClickStatsParam = {
|
|
@@ -90,7 +87,7 @@ type GetShortLinksParam = {
|
|
|
90
87
|
};
|
|
91
88
|
type UpdateShortLinkByIdParam = {
|
|
92
89
|
/**
|
|
93
|
-
* -
|
|
90
|
+
* - Document Id
|
|
94
91
|
*/
|
|
95
92
|
id: string;
|
|
96
93
|
body: SharePlatformModel.ShortLinkReq;
|
|
@@ -9,7 +9,7 @@ const SharePlatformModel = require("./SharePlatformModel");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef GetShortLinkByHashParam
|
|
12
|
-
* @property {string} hash
|
|
12
|
+
* @property {string} hash
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -31,7 +31,7 @@ const SharePlatformModel = require("./SharePlatformModel");
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @typedef UpdateShortLinkByIdParam
|
|
34
|
-
* @property {string} id -
|
|
34
|
+
* @property {string} id - Document Id
|
|
35
35
|
* @property {SharePlatformModel.ShortLinkReq} body
|
|
36
36
|
*/
|
|
37
37
|
|