@gofynd/fdk-client-javascript 1.4.2-beta.7 → 1.4.3
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 +5 -3
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationAPIClient.js +0 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +25 -25
- package/sdk/application/Cart/CartApplicationClient.js +25 -25
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +40 -40
- package/sdk/application/Catalog/CatalogApplicationClient.js +40 -40
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationClient.d.ts +10 -10
- package/sdk/application/Content/ContentApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationModel.d.ts +18 -18
- package/sdk/application/Content/ContentApplicationModel.js +26 -26
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +12 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +7 -7
- package/sdk/application/Lead/LeadApplicationModel.d.ts +64 -77
- package/sdk/application/Lead/LeadApplicationModel.js +42 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +9 -9
- package/sdk/application/Logistic/LogisticApplicationClient.js +9 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
- package/sdk/application/Order/OrderApplicationClient.js +12 -12
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +47 -47
- package/sdk/application/Payment/PaymentApplicationClient.js +52 -52
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +4 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +27 -27
- package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
- package/sdk/application/Share/ShareApplicationModel.js +2 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +25 -32
- package/sdk/application/Theme/ThemeApplicationModel.js +30 -40
- package/sdk/application/User/UserApplicationClient.d.ts +28 -28
- package/sdk/application/User/UserApplicationClient.js +28 -28
- package/sdk/application/User/UserApplicationModel.d.ts +44 -13
- package/sdk/application/User/UserApplicationModel.js +17 -13
- package/sdk/common/AxiosHelper.d.ts +1 -1
- package/sdk/common/AxiosHelper.js +38 -17
- package/sdk/common/Clickstream.js +22 -16
- package/sdk/common/curlHelper.js +1 -3
- package/sdk/common/utils.d.ts +15 -0
- package/sdk/common/utils.js +30 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +2 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +4 -4
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +4 -4
- package/sdk/partner/OAuthClient.d.ts +3 -3
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerAPIClient.js +0 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +19 -19
- package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +25 -32
- package/sdk/partner/Theme/ThemePartnerModel.js +30 -40
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +4 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +17 -17
- package/sdk/platform/Billing/BillingPlatformClient.js +17 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +49 -49
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +49 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +60 -60
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +62 -62
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +87 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.js +87 -87
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +65 -28
- package/sdk/platform/Catalog/CatalogPlatformModel.js +68 -36
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +58 -58
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +12 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +12 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +16 -16
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +16 -16
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +18 -18
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +63 -63
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +3 -3
- package/sdk/platform/Content/ContentPlatformClient.js +9 -9
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -18
- package/sdk/platform/Content/ContentPlatformModel.js +26 -26
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +19 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +23 -14
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +12 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +27 -27
- package/sdk/platform/Finance/FinancePlatformClient.js +27 -27
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +62 -77
- package/sdk/platform/Lead/LeadPlatformModel.js +40 -52
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +2 -2
- package/sdk/platform/Order/OrderPlatformClient.d.ts +41 -41
- package/sdk/platform/Order/OrderPlatformClient.js +41 -41
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8 -2
- package/sdk/platform/Order/OrderPlatformModel.js +8 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +38 -38
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +38 -38
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.js +0 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +9 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +15 -15
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +15 -15
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +28 -28
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +28 -28
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +25 -32
- package/sdk/platform/Theme/ThemePlatformModel.js +30 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/User/UserPlatformApplicationClient.js +16 -16
- package/sdk/platform/User/UserPlatformModel.d.ts +48 -13
- package/sdk/platform/User/UserPlatformModel.js +21 -13
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +16 -16
- package/sdk/platform/Webhook/WebhookPlatformClient.js +16 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
- package/sdk/public/Billing/BillingPublicClient.d.ts +1 -1
- package/sdk/public/Billing/BillingPublicClient.js +4 -4
- package/sdk/public/Billing/BillingPublicValidator.d.ts +2 -2
- package/sdk/public/Billing/BillingPublicValidator.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +2 -2
- package/sdk/public/Content/ContentPublicValidator.js +3 -3
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +8 -8
- package/sdk/public/Inventory/InventoryPublicModel.js +8 -8
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
|
@@ -288,16 +288,9 @@ export = ContentPlatformModel;
|
|
|
288
288
|
*/
|
|
289
289
|
/**
|
|
290
290
|
* @typedef Action
|
|
291
|
+
* @property {string} [type]
|
|
291
292
|
* @property {ActionPage} [page]
|
|
292
293
|
* @property {ActionPage} [popup]
|
|
293
|
-
* @property {string} [type]
|
|
294
|
-
*/
|
|
295
|
-
/**
|
|
296
|
-
* @typedef ActionPage
|
|
297
|
-
* @property {Object} [params]
|
|
298
|
-
* @property {Object} [query]
|
|
299
|
-
* @property {string} [url]
|
|
300
|
-
* @property {PageType} type
|
|
301
294
|
*/
|
|
302
295
|
/**
|
|
303
296
|
* @typedef NavigationReference
|
|
@@ -1176,6 +1169,13 @@ export = ContentPlatformModel;
|
|
|
1176
1169
|
* @property {string} [url]
|
|
1177
1170
|
* @property {number} [total_records]
|
|
1178
1171
|
*/
|
|
1172
|
+
/**
|
|
1173
|
+
* @typedef ActionPage
|
|
1174
|
+
* @property {Object} [params]
|
|
1175
|
+
* @property {Object} [query]
|
|
1176
|
+
* @property {string} [url]
|
|
1177
|
+
* @property {PageType} type
|
|
1178
|
+
*/
|
|
1179
1179
|
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
1180
1180
|
/**
|
|
1181
1181
|
* @typedef {| "about-us"
|
|
@@ -1228,7 +1228,7 @@ export = ContentPlatformModel;
|
|
|
1228
1228
|
declare class ContentPlatformModel {
|
|
1229
1229
|
}
|
|
1230
1230
|
declare namespace ContentPlatformModel {
|
|
1231
|
-
export { GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogRequest, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action,
|
|
1231
|
+
export { GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogRequest, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, NavigationReference, CronBasedScheduleSchema, ConfigurationSchema, SlideshowMedia, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, CreateTagRequestSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessResponse, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetResponse, LandingPageSchema, DefaultNavigationResponse, NavigationGetResponse, Orientation, NavigationSchema, NavigationRequest, PageGetResponse, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PageRequest, CronSchedule, PagePublishRequest, PageMetaSchema, SlideshowGetResponse, SlideshowSchema, SlideshowRequest, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectCustomFieldDefinitionResSchema, CustomObjectDefinitionSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadResponse, CustomObjectListItemDefinationSchema, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, CustomObjectJobSchema, CustomObjectBulkEntry, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectRequestSchema, CustomObjectBulkSchema, ActionPage, GenerationEntityType, PageType };
|
|
1232
1232
|
}
|
|
1233
1233
|
/** @returns {GenerateSEOContent} */
|
|
1234
1234
|
declare function GenerateSEOContent(): GenerateSEOContent;
|
|
@@ -1560,17 +1560,9 @@ type Language = {
|
|
|
1560
1560
|
/** @returns {Action} */
|
|
1561
1561
|
declare function Action(): Action;
|
|
1562
1562
|
type Action = {
|
|
1563
|
+
type?: string;
|
|
1563
1564
|
page?: ActionPage;
|
|
1564
1565
|
popup?: ActionPage;
|
|
1565
|
-
type?: string;
|
|
1566
|
-
};
|
|
1567
|
-
/** @returns {ActionPage} */
|
|
1568
|
-
declare function ActionPage(): ActionPage;
|
|
1569
|
-
type ActionPage = {
|
|
1570
|
-
params?: any;
|
|
1571
|
-
query?: any;
|
|
1572
|
-
url?: string;
|
|
1573
|
-
type: PageType;
|
|
1574
1566
|
};
|
|
1575
1567
|
/** @returns {NavigationReference} */
|
|
1576
1568
|
declare function NavigationReference(): NavigationReference;
|
|
@@ -2573,6 +2565,14 @@ type CustomObjectBulkSchema = {
|
|
|
2573
2565
|
url?: string;
|
|
2574
2566
|
total_records?: number;
|
|
2575
2567
|
};
|
|
2568
|
+
/** @returns {ActionPage} */
|
|
2569
|
+
declare function ActionPage(): ActionPage;
|
|
2570
|
+
type ActionPage = {
|
|
2571
|
+
params?: any;
|
|
2572
|
+
query?: any;
|
|
2573
|
+
url?: string;
|
|
2574
|
+
type: PageType;
|
|
2575
|
+
};
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Enum: GenerationEntityType Used By: Content
|
|
2578
2578
|
*
|
|
@@ -329,17 +329,9 @@ const Joi = require("joi");
|
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
331
|
* @typedef Action
|
|
332
|
+
* @property {string} [type]
|
|
332
333
|
* @property {ActionPage} [page]
|
|
333
334
|
* @property {ActionPage} [popup]
|
|
334
|
-
* @property {string} [type]
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @typedef ActionPage
|
|
339
|
-
* @property {Object} [params]
|
|
340
|
-
* @property {Object} [query]
|
|
341
|
-
* @property {string} [url]
|
|
342
|
-
* @property {PageType} type
|
|
343
335
|
*/
|
|
344
336
|
|
|
345
337
|
/**
|
|
@@ -1331,6 +1323,14 @@ const Joi = require("joi");
|
|
|
1331
1323
|
* @property {number} [total_records]
|
|
1332
1324
|
*/
|
|
1333
1325
|
|
|
1326
|
+
/**
|
|
1327
|
+
* @typedef ActionPage
|
|
1328
|
+
* @property {Object} [params]
|
|
1329
|
+
* @property {Object} [query]
|
|
1330
|
+
* @property {string} [url]
|
|
1331
|
+
* @property {PageType} type
|
|
1332
|
+
*/
|
|
1333
|
+
|
|
1334
1334
|
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
1335
1335
|
|
|
1336
1336
|
/**
|
|
@@ -1795,25 +1795,9 @@ class ContentPlatformModel {
|
|
|
1795
1795
|
/** @returns {Action} */
|
|
1796
1796
|
static Action() {
|
|
1797
1797
|
return Joi.object({
|
|
1798
|
+
type: Joi.string().allow(""),
|
|
1798
1799
|
page: ContentPlatformModel.ActionPage(),
|
|
1799
1800
|
popup: ContentPlatformModel.ActionPage(),
|
|
1800
|
-
type: Joi.string().allow(""),
|
|
1801
|
-
});
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
/** @returns {ActionPage} */
|
|
1805
|
-
static ActionPage() {
|
|
1806
|
-
return Joi.object({
|
|
1807
|
-
params: Joi.object().pattern(
|
|
1808
|
-
/\S/,
|
|
1809
|
-
Joi.array().items(Joi.string().allow(""))
|
|
1810
|
-
),
|
|
1811
|
-
query: Joi.object().pattern(
|
|
1812
|
-
/\S/,
|
|
1813
|
-
Joi.array().items(Joi.string().allow(""))
|
|
1814
|
-
),
|
|
1815
|
-
url: Joi.string().allow(""),
|
|
1816
|
-
type: ContentPlatformModel.PageType().required(),
|
|
1817
1801
|
});
|
|
1818
1802
|
}
|
|
1819
1803
|
|
|
@@ -3067,6 +3051,22 @@ class ContentPlatformModel {
|
|
|
3067
3051
|
});
|
|
3068
3052
|
}
|
|
3069
3053
|
|
|
3054
|
+
/** @returns {ActionPage} */
|
|
3055
|
+
static ActionPage() {
|
|
3056
|
+
return Joi.object({
|
|
3057
|
+
params: Joi.object().pattern(
|
|
3058
|
+
/\S/,
|
|
3059
|
+
Joi.array().items(Joi.string().allow(""))
|
|
3060
|
+
),
|
|
3061
|
+
query: Joi.object().pattern(
|
|
3062
|
+
/\S/,
|
|
3063
|
+
Joi.array().items(Joi.string().allow(""))
|
|
3064
|
+
),
|
|
3065
|
+
url: Joi.string().allow(""),
|
|
3066
|
+
type: ContentPlatformModel.PageType().required(),
|
|
3067
|
+
});
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
3070
|
/**
|
|
3071
3071
|
* Enum: GenerationEntityType Used By: Content
|
|
3072
3072
|
*
|
|
@@ -41,8 +41,8 @@ export = ContentPlatformValidator;
|
|
|
41
41
|
* @typedef GetCustomFieldDefinitionsParam
|
|
42
42
|
* @property {string} pageNo
|
|
43
43
|
* @property {string} pageSize
|
|
44
|
-
* @property {string} [
|
|
45
|
-
* @property {string} [
|
|
44
|
+
* @property {string} [resource]
|
|
45
|
+
* @property {string} [type]
|
|
46
46
|
* @property {string} [search]
|
|
47
47
|
*/
|
|
48
48
|
/** @typedef GetCustomFieldTypesParam */
|
|
@@ -191,8 +191,8 @@ type GetCustomFieldDefinitionParam = {
|
|
|
191
191
|
type GetCustomFieldDefinitionsParam = {
|
|
192
192
|
pageNo: string;
|
|
193
193
|
pageSize: string;
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
resource?: string;
|
|
195
|
+
type?: string;
|
|
196
196
|
search?: string;
|
|
197
197
|
};
|
|
198
198
|
type GetCustomFieldsParam = {
|
|
@@ -53,8 +53,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
53
53
|
* @typedef GetCustomFieldDefinitionsParam
|
|
54
54
|
* @property {string} pageNo
|
|
55
55
|
* @property {string} pageSize
|
|
56
|
-
* @property {string} [
|
|
57
|
-
* @property {string} [
|
|
56
|
+
* @property {string} [resource]
|
|
57
|
+
* @property {string} [type]
|
|
58
58
|
* @property {string} [search]
|
|
59
59
|
*/
|
|
60
60
|
|
|
@@ -204,8 +204,8 @@ class ContentPlatformValidator {
|
|
|
204
204
|
return Joi.object({
|
|
205
205
|
pageNo: Joi.string().allow("").required(),
|
|
206
206
|
pageSize: Joi.string().allow("").required(),
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
resource: Joi.string().allow(""),
|
|
208
|
+
type: Joi.string().allow(""),
|
|
209
209
|
search: Joi.string().allow(""),
|
|
210
210
|
}).required();
|
|
211
211
|
}
|
|
@@ -8,7 +8,7 @@ declare class Discount {
|
|
|
8
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
9
|
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
10
10
|
* @name cancelDownloadJob
|
|
11
|
-
* @summary: Cancel download job
|
|
11
|
+
* @summary: Cancel download job
|
|
12
12
|
* @description: Cancel download Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
|
|
13
13
|
*/
|
|
14
14
|
cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
|
|
@@ -18,7 +18,7 @@ declare class Discount {
|
|
|
18
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
19
|
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
20
20
|
* @name cancelValidationJob
|
|
21
|
-
* @summary: Cancel validation job
|
|
21
|
+
* @summary: Cancel validation job
|
|
22
22
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
|
|
23
23
|
*/
|
|
24
24
|
cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
|
|
@@ -28,7 +28,7 @@ declare class Discount {
|
|
|
28
28
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
29
29
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
30
30
|
* @name createDiscount
|
|
31
|
-
* @summary: Create discount
|
|
31
|
+
* @summary: Create discount
|
|
32
32
|
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/createDiscount/).
|
|
33
33
|
*/
|
|
34
34
|
createDiscount({ body, requestHeaders }?: DiscountPlatformValidator.CreateDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
@@ -38,7 +38,7 @@ declare class Discount {
|
|
|
38
38
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
39
39
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
40
40
|
* @name downloadDiscountFile
|
|
41
|
-
* @summary: Download discount file
|
|
41
|
+
* @summary: Download discount file
|
|
42
42
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
|
|
43
43
|
*/
|
|
44
44
|
downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
@@ -48,7 +48,7 @@ declare class Discount {
|
|
|
48
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
49
49
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
50
50
|
* @name getDiscount
|
|
51
|
-
* @summary: Get discount by ID
|
|
51
|
+
* @summary: Get discount by ID
|
|
52
52
|
* @description: Retrieve detailed information about a specific discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscount/).
|
|
53
53
|
*/
|
|
54
54
|
getDiscount({ id, requestHeaders }?: DiscountPlatformValidator.GetDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
@@ -58,7 +58,7 @@ declare class Discount {
|
|
|
58
58
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
59
59
|
* @returns {Promise<DiscountPlatformModel.ListOrCalender>} - Success response
|
|
60
60
|
* @name getDiscounts
|
|
61
|
-
* @summary: Get discounts
|
|
61
|
+
* @summary: Get discounts
|
|
62
62
|
* @description: Retrieve a list of available discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscounts/).
|
|
63
63
|
*/
|
|
64
64
|
getDiscounts({ view, q, pageNo, pageSize, archived, month, year, type, appIds, requestHeaders, }?: DiscountPlatformValidator.GetDiscountsParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.ListOrCalender>;
|
|
@@ -68,7 +68,7 @@ declare class Discount {
|
|
|
68
68
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
69
69
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
70
70
|
* @name getDownloadJob
|
|
71
|
-
* @summary: Get download job
|
|
71
|
+
* @summary: Get download job
|
|
72
72
|
* @description: Download file Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
|
|
73
73
|
*/
|
|
74
74
|
getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
@@ -78,7 +78,7 @@ declare class Discount {
|
|
|
78
78
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
79
79
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
80
80
|
* @name getValidationJob
|
|
81
|
-
* @summary: Get validation job
|
|
81
|
+
* @summary: Get validation job
|
|
82
82
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
|
|
83
83
|
*/
|
|
84
84
|
getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
@@ -88,7 +88,7 @@ declare class Discount {
|
|
|
88
88
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
89
89
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
90
90
|
* @name updateDiscount
|
|
91
|
-
* @summary: Update discount
|
|
91
|
+
* @summary: Update discount
|
|
92
92
|
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/updateDiscount/).
|
|
93
93
|
*/
|
|
94
94
|
updateDiscount({ id, body, requestHeaders }?: DiscountPlatformValidator.UpdateDiscountParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.DiscountJob>;
|
|
@@ -98,7 +98,7 @@ declare class Discount {
|
|
|
98
98
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
99
99
|
* @returns {Promise<Object>} - Success response
|
|
100
100
|
* @name upsertDiscountItems
|
|
101
|
-
* @summary: Upsert discount items
|
|
101
|
+
* @summary: Upsert discount items
|
|
102
102
|
* @description: Create custom discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/upsertDiscountItems/).
|
|
103
103
|
*/
|
|
104
104
|
upsertDiscountItems({ id, body, requestHeaders }?: DiscountPlatformValidator.UpsertDiscountItemsParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -108,7 +108,7 @@ declare class Discount {
|
|
|
108
108
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
109
109
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
110
110
|
* @name validateDiscountFile
|
|
111
|
-
* @summary: Validate discount file
|
|
111
|
+
* @summary: Validate discount file
|
|
112
112
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
|
|
113
113
|
*/
|
|
114
114
|
validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
|
|
@@ -20,7 +20,7 @@ class Discount {
|
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
21
|
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
22
22
|
* @name cancelDownloadJob
|
|
23
|
-
* @summary: Cancel download job
|
|
23
|
+
* @summary: Cancel download job
|
|
24
24
|
* @description: Cancel download Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
|
|
25
25
|
*/
|
|
26
26
|
async cancelDownloadJob(
|
|
@@ -99,7 +99,7 @@ class Discount {
|
|
|
99
99
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
100
100
|
* @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
|
|
101
101
|
* @name cancelValidationJob
|
|
102
|
-
* @summary: Cancel validation job
|
|
102
|
+
* @summary: Cancel validation job
|
|
103
103
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
|
|
104
104
|
*/
|
|
105
105
|
async cancelValidationJob(
|
|
@@ -178,7 +178,7 @@ class Discount {
|
|
|
178
178
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
179
179
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
180
180
|
* @name createDiscount
|
|
181
|
-
* @summary: Create discount
|
|
181
|
+
* @summary: Create discount
|
|
182
182
|
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/createDiscount/).
|
|
183
183
|
*/
|
|
184
184
|
async createDiscount(
|
|
@@ -257,7 +257,7 @@ class Discount {
|
|
|
257
257
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
258
258
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
259
259
|
* @name downloadDiscountFile
|
|
260
|
-
* @summary: Download discount file
|
|
260
|
+
* @summary: Download discount file
|
|
261
261
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
|
|
262
262
|
*/
|
|
263
263
|
async downloadDiscountFile(
|
|
@@ -338,7 +338,7 @@ class Discount {
|
|
|
338
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
339
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
340
340
|
* @name getDiscount
|
|
341
|
-
* @summary: Get discount by ID
|
|
341
|
+
* @summary: Get discount by ID
|
|
342
342
|
* @description: Retrieve detailed information about a specific discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscount/).
|
|
343
343
|
*/
|
|
344
344
|
async getDiscount(
|
|
@@ -417,7 +417,7 @@ class Discount {
|
|
|
417
417
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
418
418
|
* @returns {Promise<DiscountPlatformModel.ListOrCalender>} - Success response
|
|
419
419
|
* @name getDiscounts
|
|
420
|
-
* @summary: Get discounts
|
|
420
|
+
* @summary: Get discounts
|
|
421
421
|
* @description: Retrieve a list of available discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDiscounts/).
|
|
422
422
|
*/
|
|
423
423
|
async getDiscounts(
|
|
@@ -532,7 +532,7 @@ class Discount {
|
|
|
532
532
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
533
533
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
534
534
|
* @name getDownloadJob
|
|
535
|
-
* @summary: Get download job
|
|
535
|
+
* @summary: Get download job
|
|
536
536
|
* @description: Download file Job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
|
|
537
537
|
*/
|
|
538
538
|
async getDownloadJob(
|
|
@@ -611,7 +611,7 @@ class Discount {
|
|
|
611
611
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
612
612
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
613
613
|
* @name getValidationJob
|
|
614
|
-
* @summary: Get validation job
|
|
614
|
+
* @summary: Get validation job
|
|
615
615
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
|
|
616
616
|
*/
|
|
617
617
|
async getValidationJob(
|
|
@@ -690,7 +690,7 @@ class Discount {
|
|
|
690
690
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
691
691
|
* @returns {Promise<DiscountPlatformModel.DiscountJob>} - Success response
|
|
692
692
|
* @name updateDiscount
|
|
693
|
-
* @summary: Update discount
|
|
693
|
+
* @summary: Update discount
|
|
694
694
|
* @description: Create discount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/updateDiscount/).
|
|
695
695
|
*/
|
|
696
696
|
async updateDiscount(
|
|
@@ -771,7 +771,7 @@ class Discount {
|
|
|
771
771
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
772
772
|
* @returns {Promise<Object>} - Success response
|
|
773
773
|
* @name upsertDiscountItems
|
|
774
|
-
* @summary: Upsert discount items
|
|
774
|
+
* @summary: Upsert discount items
|
|
775
775
|
* @description: Create custom discounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/upsertDiscountItems/).
|
|
776
776
|
*/
|
|
777
777
|
async upsertDiscountItems(
|
|
@@ -850,7 +850,7 @@ class Discount {
|
|
|
850
850
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
851
851
|
* @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
|
|
852
852
|
* @name validateDiscountFile
|
|
853
|
-
* @summary: Validate discount file
|
|
853
|
+
* @summary: Validate discount file
|
|
854
854
|
* @description: Validate file. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
|
|
855
855
|
*/
|
|
856
856
|
async validateDiscountFile(
|
|
@@ -11,7 +11,7 @@ declare class FileStorage {
|
|
|
11
11
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
12
12
|
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
13
13
|
* @name appCompleteUpload
|
|
14
|
-
* @summary: Application complete upload
|
|
14
|
+
* @summary: Application complete upload
|
|
15
15
|
* @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
|
|
16
16
|
*/
|
|
17
17
|
appCompleteUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.CompleteResponse>;
|
|
@@ -21,7 +21,7 @@ declare class FileStorage {
|
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
22
|
* @returns {Promise<Object>} - Success response
|
|
23
23
|
* @name appCopyFiles
|
|
24
|
-
* @summary: Application copy files
|
|
24
|
+
* @summary: Application copy files
|
|
25
25
|
* @description: Copy files from an application to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/).
|
|
26
26
|
*/
|
|
27
27
|
appCopyFiles({ body, sync, requestHeaders }?: FileStoragePlatformApplicationValidator.AppCopyFilesParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -33,7 +33,7 @@ declare class FileStorage {
|
|
|
33
33
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
34
34
|
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
35
35
|
* @name appStartUpload
|
|
36
|
-
* @summary: Application start upload
|
|
36
|
+
* @summary: Application start upload
|
|
37
37
|
* @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
|
|
38
38
|
*/
|
|
39
39
|
appStartUpload({ namespace, body, requestHeaders }?: FileStoragePlatformApplicationValidator.AppStartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.StartResponse>;
|
|
@@ -43,7 +43,7 @@ declare class FileStorage {
|
|
|
43
43
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
44
44
|
* @returns {Promise<Object>} - Success response
|
|
45
45
|
* @name appbrowse
|
|
46
|
-
* @summary: Application browse files
|
|
46
|
+
* @summary: Application browse files
|
|
47
47
|
* @description: Browse files within an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
|
|
48
48
|
*/
|
|
49
49
|
appbrowse({ namespace, page, limit, search, requestHeaders }?: FileStoragePlatformApplicationValidator.AppbrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -65,7 +65,7 @@ declare class FileStorage {
|
|
|
65
65
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
66
66
|
* @returns {Promise<Object>} - Success response
|
|
67
67
|
* @name generatePaymentReceipt
|
|
68
|
-
* @summary: Generate payment receipt
|
|
68
|
+
* @summary: Generate payment receipt
|
|
69
69
|
* @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/).
|
|
70
70
|
*/
|
|
71
71
|
generatePaymentReceipt({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -90,7 +90,7 @@ declare class FileStorage {
|
|
|
90
90
|
* @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
|
|
91
91
|
* Success response
|
|
92
92
|
* @name getDefaultPdfData
|
|
93
|
-
* @summary: Get default PDF data
|
|
93
|
+
* @summary: Get default PDF data
|
|
94
94
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
95
95
|
*/
|
|
96
96
|
getDefaultPdfData({ pdfTypeId, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfDataParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.DummyTemplateDataItems>;
|
|
@@ -103,7 +103,7 @@ declare class FileStorage {
|
|
|
103
103
|
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>} -
|
|
104
104
|
* Success response
|
|
105
105
|
* @name getDefaultPdfTemplate
|
|
106
|
-
* @summary: Get default PDF template
|
|
106
|
+
* @summary: Get default PDF template
|
|
107
107
|
* @description: Retrieve the default PDF template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
|
|
108
108
|
*/
|
|
109
109
|
getDefaultPdfTemplate({ pdfTypeId, format, countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetDefaultPdfTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>;
|
|
@@ -114,7 +114,7 @@ declare class FileStorage {
|
|
|
114
114
|
* @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
|
|
115
115
|
* Success response
|
|
116
116
|
* @name getPdfTypes
|
|
117
|
-
* @summary: Get PDF types
|
|
117
|
+
* @summary: Get PDF types
|
|
118
118
|
* @description: Retrieve a list of available PDF types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
119
119
|
*/
|
|
120
120
|
getPdfTypes({ countryCode, requestHeaders }?: FileStoragePlatformApplicationValidator.GetPdfTypesParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.InvoiceTypesResponse>;
|
|
@@ -127,7 +127,7 @@ declare class FileStorage {
|
|
|
127
127
|
* @returns {Promise<FileStoragePlatformModel.PdfConfigSaveSuccess>} -
|
|
128
128
|
* Success response
|
|
129
129
|
* @name saveHtmlTemplate
|
|
130
|
-
* @summary: Save HTML template
|
|
130
|
+
* @summary: Save HTML template
|
|
131
131
|
* @description: Store an HTML template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/).
|
|
132
132
|
*/
|
|
133
133
|
saveHtmlTemplate({ body, requestHeaders }?: FileStoragePlatformApplicationValidator.SaveHtmlTemplateParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.PdfConfigSaveSuccess>;
|
|
@@ -9,7 +9,7 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel");
|
|
|
9
9
|
const { Logger } = require("./../../common/Logger");
|
|
10
10
|
const Joi = require("joi");
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const { fdkAxios } = require("../../common/AxiosHelper.js");
|
|
13
13
|
|
|
14
14
|
class FileStorage {
|
|
15
15
|
constructor(config, applicationId) {
|
|
@@ -25,7 +25,7 @@ class FileStorage {
|
|
|
25
25
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
26
26
|
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
27
27
|
* @name appCompleteUpload
|
|
28
|
-
* @summary: Application complete upload
|
|
28
|
+
* @summary: Application complete upload
|
|
29
29
|
* @description: Finish uploading a file from an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCompleteUpload/).
|
|
30
30
|
*/
|
|
31
31
|
async appCompleteUpload(
|
|
@@ -108,7 +108,7 @@ class FileStorage {
|
|
|
108
108
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
109
109
|
* @returns {Promise<Object>} - Success response
|
|
110
110
|
* @name appCopyFiles
|
|
111
|
-
* @summary: Application copy files
|
|
111
|
+
* @summary: Application copy files
|
|
112
112
|
* @description: Copy files from an application to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appCopyFiles/).
|
|
113
113
|
*/
|
|
114
114
|
async appCopyFiles(
|
|
@@ -190,7 +190,7 @@ class FileStorage {
|
|
|
190
190
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
191
191
|
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
192
192
|
* @name appStartUpload
|
|
193
|
-
* @summary: Application start upload
|
|
193
|
+
* @summary: Application start upload
|
|
194
194
|
* @description: Start uploading a file from an application and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appStartUpload/).
|
|
195
195
|
*/
|
|
196
196
|
async appStartUpload(
|
|
@@ -273,7 +273,7 @@ class FileStorage {
|
|
|
273
273
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
274
274
|
* @returns {Promise<Object>} - Success response
|
|
275
275
|
* @name appbrowse
|
|
276
|
-
* @summary: Application browse files
|
|
276
|
+
* @summary: Application browse files
|
|
277
277
|
* @description: Browse files within an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/appbrowse/).
|
|
278
278
|
*/
|
|
279
279
|
async appbrowse(
|
|
@@ -455,7 +455,7 @@ class FileStorage {
|
|
|
455
455
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
456
456
|
* @returns {Promise<Object>} - Success response
|
|
457
457
|
* @name generatePaymentReceipt
|
|
458
|
-
* @summary: Generate payment receipt
|
|
458
|
+
* @summary: Generate payment receipt
|
|
459
459
|
* @description: Generate Payment Receipt for Jiomart Digital - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/generatePaymentReceipt/).
|
|
460
460
|
*/
|
|
461
461
|
async generatePaymentReceipt(
|
|
@@ -623,7 +623,7 @@ class FileStorage {
|
|
|
623
623
|
* @returns {Promise<FileStoragePlatformModel.DummyTemplateDataItems>} -
|
|
624
624
|
* Success response
|
|
625
625
|
* @name getDefaultPdfData
|
|
626
|
-
* @summary: Get default PDF data
|
|
626
|
+
* @summary: Get default PDF data
|
|
627
627
|
* @description: Retrieve default data for PDF generation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfData/).
|
|
628
628
|
*/
|
|
629
629
|
async getDefaultPdfData(
|
|
@@ -709,7 +709,7 @@ class FileStorage {
|
|
|
709
709
|
* @returns {Promise<FileStoragePlatformModel.PdfDefaultTemplateSuccess>} -
|
|
710
710
|
* Success response
|
|
711
711
|
* @name getDefaultPdfTemplate
|
|
712
|
-
* @summary: Get default PDF template
|
|
712
|
+
* @summary: Get default PDF template
|
|
713
713
|
* @description: Retrieve the default PDF template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getDefaultPdfTemplate/).
|
|
714
714
|
*/
|
|
715
715
|
async getDefaultPdfTemplate(
|
|
@@ -796,7 +796,7 @@ class FileStorage {
|
|
|
796
796
|
* @returns {Promise<FileStoragePlatformModel.InvoiceTypesResponse>} -
|
|
797
797
|
* Success response
|
|
798
798
|
* @name getPdfTypes
|
|
799
|
-
* @summary: Get PDF types
|
|
799
|
+
* @summary: Get PDF types
|
|
800
800
|
* @description: Retrieve a list of available PDF types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getPdfTypes/).
|
|
801
801
|
*/
|
|
802
802
|
async getPdfTypes(
|
|
@@ -879,7 +879,7 @@ class FileStorage {
|
|
|
879
879
|
* @returns {Promise<FileStoragePlatformModel.PdfConfigSaveSuccess>} -
|
|
880
880
|
* Success response
|
|
881
881
|
* @name saveHtmlTemplate
|
|
882
|
-
* @summary: Save HTML template
|
|
882
|
+
* @summary: Save HTML template
|
|
883
883
|
* @description: Store an HTML template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/saveHtmlTemplate/).
|
|
884
884
|
*/
|
|
885
885
|
async saveHtmlTemplate(
|
|
@@ -1065,10 +1065,16 @@ FileStorage.prototype.upload = function ({
|
|
|
1065
1065
|
},
|
|
1066
1066
|
});
|
|
1067
1067
|
if (dataObj.upload && dataObj.upload.url) {
|
|
1068
|
-
|
|
1068
|
+
let rawRequest = {
|
|
1069
|
+
method: "PUT",
|
|
1070
|
+
url: dataObj.upload.url,
|
|
1071
|
+
data: data,
|
|
1072
|
+
headers: {
|
|
1073
|
+
"Content-Type": content_type,
|
|
1074
|
+
},
|
|
1069
1075
|
withCredentials: false,
|
|
1070
|
-
|
|
1071
|
-
|
|
1076
|
+
};
|
|
1077
|
+
await fdkAxios.request(rawRequest);
|
|
1072
1078
|
} else {
|
|
1073
1079
|
reject({ message: "Failed to upload file" });
|
|
1074
1080
|
}
|
|
@@ -8,7 +8,7 @@ declare class FileStorage {
|
|
|
8
8
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
9
9
|
* @returns {Promise<Object>} - Success response
|
|
10
10
|
* @name browse
|
|
11
|
-
* @summary: Browse files
|
|
11
|
+
* @summary: Browse files
|
|
12
12
|
* @description: View and navigate through available files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browse/).
|
|
13
13
|
*/
|
|
14
14
|
browse({ namespace, page, limit, requestHeaders }?: FileStoragePlatformValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -18,7 +18,7 @@ declare class FileStorage {
|
|
|
18
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
19
19
|
* @returns {Promise<FileStoragePlatformModel.CompleteResponse>} - Success response
|
|
20
20
|
* @name completeUpload
|
|
21
|
-
* @summary: Complete file upload
|
|
21
|
+
* @summary: Complete file upload
|
|
22
22
|
* @description: Starts the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/completeUpload/).
|
|
23
23
|
*/
|
|
24
24
|
completeUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.CompleteResponse>;
|
|
@@ -28,7 +28,7 @@ declare class FileStorage {
|
|
|
28
28
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
29
29
|
* @returns {Promise<Object>} - Success response
|
|
30
30
|
* @name copyFiles
|
|
31
|
-
* @summary: Copy files
|
|
31
|
+
* @summary: Copy files
|
|
32
32
|
* @description: Duplicate files to another location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/copyFiles/).
|
|
33
33
|
*/
|
|
34
34
|
copyFiles({ body, sync, requestHeaders }?: FileStoragePlatformValidator.CopyFilesParam, { responseHeaders }?: object): Promise<any>;
|
|
@@ -38,7 +38,7 @@ declare class FileStorage {
|
|
|
38
38
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
39
39
|
* @returns {Promise<FileStoragePlatformModel.SignUrlResponse>} - Success response
|
|
40
40
|
* @name getSignUrls
|
|
41
|
-
* @summary: Get signed URLs
|
|
41
|
+
* @summary: Get signed URLs
|
|
42
42
|
* @description: Retrieve signed URLs for file access. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/getSignUrls/).
|
|
43
43
|
*/
|
|
44
44
|
getSignUrls({ body, requestHeaders }?: FileStoragePlatformValidator.GetSignUrlsParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.SignUrlResponse>;
|
|
@@ -46,19 +46,19 @@ declare class FileStorage {
|
|
|
46
46
|
* @param {FileStoragePlatformValidator.ProxyParam} arg - Arg object
|
|
47
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
48
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<
|
|
49
|
+
* @returns {Promise<FileStoragePlatformModel.ProxyResponse>} - Success response
|
|
50
50
|
* @name proxy
|
|
51
|
-
* @summary: Proxy file access
|
|
51
|
+
* @summary: Proxy file access
|
|
52
52
|
* @description: Access files through a proxy. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/proxy/).
|
|
53
53
|
*/
|
|
54
|
-
proxy({ url, requestHeaders }?: FileStoragePlatformValidator.ProxyParam, { responseHeaders }?: object): Promise<
|
|
54
|
+
proxy({ url, requestHeaders }?: FileStoragePlatformValidator.ProxyParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.ProxyResponse>;
|
|
55
55
|
/**
|
|
56
56
|
* @param {FileStoragePlatformValidator.StartUploadParam} arg - Arg object
|
|
57
57
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
58
58
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
59
59
|
* @returns {Promise<FileStoragePlatformModel.StartResponse>} - Success response
|
|
60
60
|
* @name startUpload
|
|
61
|
-
* @summary: Start file upload
|
|
61
|
+
* @summary: Start file upload
|
|
62
62
|
* @description: Inititates the process of uploading a file to storage location, and returns a storage link in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/startUpload/).
|
|
63
63
|
*/
|
|
64
64
|
startUpload({ namespace, body, requestHeaders }?: FileStoragePlatformValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStoragePlatformModel.StartResponse>;
|