@gofynd/fdk-client-javascript 1.3.11-beta.8 → 1.4.0-beta.2
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/CartApplicationModel.d.ts +2 -0
- package/sdk/application/Cart/CartApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +185 -315
- package/sdk/partner/Theme/ThemePartnerModel.js +182 -222
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -12
- package/sdk/platform/Catalog/CatalogPlatformClient.js +17 -87
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +11 -25
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +4 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +14 -3
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +14 -5
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +13 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +14 -3
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -0
- package/sdk/platform/Content/ContentPlatformModel.js +6 -0
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +12 -3
- package/sdk/platform/Content/ContentPlatformValidator.js +11 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +118 -58
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +122 -68
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -12
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -12
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -61
- package/sdk/platform/Order/OrderPlatformClient.js +87 -481
- package/sdk/platform/Order/OrderPlatformModel.d.ts +442 -171
- package/sdk/platform/Order/OrderPlatformModel.js +483 -169
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +22 -69
- package/sdk/platform/Order/OrderPlatformValidator.js +17 -79
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -21
- package/sdk/platform/Theme/ThemePlatformModel.js +108 -20
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformClient.js +4 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +21 -27
- package/sdk/platform/Webhook/WebhookPlatformModel.js +30 -27
|
@@ -579,6 +579,7 @@ export = ContentPlatformModel;
|
|
|
579
579
|
* @typedef DefaultSEOSchemaMarkupTemplate
|
|
580
580
|
* @property {string} [page_type]
|
|
581
581
|
* @property {string} [schema]
|
|
582
|
+
* @property {Object} [target_json]
|
|
582
583
|
*/
|
|
583
584
|
/**
|
|
584
585
|
* @typedef Detail
|
|
@@ -1026,6 +1027,7 @@ export = ContentPlatformModel;
|
|
|
1026
1027
|
* @property {string} [id]
|
|
1027
1028
|
* @property {string} [page_type]
|
|
1028
1029
|
* @property {string} [schema]
|
|
1030
|
+
* @property {Object} [target_json]
|
|
1029
1031
|
* @property {string} [title]
|
|
1030
1032
|
* @property {string} [updated_at]
|
|
1031
1033
|
*/
|
|
@@ -1036,6 +1038,7 @@ export = ContentPlatformModel;
|
|
|
1036
1038
|
* @property {string} [description]
|
|
1037
1039
|
* @property {string} [page_type]
|
|
1038
1040
|
* @property {string} [schema]
|
|
1041
|
+
* @property {Object} [target_json]
|
|
1039
1042
|
* @property {string} [title]
|
|
1040
1043
|
* @property {string} [updated_at]
|
|
1041
1044
|
*/
|
|
@@ -1873,6 +1876,7 @@ declare function DefaultSEOSchemaMarkupTemplate(): DefaultSEOSchemaMarkupTemplat
|
|
|
1873
1876
|
type DefaultSEOSchemaMarkupTemplate = {
|
|
1874
1877
|
page_type?: string;
|
|
1875
1878
|
schema?: string;
|
|
1879
|
+
target_json?: any;
|
|
1876
1880
|
};
|
|
1877
1881
|
/** @returns {Detail} */
|
|
1878
1882
|
declare function Detail(): Detail;
|
|
@@ -2392,6 +2396,7 @@ type SEOSchemaMarkupTemplate = {
|
|
|
2392
2396
|
id?: string;
|
|
2393
2397
|
page_type?: string;
|
|
2394
2398
|
schema?: string;
|
|
2399
|
+
target_json?: any;
|
|
2395
2400
|
title?: string;
|
|
2396
2401
|
updated_at?: string;
|
|
2397
2402
|
};
|
|
@@ -2403,6 +2408,7 @@ type SEOSchemaMarkupTemplateRequestBody = {
|
|
|
2403
2408
|
description?: string;
|
|
2404
2409
|
page_type?: string;
|
|
2405
2410
|
schema?: string;
|
|
2411
|
+
target_json?: any;
|
|
2406
2412
|
title?: string;
|
|
2407
2413
|
updated_at?: string;
|
|
2408
2414
|
};
|
|
@@ -653,6 +653,7 @@ const Joi = require("joi");
|
|
|
653
653
|
* @typedef DefaultSEOSchemaMarkupTemplate
|
|
654
654
|
* @property {string} [page_type]
|
|
655
655
|
* @property {string} [schema]
|
|
656
|
+
* @property {Object} [target_json]
|
|
656
657
|
*/
|
|
657
658
|
|
|
658
659
|
/**
|
|
@@ -1160,6 +1161,7 @@ const Joi = require("joi");
|
|
|
1160
1161
|
* @property {string} [id]
|
|
1161
1162
|
* @property {string} [page_type]
|
|
1162
1163
|
* @property {string} [schema]
|
|
1164
|
+
* @property {Object} [target_json]
|
|
1163
1165
|
* @property {string} [title]
|
|
1164
1166
|
* @property {string} [updated_at]
|
|
1165
1167
|
*/
|
|
@@ -1171,6 +1173,7 @@ const Joi = require("joi");
|
|
|
1171
1173
|
* @property {string} [description]
|
|
1172
1174
|
* @property {string} [page_type]
|
|
1173
1175
|
* @property {string} [schema]
|
|
1176
|
+
* @property {Object} [target_json]
|
|
1174
1177
|
* @property {string} [title]
|
|
1175
1178
|
* @property {string} [updated_at]
|
|
1176
1179
|
*/
|
|
@@ -2195,6 +2198,7 @@ class ContentPlatformModel {
|
|
|
2195
2198
|
return Joi.object({
|
|
2196
2199
|
page_type: Joi.string().allow(""),
|
|
2197
2200
|
schema: Joi.string().allow(""),
|
|
2201
|
+
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2198
2202
|
});
|
|
2199
2203
|
}
|
|
2200
2204
|
|
|
@@ -2835,6 +2839,7 @@ class ContentPlatformModel {
|
|
|
2835
2839
|
id: Joi.string().allow(""),
|
|
2836
2840
|
page_type: Joi.string().allow(""),
|
|
2837
2841
|
schema: Joi.string().allow(""),
|
|
2842
|
+
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2838
2843
|
title: Joi.string().allow(""),
|
|
2839
2844
|
updated_at: Joi.string().allow(""),
|
|
2840
2845
|
});
|
|
@@ -2848,6 +2853,7 @@ class ContentPlatformModel {
|
|
|
2848
2853
|
description: Joi.string().allow(""),
|
|
2849
2854
|
page_type: Joi.string().allow(""),
|
|
2850
2855
|
schema: Joi.string().allow(""),
|
|
2856
|
+
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2851
2857
|
title: Joi.string().allow(""),
|
|
2852
2858
|
updated_at: Joi.string().allow(""),
|
|
2853
2859
|
});
|
|
@@ -69,7 +69,12 @@ export = ContentPlatformValidator;
|
|
|
69
69
|
* @property {string} pageSize
|
|
70
70
|
* @property {string} [search]
|
|
71
71
|
*/
|
|
72
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* @typedef GetCustomObjectsParam
|
|
74
|
+
* @property {string} [definitionId]
|
|
75
|
+
* @property {string} pageNo
|
|
76
|
+
* @property {string} pageSize
|
|
77
|
+
*/
|
|
73
78
|
/**
|
|
74
79
|
* @typedef GetJobsParam
|
|
75
80
|
* @property {string} page
|
|
@@ -135,7 +140,7 @@ declare class ContentPlatformValidator {
|
|
|
135
140
|
/** @returns {GetCustomObjectDefinitionsParam} */
|
|
136
141
|
static getCustomObjectDefinitions(): GetCustomObjectDefinitionsParam;
|
|
137
142
|
/** @returns {GetCustomObjectsParam} */
|
|
138
|
-
static getCustomObjects():
|
|
143
|
+
static getCustomObjects(): GetCustomObjectsParam;
|
|
139
144
|
/** @returns {GetJobsParam} */
|
|
140
145
|
static getJobs(): GetJobsParam;
|
|
141
146
|
/** @returns {GetResourcesParam} */
|
|
@@ -208,6 +213,11 @@ type GetCustomObjectDefinitionsParam = {
|
|
|
208
213
|
pageSize: string;
|
|
209
214
|
search?: string;
|
|
210
215
|
};
|
|
216
|
+
type GetCustomObjectsParam = {
|
|
217
|
+
definitionId?: string;
|
|
218
|
+
pageNo: string;
|
|
219
|
+
pageSize: string;
|
|
220
|
+
};
|
|
211
221
|
type GetJobsParam = {
|
|
212
222
|
page: string;
|
|
213
223
|
pageSize: string;
|
|
@@ -233,6 +243,5 @@ type UpdateCustomObjectDefinitionParam = {
|
|
|
233
243
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema;
|
|
234
244
|
};
|
|
235
245
|
type GetCustomFieldTypesParam = any;
|
|
236
|
-
type GetCustomObjectsParam = any;
|
|
237
246
|
type GetResourcesParam = any;
|
|
238
247
|
import ContentPlatformModel = require("./ContentPlatformModel");
|
|
@@ -88,7 +88,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
88
88
|
* @property {string} [search]
|
|
89
89
|
*/
|
|
90
90
|
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* @typedef GetCustomObjectsParam
|
|
93
|
+
* @property {string} [definitionId]
|
|
94
|
+
* @property {string} pageNo
|
|
95
|
+
* @property {string} pageSize
|
|
96
|
+
*/
|
|
92
97
|
|
|
93
98
|
/**
|
|
94
99
|
* @typedef GetJobsParam
|
|
@@ -250,7 +255,11 @@ class ContentPlatformValidator {
|
|
|
250
255
|
|
|
251
256
|
/** @returns {GetCustomObjectsParam} */
|
|
252
257
|
static getCustomObjects() {
|
|
253
|
-
return Joi.object({
|
|
258
|
+
return Joi.object({
|
|
259
|
+
definitionId: Joi.string().allow(""),
|
|
260
|
+
pageNo: Joi.string().allow("").required(),
|
|
261
|
+
pageSize: Joi.string().allow("").required(),
|
|
262
|
+
}).required();
|
|
254
263
|
}
|
|
255
264
|
|
|
256
265
|
/** @returns {GetJobsParam} */
|
|
@@ -38,6 +38,7 @@ export = DiscountPlatformModel;
|
|
|
38
38
|
* @property {number[]} [store_ids]
|
|
39
39
|
* @property {ValidityObject} validity
|
|
40
40
|
* @property {number} [value]
|
|
41
|
+
* @property {string[]} [zone_ids]
|
|
41
42
|
*/
|
|
42
43
|
/**
|
|
43
44
|
* @typedef DiscountItems
|
|
@@ -216,6 +217,7 @@ type CreateUpdateDiscount = {
|
|
|
216
217
|
store_ids?: number[];
|
|
217
218
|
validity: ValidityObject;
|
|
218
219
|
value?: number;
|
|
220
|
+
zone_ids?: string[];
|
|
219
221
|
};
|
|
220
222
|
/** @returns {DiscountItems} */
|
|
221
223
|
declare function DiscountItems(): DiscountItems;
|
|
@@ -44,6 +44,7 @@ const Joi = require("joi");
|
|
|
44
44
|
* @property {number[]} [store_ids]
|
|
45
45
|
* @property {ValidityObject} validity
|
|
46
46
|
* @property {number} [value]
|
|
47
|
+
* @property {string[]} [zone_ids]
|
|
47
48
|
*/
|
|
48
49
|
|
|
49
50
|
/**
|
|
@@ -242,6 +243,7 @@ class DiscountPlatformModel {
|
|
|
242
243
|
store_ids: Joi.array().items(Joi.number()),
|
|
243
244
|
validity: DiscountPlatformModel.ValidityObject().required(),
|
|
244
245
|
value: Joi.number(),
|
|
246
|
+
zone_ids: Joi.array().items(Joi.string().allow("")),
|
|
245
247
|
});
|
|
246
248
|
}
|
|
247
249
|
|