@gofynd/fdk-client-javascript 1.6.4 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -55,6 +55,14 @@ export = OrderPlatformValidator;
|
|
|
55
55
|
* @typedef FailedOrderLogDetailsParam
|
|
56
56
|
* @property {string} logId - Log Error ID
|
|
57
57
|
*/
|
|
58
|
+
/**
|
|
59
|
+
* @typedef FailedOrderLogsParam
|
|
60
|
+
* @property {string} [applicationId] - Application ID
|
|
61
|
+
* @property {number} [pageNo] - Page Number
|
|
62
|
+
* @property {number} [pageSize] - Page Size
|
|
63
|
+
* @property {string} [searchType] - Search type for filter
|
|
64
|
+
* @property {string} [searchValue] - Search value for filter
|
|
65
|
+
*/
|
|
58
66
|
/**
|
|
59
67
|
* @typedef FetchRefundModeConfigParam
|
|
60
68
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -476,6 +484,8 @@ declare class OrderPlatformValidator {
|
|
|
476
484
|
static eInvoiceRetry(): EInvoiceRetryParam;
|
|
477
485
|
/** @returns {FailedOrderLogDetailsParam} */
|
|
478
486
|
static failedOrderLogDetails(): FailedOrderLogDetailsParam;
|
|
487
|
+
/** @returns {FailedOrderLogsParam} */
|
|
488
|
+
static failedOrderLogs(): FailedOrderLogsParam;
|
|
479
489
|
/** @returns {FetchRefundModeConfigParam} */
|
|
480
490
|
static fetchRefundModeConfig(): FetchRefundModeConfigParam;
|
|
481
491
|
/** @returns {GenerateInvoiceIDParam} */
|
|
@@ -568,7 +578,7 @@ declare class OrderPlatformValidator {
|
|
|
568
578
|
static verifyMobileOTP(): VerifyMobileOTPParam;
|
|
569
579
|
}
|
|
570
580
|
declare namespace OrderPlatformValidator {
|
|
571
|
-
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdatePaymentInfoParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
581
|
+
export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FailedOrderLogsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdatePaymentInfoParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam };
|
|
572
582
|
}
|
|
573
583
|
type AddStateManagerConfigParam = {
|
|
574
584
|
body: OrderPlatformModel.TransitionConfigPayload;
|
|
@@ -641,6 +651,28 @@ type FailedOrderLogDetailsParam = {
|
|
|
641
651
|
*/
|
|
642
652
|
logId: string;
|
|
643
653
|
};
|
|
654
|
+
type FailedOrderLogsParam = {
|
|
655
|
+
/**
|
|
656
|
+
* - Application ID
|
|
657
|
+
*/
|
|
658
|
+
applicationId?: string;
|
|
659
|
+
/**
|
|
660
|
+
* - Page Number
|
|
661
|
+
*/
|
|
662
|
+
pageNo?: number;
|
|
663
|
+
/**
|
|
664
|
+
* - Page Size
|
|
665
|
+
*/
|
|
666
|
+
pageSize?: number;
|
|
667
|
+
/**
|
|
668
|
+
* - Search type for filter
|
|
669
|
+
*/
|
|
670
|
+
searchType?: string;
|
|
671
|
+
/**
|
|
672
|
+
* - Search value for filter
|
|
673
|
+
*/
|
|
674
|
+
searchValue?: string;
|
|
675
|
+
};
|
|
644
676
|
type FetchRefundModeConfigParam = {
|
|
645
677
|
body: OrderPlatformModel.RefundModeConfigRequestPayload;
|
|
646
678
|
};
|
|
@@ -70,6 +70,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
70
70
|
* @property {string} logId - Log Error ID
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @typedef FailedOrderLogsParam
|
|
75
|
+
* @property {string} [applicationId] - Application ID
|
|
76
|
+
* @property {number} [pageNo] - Page Number
|
|
77
|
+
* @property {number} [pageSize] - Page Size
|
|
78
|
+
* @property {string} [searchType] - Search type for filter
|
|
79
|
+
* @property {string} [searchValue] - Search value for filter
|
|
80
|
+
*/
|
|
81
|
+
|
|
73
82
|
/**
|
|
74
83
|
* @typedef FetchRefundModeConfigParam
|
|
75
84
|
* @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
|
|
@@ -602,6 +611,17 @@ class OrderPlatformValidator {
|
|
|
602
611
|
}).required();
|
|
603
612
|
}
|
|
604
613
|
|
|
614
|
+
/** @returns {FailedOrderLogsParam} */
|
|
615
|
+
static failedOrderLogs() {
|
|
616
|
+
return Joi.object({
|
|
617
|
+
applicationId: Joi.string().allow(""),
|
|
618
|
+
pageNo: Joi.number(),
|
|
619
|
+
pageSize: Joi.number(),
|
|
620
|
+
searchType: Joi.string().allow(""),
|
|
621
|
+
searchValue: Joi.string().allow(""),
|
|
622
|
+
}).required();
|
|
623
|
+
}
|
|
624
|
+
|
|
605
625
|
/** @returns {FetchRefundModeConfigParam} */
|
|
606
626
|
static fetchRefundModeConfig() {
|
|
607
627
|
return Joi.object({
|
|
@@ -7,19 +7,28 @@ export = PartnerPlatformModel;
|
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef ExtensionProxyPathCreation
|
|
10
|
-
* @property {string} [_id]
|
|
11
|
-
* @property {string} [attached_path]
|
|
12
|
-
*
|
|
13
|
-
* @property {string} [
|
|
14
|
-
*
|
|
15
|
-
* @property {string} [
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
10
|
+
* @property {string} [_id] - Unique identifier for the proxy URL entry in the database.
|
|
11
|
+
* @property {string} [attached_path] - The slug path appended to the base URL
|
|
12
|
+
* for creating the proxy endpoint.
|
|
13
|
+
* @property {string} [proxy_url] - The external URL that the proxy endpoint
|
|
14
|
+
* will forward requests to.
|
|
15
|
+
* @property {string} [company_id] - Unique identifier of the company that owns
|
|
16
|
+
* the proxy URL.
|
|
17
|
+
* @property {string} [application_id] - Unique identifier of the application
|
|
18
|
+
* associated with the proxy URL.
|
|
19
|
+
* @property {string} [extension_id] - Unique identifier of the extension where
|
|
20
|
+
* the proxy URL is configured.
|
|
21
|
+
* @property {string} [created_at] - The timestamp indicating when the proxy URL
|
|
22
|
+
* configuration was created.
|
|
23
|
+
* @property {string} [modified_at] - The timestamp indicating the last update
|
|
24
|
+
* made to the proxy URL configuration.
|
|
18
25
|
*/
|
|
19
26
|
/**
|
|
20
27
|
* @typedef ExtensionProxyPathDelete
|
|
21
|
-
* @property {string} [message]
|
|
22
|
-
*
|
|
28
|
+
* @property {string} [message] - Descriptive message indicating the status or
|
|
29
|
+
* result of the deletion operation.
|
|
30
|
+
* @property {Object} [data] - Additional information or metadata about the
|
|
31
|
+
* deleted proxy configuration.
|
|
23
32
|
*/
|
|
24
33
|
/**
|
|
25
34
|
* @typedef APIError
|
|
@@ -50,19 +59,58 @@ type AddProxyReq = {
|
|
|
50
59
|
/** @returns {ExtensionProxyPathCreation} */
|
|
51
60
|
declare function ExtensionProxyPathCreation(): ExtensionProxyPathCreation;
|
|
52
61
|
type ExtensionProxyPathCreation = {
|
|
62
|
+
/**
|
|
63
|
+
* - Unique identifier for the proxy URL entry in the database.
|
|
64
|
+
*/
|
|
53
65
|
_id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* - The slug path appended to the base URL
|
|
68
|
+
* for creating the proxy endpoint.
|
|
69
|
+
*/
|
|
54
70
|
attached_path?: string;
|
|
71
|
+
/**
|
|
72
|
+
* - The external URL that the proxy endpoint
|
|
73
|
+
* will forward requests to.
|
|
74
|
+
*/
|
|
55
75
|
proxy_url?: string;
|
|
76
|
+
/**
|
|
77
|
+
* - Unique identifier of the company that owns
|
|
78
|
+
* the proxy URL.
|
|
79
|
+
*/
|
|
56
80
|
company_id?: string;
|
|
81
|
+
/**
|
|
82
|
+
* - Unique identifier of the application
|
|
83
|
+
* associated with the proxy URL.
|
|
84
|
+
*/
|
|
57
85
|
application_id?: string;
|
|
86
|
+
/**
|
|
87
|
+
* - Unique identifier of the extension where
|
|
88
|
+
* the proxy URL is configured.
|
|
89
|
+
*/
|
|
58
90
|
extension_id?: string;
|
|
91
|
+
/**
|
|
92
|
+
* - The timestamp indicating when the proxy URL
|
|
93
|
+
* configuration was created.
|
|
94
|
+
*/
|
|
59
95
|
created_at?: string;
|
|
96
|
+
/**
|
|
97
|
+
* - The timestamp indicating the last update
|
|
98
|
+
* made to the proxy URL configuration.
|
|
99
|
+
*/
|
|
60
100
|
modified_at?: string;
|
|
61
101
|
};
|
|
62
102
|
/** @returns {ExtensionProxyPathDelete} */
|
|
63
103
|
declare function ExtensionProxyPathDelete(): ExtensionProxyPathDelete;
|
|
64
104
|
type ExtensionProxyPathDelete = {
|
|
105
|
+
/**
|
|
106
|
+
* - Descriptive message indicating the status or
|
|
107
|
+
* result of the deletion operation.
|
|
108
|
+
*/
|
|
65
109
|
message?: string;
|
|
110
|
+
/**
|
|
111
|
+
* - Additional information or metadata about the
|
|
112
|
+
* deleted proxy configuration.
|
|
113
|
+
*/
|
|
66
114
|
data?: any;
|
|
67
115
|
};
|
|
68
116
|
/** @returns {APIError} */
|
|
@@ -9,20 +9,29 @@ const Joi = require("joi");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef ExtensionProxyPathCreation
|
|
12
|
-
* @property {string} [_id]
|
|
13
|
-
* @property {string} [attached_path]
|
|
14
|
-
*
|
|
15
|
-
* @property {string} [
|
|
16
|
-
*
|
|
17
|
-
* @property {string} [
|
|
18
|
-
*
|
|
19
|
-
* @property {string} [
|
|
12
|
+
* @property {string} [_id] - Unique identifier for the proxy URL entry in the database.
|
|
13
|
+
* @property {string} [attached_path] - The slug path appended to the base URL
|
|
14
|
+
* for creating the proxy endpoint.
|
|
15
|
+
* @property {string} [proxy_url] - The external URL that the proxy endpoint
|
|
16
|
+
* will forward requests to.
|
|
17
|
+
* @property {string} [company_id] - Unique identifier of the company that owns
|
|
18
|
+
* the proxy URL.
|
|
19
|
+
* @property {string} [application_id] - Unique identifier of the application
|
|
20
|
+
* associated with the proxy URL.
|
|
21
|
+
* @property {string} [extension_id] - Unique identifier of the extension where
|
|
22
|
+
* the proxy URL is configured.
|
|
23
|
+
* @property {string} [created_at] - The timestamp indicating when the proxy URL
|
|
24
|
+
* configuration was created.
|
|
25
|
+
* @property {string} [modified_at] - The timestamp indicating the last update
|
|
26
|
+
* made to the proxy URL configuration.
|
|
20
27
|
*/
|
|
21
28
|
|
|
22
29
|
/**
|
|
23
30
|
* @typedef ExtensionProxyPathDelete
|
|
24
|
-
* @property {string} [message]
|
|
25
|
-
*
|
|
31
|
+
* @property {string} [message] - Descriptive message indicating the status or
|
|
32
|
+
* result of the deletion operation.
|
|
33
|
+
* @property {Object} [data] - Additional information or metadata about the
|
|
34
|
+
* deleted proxy configuration.
|
|
26
35
|
*/
|
|
27
36
|
|
|
28
37
|
/**
|
|
@@ -542,6 +542,7 @@ export = PaymentPlatformModel;
|
|
|
542
542
|
* @property {number} [current] - The current page number.
|
|
543
543
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
544
544
|
* @property {number} [size] - The number of items per page.
|
|
545
|
+
* @property {number} [page_size] - The number of items per page.
|
|
545
546
|
*/
|
|
546
547
|
/**
|
|
547
548
|
* @typedef EdcDeviceListDetails
|
|
@@ -1230,6 +1231,7 @@ export = PaymentPlatformModel;
|
|
|
1230
1231
|
* @property {string} aggregator - Aggregator name of the payment gateway.
|
|
1231
1232
|
* @property {number} transaction_amount - Payable amount
|
|
1232
1233
|
* @property {string} [cart_id] - Unique identifier for the shopping cart.
|
|
1234
|
+
* @property {string} [user_id] - The unique identifier of the user.
|
|
1233
1235
|
*/
|
|
1234
1236
|
/**
|
|
1235
1237
|
* @typedef UserCreditSchema
|
|
@@ -1246,7 +1248,7 @@ export = PaymentPlatformModel;
|
|
|
1246
1248
|
* it is ACTIVE, INACTIVE, or UNREGISTERED.
|
|
1247
1249
|
* @property {UserCreditSchema} [redeemable_balance]
|
|
1248
1250
|
* @property {UserCreditSchema} [available_balance]
|
|
1249
|
-
* @property {UserCreditSchema} [amount_on_hold]
|
|
1251
|
+
* @property {UserCreditSchema[]} [amount_on_hold]
|
|
1250
1252
|
*/
|
|
1251
1253
|
/**
|
|
1252
1254
|
* @typedef ValidateCustomerCreditSchema
|
|
@@ -2699,6 +2701,10 @@ type Page = {
|
|
|
2699
2701
|
* - The number of items per page.
|
|
2700
2702
|
*/
|
|
2701
2703
|
size?: number;
|
|
2704
|
+
/**
|
|
2705
|
+
* - The number of items per page.
|
|
2706
|
+
*/
|
|
2707
|
+
page_size?: number;
|
|
2702
2708
|
};
|
|
2703
2709
|
/** @returns {EdcDeviceListDetails} */
|
|
2704
2710
|
declare function EdcDeviceListDetails(): EdcDeviceListDetails;
|
|
@@ -4518,6 +4524,10 @@ type CustomerValidationSchema = {
|
|
|
4518
4524
|
* - Unique identifier for the shopping cart.
|
|
4519
4525
|
*/
|
|
4520
4526
|
cart_id?: string;
|
|
4527
|
+
/**
|
|
4528
|
+
* - The unique identifier of the user.
|
|
4529
|
+
*/
|
|
4530
|
+
user_id?: string;
|
|
4521
4531
|
};
|
|
4522
4532
|
/** @returns {UserCreditSchema} */
|
|
4523
4533
|
declare function UserCreditSchema(): UserCreditSchema;
|
|
@@ -4551,7 +4561,7 @@ type CreditAccountSummary = {
|
|
|
4551
4561
|
status: string;
|
|
4552
4562
|
redeemable_balance?: UserCreditSchema;
|
|
4553
4563
|
available_balance?: UserCreditSchema;
|
|
4554
|
-
amount_on_hold?: UserCreditSchema;
|
|
4564
|
+
amount_on_hold?: UserCreditSchema[];
|
|
4555
4565
|
};
|
|
4556
4566
|
/** @returns {ValidateCustomerCreditSchema} */
|
|
4557
4567
|
declare function ValidateCustomerCreditSchema(): ValidateCustomerCreditSchema;
|
|
@@ -611,6 +611,7 @@ const Joi = require("joi");
|
|
|
611
611
|
* @property {number} [current] - The current page number.
|
|
612
612
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
613
613
|
* @property {number} [size] - The number of items per page.
|
|
614
|
+
* @property {number} [page_size] - The number of items per page.
|
|
614
615
|
*/
|
|
615
616
|
|
|
616
617
|
/**
|
|
@@ -1374,6 +1375,7 @@ const Joi = require("joi");
|
|
|
1374
1375
|
* @property {string} aggregator - Aggregator name of the payment gateway.
|
|
1375
1376
|
* @property {number} transaction_amount - Payable amount
|
|
1376
1377
|
* @property {string} [cart_id] - Unique identifier for the shopping cart.
|
|
1378
|
+
* @property {string} [user_id] - The unique identifier of the user.
|
|
1377
1379
|
*/
|
|
1378
1380
|
|
|
1379
1381
|
/**
|
|
@@ -1392,7 +1394,7 @@ const Joi = require("joi");
|
|
|
1392
1394
|
* it is ACTIVE, INACTIVE, or UNREGISTERED.
|
|
1393
1395
|
* @property {UserCreditSchema} [redeemable_balance]
|
|
1394
1396
|
* @property {UserCreditSchema} [available_balance]
|
|
1395
|
-
* @property {UserCreditSchema} [amount_on_hold]
|
|
1397
|
+
* @property {UserCreditSchema[]} [amount_on_hold]
|
|
1396
1398
|
*/
|
|
1397
1399
|
|
|
1398
1400
|
/**
|
|
@@ -2164,6 +2166,7 @@ class PaymentPlatformModel {
|
|
|
2164
2166
|
current: Joi.number(),
|
|
2165
2167
|
type: Joi.string().allow("").required(),
|
|
2166
2168
|
size: Joi.number(),
|
|
2169
|
+
page_size: Joi.number(),
|
|
2167
2170
|
});
|
|
2168
2171
|
}
|
|
2169
2172
|
|
|
@@ -3050,6 +3053,7 @@ class PaymentPlatformModel {
|
|
|
3050
3053
|
aggregator: Joi.string().allow("").required(),
|
|
3051
3054
|
transaction_amount: Joi.number().required(),
|
|
3052
3055
|
cart_id: Joi.string().allow(""),
|
|
3056
|
+
user_id: Joi.string().allow(""),
|
|
3053
3057
|
});
|
|
3054
3058
|
}
|
|
3055
3059
|
|
|
@@ -3069,7 +3073,9 @@ class PaymentPlatformModel {
|
|
|
3069
3073
|
status: Joi.string().allow("").required(),
|
|
3070
3074
|
redeemable_balance: PaymentPlatformModel.UserCreditSchema(),
|
|
3071
3075
|
available_balance: PaymentPlatformModel.UserCreditSchema(),
|
|
3072
|
-
amount_on_hold:
|
|
3076
|
+
amount_on_hold: Joi.array().items(
|
|
3077
|
+
PaymentPlatformModel.UserCreditSchema()
|
|
3078
|
+
),
|
|
3073
3079
|
});
|
|
3074
3080
|
}
|
|
3075
3081
|
|
|
@@ -57,6 +57,7 @@ export = RewardsPlatformModel;
|
|
|
57
57
|
* @property {number} [current] - The current page number.
|
|
58
58
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
59
59
|
* @property {number} [size] - The number of items per page.
|
|
60
|
+
* @property {number} [page_size] - The number of items per page.
|
|
60
61
|
*/
|
|
61
62
|
/**
|
|
62
63
|
* @typedef Offer
|
|
@@ -254,6 +255,10 @@ type Page = {
|
|
|
254
255
|
* - The number of items per page.
|
|
255
256
|
*/
|
|
256
257
|
size?: number;
|
|
258
|
+
/**
|
|
259
|
+
* - The number of items per page.
|
|
260
|
+
*/
|
|
261
|
+
page_size?: number;
|
|
257
262
|
};
|
|
258
263
|
/** @returns {Offer} */
|
|
259
264
|
declare function Offer(): Offer;
|
|
@@ -65,6 +65,7 @@ const Joi = require("joi");
|
|
|
65
65
|
* @property {number} [current] - The current page number.
|
|
66
66
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
67
67
|
* @property {number} [size] - The number of items per page.
|
|
68
|
+
* @property {number} [page_size] - The number of items per page.
|
|
68
69
|
*/
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -264,6 +265,7 @@ class RewardsPlatformModel {
|
|
|
264
265
|
current: Joi.number(),
|
|
265
266
|
type: Joi.string().allow("").required(),
|
|
266
267
|
size: Joi.number(),
|
|
268
|
+
page_size: Joi.number(),
|
|
267
269
|
});
|
|
268
270
|
}
|
|
269
271
|
|