@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
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 +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- 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
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
class Webhook {
|
|
11
12
|
constructor(_conf) {
|
|
@@ -42,14 +43,6 @@ class Webhook {
|
|
|
42
43
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
43
44
|
{ responseHeaders } = { responseHeaders: false }
|
|
44
45
|
) {
|
|
45
|
-
let invalidInput = [];
|
|
46
|
-
if (invalidInput.length) {
|
|
47
|
-
const error = new Error();
|
|
48
|
-
error.message = "Missing required field";
|
|
49
|
-
error.details = invalidInput;
|
|
50
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
46
|
const query_params = {};
|
|
54
47
|
|
|
55
48
|
const xHeaders = {};
|
package/sdk/common/Utility.d.ts
CHANGED
package/sdk/common/Utility.js
CHANGED
|
@@ -65,7 +65,7 @@ function convertUrlToAction(url) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
function convertActionToUrl(action) {
|
|
68
|
+
function convertActionToUrl(action, locale) {
|
|
69
69
|
if (action && action.page && action.page.type) {
|
|
70
70
|
switch (action.type) {
|
|
71
71
|
case utils.NAV_TYPE.PAGE: {
|
|
@@ -83,16 +83,16 @@ function convertActionToUrl(action) {
|
|
|
83
83
|
item.link +=
|
|
84
84
|
"/?" + utils.transformRequestOptions(action.page.query);
|
|
85
85
|
}
|
|
86
|
-
return item.link;
|
|
86
|
+
return locale ? `/${locale}${item.link}` : item.link;
|
|
87
87
|
}
|
|
88
|
-
return "";
|
|
88
|
+
return locale ? `/${locale}` : "";
|
|
89
89
|
}
|
|
90
90
|
case utils.NAV_TYPE.POPUP: {
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
} else {
|
|
95
|
-
return "";
|
|
95
|
+
return locale ? `/${locale}` : "";
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function validateRequiredParams(params: any, requiredParams: any): any[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function validateRequiredParams(params, requiredParams) {
|
|
2
|
+
const errors = [];
|
|
3
|
+
requiredParams.forEach((key) => {
|
|
4
|
+
const value = params[key];
|
|
5
|
+
|
|
6
|
+
// Reject missing or empty values (except for boolean false)
|
|
7
|
+
if (
|
|
8
|
+
value === undefined ||
|
|
9
|
+
value === null ||
|
|
10
|
+
(typeof value !== "boolean" && value === "")
|
|
11
|
+
) {
|
|
12
|
+
errors.push(`Missing or empty required parameter: ${key}`);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return errors;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
module.exports = {
|
|
19
|
+
validateRequiredParams,
|
|
20
|
+
};
|
|
@@ -2,26 +2,6 @@ export = FileStorage;
|
|
|
2
2
|
declare class FileStorage {
|
|
3
3
|
constructor(config: any);
|
|
4
4
|
config: any;
|
|
5
|
-
/**
|
|
6
|
-
* @param {FileStoragePartnerValidator.GetAllNamespaceDetailsParam} arg - Arg object.
|
|
7
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
9
|
-
* @returns {Promise<FileStoragePartnerModel.AllNamespaceDetails>} - Success response
|
|
10
|
-
* @name getAllNamespaceDetails
|
|
11
|
-
* @summary: Get details of all namespaces
|
|
12
|
-
* @description: Retrieve information about all available namespaces - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getAllNamespaceDetails/).
|
|
13
|
-
*/
|
|
14
|
-
getAllNamespaceDetails({ requestHeaders }?: FileStoragePartnerValidator.GetAllNamespaceDetailsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.AllNamespaceDetails>;
|
|
15
|
-
/**
|
|
16
|
-
* @param {FileStoragePartnerValidator.GetNamespaceDetailParam} arg - Arg object.
|
|
17
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
19
|
-
* @returns {Promise<FileStoragePartnerModel.NamespaceDetails>} - Success response
|
|
20
|
-
* @name getNamespaceDetail
|
|
21
|
-
* @summary: Get details of a namespace
|
|
22
|
-
* @description: Retrieve information about a specific namespace - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getNamespaceDetail/).
|
|
23
|
-
*/
|
|
24
|
-
getNamespaceDetail({ namespace, requestHeaders }?: FileStoragePartnerValidator.GetNamespaceDetailParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.NamespaceDetails>;
|
|
25
5
|
/**
|
|
26
6
|
* @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
|
|
27
7
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -78,16 +58,6 @@ declare class FileStorage {
|
|
|
78
58
|
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/startUpload/).
|
|
79
59
|
*/
|
|
80
60
|
startUpload({ namespace, body, requestHeaders }?: FileStoragePartnerValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FileUpload>;
|
|
81
|
-
/**
|
|
82
|
-
* @param {FileStoragePartnerValidator.BrowseParam} arg - Arg object.
|
|
83
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
84
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
85
|
-
* @returns {Promise<Object>} - Success response
|
|
86
|
-
* @name browse
|
|
87
|
-
* @summary: Browse Files
|
|
88
|
-
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browse/).
|
|
89
|
-
*/
|
|
90
|
-
browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
91
61
|
/**
|
|
92
62
|
* @param {FileStoragePartnerValidator.BrowseFilesParam} arg - Arg object.
|
|
93
63
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -98,30 +68,6 @@ declare class FileStorage {
|
|
|
98
68
|
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browseFiles/).
|
|
99
69
|
*/
|
|
100
70
|
browseFiles({ namespace, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseFilesParam, { responseHeaders }?: object): Promise<any>;
|
|
101
|
-
/**
|
|
102
|
-
* @param {FileStoragePartnerValidator.OrganizationLevelFetchProxyParam} arg
|
|
103
|
-
* - Arg object.
|
|
104
|
-
*
|
|
105
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
106
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
107
|
-
* @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
|
|
108
|
-
* @name organizationLevelFetchProxy
|
|
109
|
-
* @summary: Proxy
|
|
110
|
-
* @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/organizationLevelFetchProxy/).
|
|
111
|
-
*/
|
|
112
|
-
organizationLevelFetchProxy({ applicationId, companyId, url, requestHeaders }?: FileStoragePartnerValidator.OrganizationLevelFetchProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.FetchProxyDetails>;
|
|
113
|
-
/**
|
|
114
|
-
* @param {FileStoragePartnerValidator.SaveOrganizationLevelProxyParam} arg
|
|
115
|
-
* - Arg object.
|
|
116
|
-
*
|
|
117
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
118
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
119
|
-
* @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
|
|
120
|
-
* @name saveOrganizationLevelProxy
|
|
121
|
-
* @summary: Proxy
|
|
122
|
-
* @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveOrganizationLevelProxy/).
|
|
123
|
-
*/
|
|
124
|
-
saveOrganizationLevelProxy({ applicationId, companyId, body, requestHeaders }?: FileStoragePartnerValidator.SaveOrganizationLevelProxyParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SaveProxy>;
|
|
125
71
|
/**
|
|
126
72
|
* @param {FileStoragePartnerValidator.FetchProxyParam} arg - Arg object.
|
|
127
73
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -148,7 +94,7 @@ declare class FileStorage {
|
|
|
148
94
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
149
95
|
* @returns {Promise<FileStoragePartnerModel.SignUrlResult>} - Success response
|
|
150
96
|
* @name signUrls
|
|
151
|
-
* @summary:
|
|
97
|
+
* @summary: Get signed URLs.
|
|
152
98
|
* @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/partner/filestorage/signUrls/).
|
|
153
99
|
*/
|
|
154
100
|
signUrls({ body, requestHeaders }?: FileStoragePartnerValidator.SignUrlsParam, { responseHeaders }?: object): Promise<FileStoragePartnerModel.SignUrlResult>;
|
|
@@ -14,156 +14,6 @@ class FileStorage {
|
|
|
14
14
|
this.config = config;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* @param {FileStoragePartnerValidator.GetAllNamespaceDetailsParam} arg - Arg object.
|
|
19
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<FileStoragePartnerModel.AllNamespaceDetails>} - Success response
|
|
22
|
-
* @name getAllNamespaceDetails
|
|
23
|
-
* @summary: Get details of all namespaces
|
|
24
|
-
* @description: Retrieve information about all available namespaces - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getAllNamespaceDetails/).
|
|
25
|
-
*/
|
|
26
|
-
async getAllNamespaceDetails(
|
|
27
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
28
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
29
|
-
) {
|
|
30
|
-
const {
|
|
31
|
-
error,
|
|
32
|
-
} = FileStoragePartnerValidator.getAllNamespaceDetails().validate(
|
|
33
|
-
{},
|
|
34
|
-
{ abortEarly: false, allowUnknown: true }
|
|
35
|
-
);
|
|
36
|
-
if (error) {
|
|
37
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Showing warrnings if extra unknown parameters are found
|
|
41
|
-
const {
|
|
42
|
-
error: warrning,
|
|
43
|
-
} = FileStoragePartnerValidator.getAllNamespaceDetails().validate(
|
|
44
|
-
{},
|
|
45
|
-
{ abortEarly: false, allowUnknown: false }
|
|
46
|
-
);
|
|
47
|
-
if (warrning) {
|
|
48
|
-
Logger({
|
|
49
|
-
level: "WARN",
|
|
50
|
-
message: `Parameter Validation warrnings for partner > FileStorage > getAllNamespaceDetails \n ${warrning}`,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const query_params = {};
|
|
55
|
-
|
|
56
|
-
const response = await PartnerAPIClient.execute(
|
|
57
|
-
this.config,
|
|
58
|
-
"get",
|
|
59
|
-
`/service/partner/assets/v1.0/organization/${this.config.organizationId}/namespaces`,
|
|
60
|
-
query_params,
|
|
61
|
-
undefined,
|
|
62
|
-
requestHeaders,
|
|
63
|
-
{ responseHeaders }
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
let responseData = response;
|
|
67
|
-
if (responseHeaders) {
|
|
68
|
-
responseData = response[0];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const {
|
|
72
|
-
error: res_error,
|
|
73
|
-
} = FileStoragePartnerModel.AllNamespaceDetails().validate(responseData, {
|
|
74
|
-
abortEarly: false,
|
|
75
|
-
allowUnknown: true,
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
if (res_error) {
|
|
79
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
80
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
81
|
-
} else {
|
|
82
|
-
Logger({
|
|
83
|
-
level: "WARN",
|
|
84
|
-
message: `Response Validation Warnings for partner > FileStorage > getAllNamespaceDetails \n ${res_error}`,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return response;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @param {FileStoragePartnerValidator.GetNamespaceDetailParam} arg - Arg object.
|
|
94
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
95
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
96
|
-
* @returns {Promise<FileStoragePartnerModel.NamespaceDetails>} - Success response
|
|
97
|
-
* @name getNamespaceDetail
|
|
98
|
-
* @summary: Get details of a namespace
|
|
99
|
-
* @description: Retrieve information about a specific namespace - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/getNamespaceDetail/).
|
|
100
|
-
*/
|
|
101
|
-
async getNamespaceDetail(
|
|
102
|
-
{ namespace, requestHeaders } = { requestHeaders: {} },
|
|
103
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
104
|
-
) {
|
|
105
|
-
const { error } = FileStoragePartnerValidator.getNamespaceDetail().validate(
|
|
106
|
-
{
|
|
107
|
-
namespace,
|
|
108
|
-
},
|
|
109
|
-
{ abortEarly: false, allowUnknown: true }
|
|
110
|
-
);
|
|
111
|
-
if (error) {
|
|
112
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Showing warrnings if extra unknown parameters are found
|
|
116
|
-
const {
|
|
117
|
-
error: warrning,
|
|
118
|
-
} = FileStoragePartnerValidator.getNamespaceDetail().validate(
|
|
119
|
-
{ namespace },
|
|
120
|
-
{ abortEarly: false, allowUnknown: false }
|
|
121
|
-
);
|
|
122
|
-
if (warrning) {
|
|
123
|
-
Logger({
|
|
124
|
-
level: "WARN",
|
|
125
|
-
message: `Parameter Validation warrnings for partner > FileStorage > getNamespaceDetail \n ${warrning}`,
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const query_params = {};
|
|
130
|
-
|
|
131
|
-
const response = await PartnerAPIClient.execute(
|
|
132
|
-
this.config,
|
|
133
|
-
"get",
|
|
134
|
-
`/service/partner/assets/v1.0/organization/${this.config.organizationId}/namespaces/${namespace}`,
|
|
135
|
-
query_params,
|
|
136
|
-
undefined,
|
|
137
|
-
requestHeaders,
|
|
138
|
-
{ responseHeaders }
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
let responseData = response;
|
|
142
|
-
if (responseHeaders) {
|
|
143
|
-
responseData = response[0];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const {
|
|
147
|
-
error: res_error,
|
|
148
|
-
} = FileStoragePartnerModel.NamespaceDetails().validate(responseData, {
|
|
149
|
-
abortEarly: false,
|
|
150
|
-
allowUnknown: true,
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
if (res_error) {
|
|
154
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
155
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
156
|
-
} else {
|
|
157
|
-
Logger({
|
|
158
|
-
level: "WARN",
|
|
159
|
-
message: `Response Validation Warnings for partner > FileStorage > getNamespaceDetail \n ${res_error}`,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return response;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
17
|
/**
|
|
168
18
|
* @param {FileStoragePartnerValidator.CompleteUploadParam} arg - Arg object.
|
|
169
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -360,92 +210,6 @@ class FileStorage {
|
|
|
360
210
|
return response;
|
|
361
211
|
}
|
|
362
212
|
|
|
363
|
-
/**
|
|
364
|
-
* @param {FileStoragePartnerValidator.BrowseParam} arg - Arg object.
|
|
365
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
366
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
367
|
-
* @returns {Promise<Object>} - Success response
|
|
368
|
-
* @name browse
|
|
369
|
-
* @summary: Browse Files
|
|
370
|
-
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/browse/).
|
|
371
|
-
*/
|
|
372
|
-
async browse(
|
|
373
|
-
{ namespace, applicationId, companyId, page, limit, requestHeaders } = {
|
|
374
|
-
requestHeaders: {},
|
|
375
|
-
},
|
|
376
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
377
|
-
) {
|
|
378
|
-
const { error } = FileStoragePartnerValidator.browse().validate(
|
|
379
|
-
{
|
|
380
|
-
namespace,
|
|
381
|
-
applicationId,
|
|
382
|
-
companyId,
|
|
383
|
-
page,
|
|
384
|
-
limit,
|
|
385
|
-
},
|
|
386
|
-
{ abortEarly: false, allowUnknown: true }
|
|
387
|
-
);
|
|
388
|
-
if (error) {
|
|
389
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
// Showing warrnings if extra unknown parameters are found
|
|
393
|
-
const { error: warrning } = FileStoragePartnerValidator.browse().validate(
|
|
394
|
-
{
|
|
395
|
-
namespace,
|
|
396
|
-
|
|
397
|
-
applicationId,
|
|
398
|
-
companyId,
|
|
399
|
-
page,
|
|
400
|
-
limit,
|
|
401
|
-
},
|
|
402
|
-
{ abortEarly: false, allowUnknown: false }
|
|
403
|
-
);
|
|
404
|
-
if (warrning) {
|
|
405
|
-
Logger({
|
|
406
|
-
level: "WARN",
|
|
407
|
-
message: `Parameter Validation warrnings for partner > FileStorage > browse \n ${warrning}`,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
const query_params = {};
|
|
412
|
-
query_params["page"] = page;
|
|
413
|
-
query_params["limit"] = limit;
|
|
414
|
-
|
|
415
|
-
const response = await PartnerAPIClient.execute(
|
|
416
|
-
this.config,
|
|
417
|
-
"get",
|
|
418
|
-
`/service/partner/assets/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/namespaces/${namespace}/browse`,
|
|
419
|
-
query_params,
|
|
420
|
-
undefined,
|
|
421
|
-
requestHeaders,
|
|
422
|
-
{ responseHeaders }
|
|
423
|
-
);
|
|
424
|
-
|
|
425
|
-
let responseData = response;
|
|
426
|
-
if (responseHeaders) {
|
|
427
|
-
responseData = response[0];
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
const { error: res_error } = Joi.any().validate(responseData, {
|
|
431
|
-
abortEarly: false,
|
|
432
|
-
allowUnknown: true,
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
if (res_error) {
|
|
436
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
437
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
438
|
-
} else {
|
|
439
|
-
Logger({
|
|
440
|
-
level: "WARN",
|
|
441
|
-
message: `Response Validation Warnings for partner > FileStorage > browse \n ${res_error}`,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
return response;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
213
|
/**
|
|
450
214
|
* @param {FileStoragePartnerValidator.BrowseFilesParam} arg - Arg object.
|
|
451
215
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -528,177 +292,6 @@ class FileStorage {
|
|
|
528
292
|
return response;
|
|
529
293
|
}
|
|
530
294
|
|
|
531
|
-
/**
|
|
532
|
-
* @param {FileStoragePartnerValidator.OrganizationLevelFetchProxyParam} arg
|
|
533
|
-
* - Arg object.
|
|
534
|
-
*
|
|
535
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
536
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
537
|
-
* @returns {Promise<FileStoragePartnerModel.FetchProxyDetails>} - Success response
|
|
538
|
-
* @name organizationLevelFetchProxy
|
|
539
|
-
* @summary: Proxy
|
|
540
|
-
* @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/organizationLevelFetchProxy/).
|
|
541
|
-
*/
|
|
542
|
-
async organizationLevelFetchProxy(
|
|
543
|
-
{ applicationId, companyId, url, requestHeaders } = { requestHeaders: {} },
|
|
544
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
545
|
-
) {
|
|
546
|
-
const {
|
|
547
|
-
error,
|
|
548
|
-
} = FileStoragePartnerValidator.organizationLevelFetchProxy().validate(
|
|
549
|
-
{
|
|
550
|
-
applicationId,
|
|
551
|
-
companyId,
|
|
552
|
-
url,
|
|
553
|
-
},
|
|
554
|
-
{ abortEarly: false, allowUnknown: true }
|
|
555
|
-
);
|
|
556
|
-
if (error) {
|
|
557
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
// Showing warrnings if extra unknown parameters are found
|
|
561
|
-
const {
|
|
562
|
-
error: warrning,
|
|
563
|
-
} = FileStoragePartnerValidator.organizationLevelFetchProxy().validate(
|
|
564
|
-
{
|
|
565
|
-
applicationId,
|
|
566
|
-
companyId,
|
|
567
|
-
url,
|
|
568
|
-
},
|
|
569
|
-
{ abortEarly: false, allowUnknown: false }
|
|
570
|
-
);
|
|
571
|
-
if (warrning) {
|
|
572
|
-
Logger({
|
|
573
|
-
level: "WARN",
|
|
574
|
-
message: `Parameter Validation warrnings for partner > FileStorage > organizationLevelFetchProxy \n ${warrning}`,
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
const query_params = {};
|
|
579
|
-
query_params["url"] = url;
|
|
580
|
-
|
|
581
|
-
const response = await PartnerAPIClient.execute(
|
|
582
|
-
this.config,
|
|
583
|
-
"get",
|
|
584
|
-
`/service/partner/assets/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/proxy/fetch`,
|
|
585
|
-
query_params,
|
|
586
|
-
undefined,
|
|
587
|
-
requestHeaders,
|
|
588
|
-
{ responseHeaders }
|
|
589
|
-
);
|
|
590
|
-
|
|
591
|
-
let responseData = response;
|
|
592
|
-
if (responseHeaders) {
|
|
593
|
-
responseData = response[0];
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
const {
|
|
597
|
-
error: res_error,
|
|
598
|
-
} = FileStoragePartnerModel.FetchProxyDetails().validate(responseData, {
|
|
599
|
-
abortEarly: false,
|
|
600
|
-
allowUnknown: true,
|
|
601
|
-
});
|
|
602
|
-
|
|
603
|
-
if (res_error) {
|
|
604
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
605
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
606
|
-
} else {
|
|
607
|
-
Logger({
|
|
608
|
-
level: "WARN",
|
|
609
|
-
message: `Response Validation Warnings for partner > FileStorage > organizationLevelFetchProxy \n ${res_error}`,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
return response;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* @param {FileStoragePartnerValidator.SaveOrganizationLevelProxyParam} arg
|
|
619
|
-
* - Arg object.
|
|
620
|
-
*
|
|
621
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
622
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
623
|
-
* @returns {Promise<FileStoragePartnerModel.SaveProxy>} - Success response
|
|
624
|
-
* @name saveOrganizationLevelProxy
|
|
625
|
-
* @summary: Proxy
|
|
626
|
-
* @description: Proxy - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/filestorage/saveOrganizationLevelProxy/).
|
|
627
|
-
*/
|
|
628
|
-
async saveOrganizationLevelProxy(
|
|
629
|
-
{ applicationId, companyId, body, requestHeaders } = { requestHeaders: {} },
|
|
630
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
631
|
-
) {
|
|
632
|
-
const {
|
|
633
|
-
error,
|
|
634
|
-
} = FileStoragePartnerValidator.saveOrganizationLevelProxy().validate(
|
|
635
|
-
{
|
|
636
|
-
applicationId,
|
|
637
|
-
companyId,
|
|
638
|
-
body,
|
|
639
|
-
},
|
|
640
|
-
{ abortEarly: false, allowUnknown: true }
|
|
641
|
-
);
|
|
642
|
-
if (error) {
|
|
643
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
// Showing warrnings if extra unknown parameters are found
|
|
647
|
-
const {
|
|
648
|
-
error: warrning,
|
|
649
|
-
} = FileStoragePartnerValidator.saveOrganizationLevelProxy().validate(
|
|
650
|
-
{
|
|
651
|
-
applicationId,
|
|
652
|
-
companyId,
|
|
653
|
-
body,
|
|
654
|
-
},
|
|
655
|
-
{ abortEarly: false, allowUnknown: false }
|
|
656
|
-
);
|
|
657
|
-
if (warrning) {
|
|
658
|
-
Logger({
|
|
659
|
-
level: "WARN",
|
|
660
|
-
message: `Parameter Validation warrnings for partner > FileStorage > saveOrganizationLevelProxy \n ${warrning}`,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
const query_params = {};
|
|
665
|
-
|
|
666
|
-
const response = await PartnerAPIClient.execute(
|
|
667
|
-
this.config,
|
|
668
|
-
"post",
|
|
669
|
-
`/service/partner/assets/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/proxy/fetch`,
|
|
670
|
-
query_params,
|
|
671
|
-
body,
|
|
672
|
-
requestHeaders,
|
|
673
|
-
{ responseHeaders }
|
|
674
|
-
);
|
|
675
|
-
|
|
676
|
-
let responseData = response;
|
|
677
|
-
if (responseHeaders) {
|
|
678
|
-
responseData = response[0];
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
const {
|
|
682
|
-
error: res_error,
|
|
683
|
-
} = FileStoragePartnerModel.SaveProxy().validate(responseData, {
|
|
684
|
-
abortEarly: false,
|
|
685
|
-
allowUnknown: true,
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
if (res_error) {
|
|
689
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
690
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
691
|
-
} else {
|
|
692
|
-
Logger({
|
|
693
|
-
level: "WARN",
|
|
694
|
-
message: `Response Validation Warnings for partner > FileStorage > saveOrganizationLevelProxy \n ${res_error}`,
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
return response;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
295
|
/**
|
|
703
296
|
* @param {FileStoragePartnerValidator.FetchProxyParam} arg - Arg object.
|
|
704
297
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -860,7 +453,7 @@ class FileStorage {
|
|
|
860
453
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
861
454
|
* @returns {Promise<FileStoragePartnerModel.SignUrlResult>} - Success response
|
|
862
455
|
* @name signUrls
|
|
863
|
-
* @summary:
|
|
456
|
+
* @summary: Get signed URLs.
|
|
864
457
|
* @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/partner/filestorage/signUrls/).
|
|
865
458
|
*/
|
|
866
459
|
async signUrls(
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
export = FileStorageValidator;
|
|
2
2
|
declare class FileStorageValidator {
|
|
3
|
-
static getAllNamespaceDetails(): any;
|
|
4
|
-
static getNamespaceDetail(): any;
|
|
5
3
|
static completeUpload(): any;
|
|
6
4
|
static startUpload(): any;
|
|
7
|
-
static browse(): any;
|
|
8
5
|
static browseFiles(): any;
|
|
9
|
-
static organizationLevelFetchProxy(): any;
|
|
10
|
-
static saveOrganizationLevelProxy(): any;
|
|
11
6
|
static fetchProxy(): any;
|
|
12
7
|
static saveProxyDetails(): any;
|
|
13
8
|
static signUrls(): any;
|
|
@@ -2,16 +2,6 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const FileStorageModel = require("./FileStoragePartnerModel");
|
|
4
4
|
class FileStorageValidator {
|
|
5
|
-
static getAllNamespaceDetails() {
|
|
6
|
-
return Joi.object({}).required();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
static getNamespaceDetail() {
|
|
10
|
-
return Joi.object({
|
|
11
|
-
namespace: Joi.string().allow("").required(),
|
|
12
|
-
}).required();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
5
|
static completeUpload() {
|
|
16
6
|
return Joi.object({
|
|
17
7
|
namespace: Joi.string().allow("").required(),
|
|
@@ -28,17 +18,6 @@ class FileStorageValidator {
|
|
|
28
18
|
}).required();
|
|
29
19
|
}
|
|
30
20
|
|
|
31
|
-
static browse() {
|
|
32
|
-
return Joi.object({
|
|
33
|
-
namespace: Joi.string().allow("").required(),
|
|
34
|
-
|
|
35
|
-
applicationId: Joi.string().allow("").required(),
|
|
36
|
-
companyId: Joi.number().required(),
|
|
37
|
-
page: Joi.number(),
|
|
38
|
-
limit: Joi.number(),
|
|
39
|
-
}).required();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
21
|
static browseFiles() {
|
|
43
22
|
return Joi.object({
|
|
44
23
|
namespace: Joi.string().allow("").required(),
|
|
@@ -48,22 +27,6 @@ class FileStorageValidator {
|
|
|
48
27
|
}).required();
|
|
49
28
|
}
|
|
50
29
|
|
|
51
|
-
static organizationLevelFetchProxy() {
|
|
52
|
-
return Joi.object({
|
|
53
|
-
applicationId: Joi.string().allow("").required(),
|
|
54
|
-
companyId: Joi.number().required(),
|
|
55
|
-
url: Joi.string().allow("").required(),
|
|
56
|
-
}).required();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
static saveOrganizationLevelProxy() {
|
|
60
|
-
return Joi.object({
|
|
61
|
-
applicationId: Joi.string().allow("").required(),
|
|
62
|
-
companyId: Joi.number().required(),
|
|
63
|
-
body: FileStorageModel.ProxyFile().required(),
|
|
64
|
-
}).required();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
30
|
static fetchProxy() {
|
|
68
31
|
return Joi.object({
|
|
69
32
|
url: Joi.string().allow("").required(),
|
|
@@ -14,6 +14,7 @@ export = LeadPartnerModel;
|
|
|
14
14
|
* @property {number} [current] - The current page number.
|
|
15
15
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
16
16
|
* @property {number} [size] - The number of items per page.
|
|
17
|
+
* @property {number} [page_size] - The number of items per page.
|
|
17
18
|
*/
|
|
18
19
|
/**
|
|
19
20
|
* @typedef TicketHistoryList
|
|
@@ -222,6 +223,10 @@ type Page = {
|
|
|
222
223
|
* - The number of items per page.
|
|
223
224
|
*/
|
|
224
225
|
size?: number;
|
|
226
|
+
/**
|
|
227
|
+
* - The number of items per page.
|
|
228
|
+
*/
|
|
229
|
+
page_size?: number;
|
|
225
230
|
};
|
|
226
231
|
/** @returns {TicketHistoryList} */
|
|
227
232
|
declare function TicketHistoryList(): TicketHistoryList;
|