@gofynd/fdk-client-javascript 1.3.4-beta.1 → 1.3.4
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/Catalog/CatalogApplicationModel.d.ts +18 -1
- package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
- package/sdk/application/User/UserApplicationClient.d.ts +56 -0
- package/sdk/application/User/UserApplicationClient.js +385 -0
- package/sdk/application/User/UserApplicationModel.d.ts +93 -1
- package/sdk/application/User/UserApplicationModel.js +110 -0
- package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
- package/sdk/application/User/UserApplicationValidator.js +68 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/index.d.ts +1 -0
- package/sdk/partner/index.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
- package/sdk/platform/Order/OrderPlatformModel.js +10 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
|
@@ -36,6 +36,11 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
36
36
|
* @property {number} [limit] - Limit
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @typedef GeneratePaymentReceiptParam
|
|
41
|
+
* @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body
|
|
42
|
+
*/
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* @typedef GetDefaultHtmlTemplateParam
|
|
41
46
|
* @property {number} pdfTypeId
|
|
@@ -56,13 +61,14 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
56
61
|
/** @typedef GetPdfTypesParam */
|
|
57
62
|
|
|
58
63
|
/**
|
|
59
|
-
* @typedef
|
|
60
|
-
* @property {FileStoragePlatformModel.
|
|
64
|
+
* @typedef SaveHtmlTemplateParam
|
|
65
|
+
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
61
66
|
*/
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
|
-
* @typedef
|
|
65
|
-
* @property {
|
|
69
|
+
* @typedef UpdateHtmlTemplateParam
|
|
70
|
+
* @property {string} id
|
|
71
|
+
* @property {FileStoragePlatformModel.PdfConfig} body
|
|
66
72
|
*/
|
|
67
73
|
|
|
68
74
|
class FileStoragePlatformApplicationValidator {
|
|
@@ -103,6 +109,13 @@ class FileStoragePlatformApplicationValidator {
|
|
|
103
109
|
}).required();
|
|
104
110
|
}
|
|
105
111
|
|
|
112
|
+
/** @returns {GeneratePaymentReceiptParam} */
|
|
113
|
+
static generatePaymentReceipt() {
|
|
114
|
+
return Joi.object({
|
|
115
|
+
body: FileStoragePlatformModel.PaymentReceiptRequestBody().required(),
|
|
116
|
+
}).required();
|
|
117
|
+
}
|
|
118
|
+
|
|
106
119
|
/** @returns {GetDefaultHtmlTemplateParam} */
|
|
107
120
|
static getDefaultHtmlTemplate() {
|
|
108
121
|
return Joi.object({
|
|
@@ -131,17 +144,18 @@ class FileStoragePlatformApplicationValidator {
|
|
|
131
144
|
return Joi.object({}).required();
|
|
132
145
|
}
|
|
133
146
|
|
|
134
|
-
/** @returns {
|
|
135
|
-
static
|
|
147
|
+
/** @returns {SaveHtmlTemplateParam} */
|
|
148
|
+
static saveHtmlTemplate() {
|
|
136
149
|
return Joi.object({
|
|
137
|
-
body: FileStoragePlatformModel.
|
|
150
|
+
body: FileStoragePlatformModel.PdfConfig().required(),
|
|
138
151
|
}).required();
|
|
139
152
|
}
|
|
140
153
|
|
|
141
|
-
/** @returns {
|
|
142
|
-
static
|
|
154
|
+
/** @returns {UpdateHtmlTemplateParam} */
|
|
155
|
+
static updateHtmlTemplate() {
|
|
143
156
|
return Joi.object({
|
|
144
|
-
|
|
157
|
+
id: Joi.string().allow("").required(),
|
|
158
|
+
body: FileStoragePlatformModel.PdfConfig().required(),
|
|
145
159
|
}).required();
|
|
146
160
|
}
|
|
147
161
|
}
|
|
@@ -6,12 +6,12 @@ declare class FileStorage {
|
|
|
6
6
|
* @param {FileStoragePlatformValidator.BrowseParam} arg - Arg object
|
|
7
7
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
8
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
|
-
* @returns {Promise<
|
|
9
|
+
* @returns {Promise<Object>} - Success response
|
|
10
10
|
* @name browse
|
|
11
11
|
* @summary: Browse Files
|
|
12
12
|
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/).
|
|
13
13
|
*/
|
|
14
|
-
browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise<
|
|
14
|
+
browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
15
15
|
/**
|
|
16
16
|
* @param {FileStoragePlatformValidator.CompleteUploadParam} arg - Arg object
|
|
17
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -44,12 +44,12 @@ declare class FileStorage {
|
|
|
44
44
|
* @param {FileStoragePlatformValidator.CopyFilesParam} arg - Arg object
|
|
45
45
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
46
46
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
47
|
-
* @returns {Promise<
|
|
47
|
+
* @returns {Promise<Object>} - Success response
|
|
48
48
|
* @name copyFiles
|
|
49
49
|
* @summary: Copy Files
|
|
50
50
|
* @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/).
|
|
51
51
|
*/
|
|
52
|
-
copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise<
|
|
52
|
+
copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise<any>;
|
|
53
53
|
/**
|
|
54
54
|
* @param {FileStoragePlatformValidator.GetSignUrlsParam} arg - Arg object
|
|
55
55
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -17,7 +17,7 @@ class FileStorage {
|
|
|
17
17
|
* @param {FileStoragePlatformValidator.BrowseParam} arg - Arg object
|
|
18
18
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
19
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
|
-
* @returns {Promise<
|
|
20
|
+
* @returns {Promise<Object>} - Success response
|
|
21
21
|
* @name browse
|
|
22
22
|
* @summary: Browse Files
|
|
23
23
|
* @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/).
|
|
@@ -77,9 +77,7 @@ class FileStorage {
|
|
|
77
77
|
responseData = response[0];
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
const {
|
|
81
|
-
error: res_error,
|
|
82
|
-
} = FileStoragePlatformModel.BrowseResponse().validate(responseData, {
|
|
80
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
83
81
|
abortEarly: false,
|
|
84
82
|
allowUnknown: false,
|
|
85
83
|
});
|
|
@@ -195,7 +193,7 @@ class FileStorage {
|
|
|
195
193
|
* @param {FileStoragePlatformValidator.CopyFilesParam} arg - Arg object
|
|
196
194
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
197
195
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
198
|
-
* @returns {Promise<
|
|
196
|
+
* @returns {Promise<Object>} - Success response
|
|
199
197
|
* @name copyFiles
|
|
200
198
|
* @summary: Copy Files
|
|
201
199
|
* @description: Copy Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/).
|
|
@@ -252,9 +250,7 @@ class FileStorage {
|
|
|
252
250
|
responseData = response[0];
|
|
253
251
|
}
|
|
254
252
|
|
|
255
|
-
const {
|
|
256
|
-
error: res_error,
|
|
257
|
-
} = FileStoragePlatformModel.BulkUploadSyncMode().validate(responseData, {
|
|
253
|
+
const { error: res_error } = Joi.any().validate(responseData, {
|
|
258
254
|
abortEarly: false,
|
|
259
255
|
allowUnknown: false,
|
|
260
256
|
});
|