@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -1,96 +1,13 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {
|
|
7
|
-
* @property {string[]} [format]
|
|
8
|
-
* @property {boolean} [visibility]
|
|
9
|
-
* @property {Object} [schema]
|
|
10
|
-
* @property {boolean} [store_os]
|
|
11
|
-
* @property {string} [country_code]
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef PdfTypeByIdDetails
|
|
16
|
-
* @property {boolean} [store_os]
|
|
17
|
-
* @property {string} [country_code]
|
|
18
|
-
* @property {number} [pdf_type_id]
|
|
19
|
-
* @property {number} [__v]
|
|
20
|
-
* @property {string} [_id]
|
|
21
|
-
* @property {string[]} [format]
|
|
22
|
-
* @property {string} [name]
|
|
23
|
-
* @property {boolean} [visibility]
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @typedef PdfConfigurationData
|
|
28
|
-
* @property {string} [_id]
|
|
29
|
-
* @property {number} [pdf_type_id]
|
|
30
|
-
* @property {string} [format]
|
|
31
|
-
* @property {string} [template]
|
|
32
|
-
* @property {string} [country_code]
|
|
33
|
-
* @property {number} [__v]
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @typedef UpdatedDefaultTemplateById
|
|
38
|
-
* @property {PdfConfigurationData} [data]
|
|
39
|
-
* @property {boolean} [success]
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @typedef UpdateTemplate
|
|
44
|
-
* @property {number} [pdf_type_id]
|
|
45
|
-
* @property {string} [format] - This is invoice document format such as A4, A6, POS, A5
|
|
46
|
-
* @property {string} [country_code] - This is iso code of a country
|
|
47
|
-
* @property {string} [template] - This is html template string
|
|
48
|
-
* @property {boolean} [store_os] - This flag is to identify store-os
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @typedef PdfDefaultTemplateById
|
|
53
|
-
* @property {string} [_id] - The ID of the PDF default template
|
|
54
|
-
* @property {string} [country_code] - The country code associated with the template
|
|
55
|
-
* @property {string} [format] - The format of the template (e.g., "A4")
|
|
56
|
-
* @property {number} [pdf_type_id] - The ID of the PDF type
|
|
57
|
-
* @property {number} [__v] - Version number
|
|
58
|
-
* @property {string} [template] - The HTML template content
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @typedef PdfTemplateCreateSuccess
|
|
63
|
-
* @property {number} [code]
|
|
64
|
-
* @property {boolean} [success]
|
|
65
|
-
* @property {PdfTemplateCreateSuccessData} [data]
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @typedef PdfTemplateCreateSuccessData
|
|
70
|
-
* @property {string} [_id]
|
|
71
|
-
* @property {number} [pdf_type_id]
|
|
72
|
-
* @property {string} [format]
|
|
73
|
-
* @property {string} [template]
|
|
74
|
-
* @property {string} [country_code]
|
|
75
|
-
* @property {number} [__v]
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @typedef CreateTemplate
|
|
80
|
-
* @property {number} pdf_type_id
|
|
81
|
-
* @property {string} format - This is invoice document format such as A4, A6, POS, A5
|
|
82
|
-
* @property {string} country_code - This is iso code of a country
|
|
83
|
-
* @property {string} [template] - This is html template string
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @typedef PdfDefaultTemplateSuccess
|
|
88
|
-
* @property {Document[]} [data]
|
|
89
|
-
* @property {boolean} [success] - Indicates if the request was successful.
|
|
4
|
+
* @typedef ProxyResponse
|
|
5
|
+
* @property {Object} [data]
|
|
6
|
+
* @property {Object} [support]
|
|
90
7
|
*/
|
|
91
8
|
|
|
92
9
|
/**
|
|
93
|
-
* @typedef
|
|
10
|
+
* @typedef FailedResponse
|
|
94
11
|
* @property {string} message
|
|
95
12
|
*/
|
|
96
13
|
|
|
@@ -108,7 +25,7 @@ const Joi = require("joi");
|
|
|
108
25
|
*/
|
|
109
26
|
|
|
110
27
|
/**
|
|
111
|
-
* @typedef
|
|
28
|
+
* @typedef StartResponse
|
|
112
29
|
* @property {string} file_name
|
|
113
30
|
* @property {string} file_path
|
|
114
31
|
* @property {string} content_type
|
|
@@ -117,16 +34,23 @@ const Joi = require("joi");
|
|
|
117
34
|
* @property {string} operation
|
|
118
35
|
* @property {number} size
|
|
119
36
|
* @property {Upload} upload
|
|
37
|
+
* @property {CDN} cdn
|
|
120
38
|
* @property {string[]} [tags]
|
|
121
39
|
*/
|
|
122
40
|
|
|
123
41
|
/**
|
|
124
|
-
* @typedef
|
|
42
|
+
* @typedef Params
|
|
43
|
+
* @property {string} [subpath] - The subpath for the file.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef StartRequest
|
|
125
48
|
* @property {string} file_name
|
|
126
49
|
* @property {string} content_type
|
|
127
50
|
* @property {number} size
|
|
128
51
|
* @property {string[]} [tags]
|
|
129
52
|
* @property {Object} [params]
|
|
53
|
+
* @property {string} [enc_key]
|
|
130
54
|
*/
|
|
131
55
|
|
|
132
56
|
/**
|
|
@@ -135,7 +59,7 @@ const Joi = require("joi");
|
|
|
135
59
|
*/
|
|
136
60
|
|
|
137
61
|
/**
|
|
138
|
-
* @typedef
|
|
62
|
+
* @typedef CompleteResponse
|
|
139
63
|
* @property {string} _id
|
|
140
64
|
* @property {string} file_name
|
|
141
65
|
* @property {string} file_path
|
|
@@ -153,12 +77,6 @@ const Joi = require("joi");
|
|
|
153
77
|
* @property {CreatedBy} [created_by]
|
|
154
78
|
*/
|
|
155
79
|
|
|
156
|
-
/**
|
|
157
|
-
* @typedef ProxyFileAccess
|
|
158
|
-
* @property {Object} [data]
|
|
159
|
-
* @property {Object} [support]
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
80
|
/**
|
|
163
81
|
* @typedef DestinationNamespace
|
|
164
82
|
* @property {string} [namespace]
|
|
@@ -178,18 +96,25 @@ const Joi = require("joi");
|
|
|
178
96
|
*/
|
|
179
97
|
|
|
180
98
|
/**
|
|
181
|
-
* @typedef
|
|
99
|
+
* @typedef SignUrlResponse
|
|
182
100
|
* @property {Urls[]} urls
|
|
183
101
|
*/
|
|
184
102
|
|
|
185
103
|
/**
|
|
186
|
-
* @typedef
|
|
104
|
+
* @typedef EncryptionMapping
|
|
105
|
+
* @property {string} [enc_url]
|
|
106
|
+
* @property {string} [value]
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @typedef SignUrlRequest
|
|
187
111
|
* @property {number} expiry
|
|
188
112
|
* @property {string[]} urls
|
|
113
|
+
* @property {EncryptionMapping[]} [enc_url_mapping]
|
|
189
114
|
*/
|
|
190
115
|
|
|
191
116
|
/**
|
|
192
|
-
* @typedef
|
|
117
|
+
* @typedef InvoiceTypesDataResponse
|
|
193
118
|
* @property {boolean} [status]
|
|
194
119
|
* @property {string} _id
|
|
195
120
|
* @property {number} pdf_type_id
|
|
@@ -197,13 +122,12 @@ const Joi = require("joi");
|
|
|
197
122
|
* @property {string[]} format
|
|
198
123
|
* @property {number} __v
|
|
199
124
|
* @property {boolean} visibility
|
|
200
|
-
* @property {boolean} store_os
|
|
201
125
|
* @property {string} country_code
|
|
202
126
|
*/
|
|
203
127
|
|
|
204
128
|
/**
|
|
205
|
-
* @typedef
|
|
206
|
-
* @property {
|
|
129
|
+
* @typedef InvoiceTypesResponse
|
|
130
|
+
* @property {InvoiceTypesDataResponse[]} data
|
|
207
131
|
* @property {boolean} success
|
|
208
132
|
*/
|
|
209
133
|
|
|
@@ -516,7 +440,7 @@ const Joi = require("joi");
|
|
|
516
440
|
*/
|
|
517
441
|
|
|
518
442
|
/**
|
|
519
|
-
* @typedef
|
|
443
|
+
* @typedef DummyTemplateDataPayload
|
|
520
444
|
* @property {boolean} [is_export]
|
|
521
445
|
* @property {boolean} [is_export_shipment]
|
|
522
446
|
* @property {string} [app_domain_name]
|
|
@@ -550,6 +474,8 @@ const Joi = require("joi");
|
|
|
550
474
|
* @property {boolean} [is_self_ship]
|
|
551
475
|
* @property {string} [mode]
|
|
552
476
|
* @property {boolean} [is_self_pickup]
|
|
477
|
+
* @property {Object} [shipment_meta] - This field represents the shipment meta details
|
|
478
|
+
* @property {Object} [order_meta] - This field represents the order meta details
|
|
553
479
|
* @property {string} [platform_name]
|
|
554
480
|
* @property {number} [amount_to_be_collected]
|
|
555
481
|
* @property {number} [amount_paid]
|
|
@@ -569,29 +495,13 @@ const Joi = require("joi");
|
|
|
569
495
|
* @property {string} [_id] - This field contains the unique identifier for the
|
|
570
496
|
* PDF payload.
|
|
571
497
|
* @property {number} [pdf_type_id] - This is invoice unique id
|
|
572
|
-
* @property {
|
|
498
|
+
* @property {DummyTemplateDataPayload} payload
|
|
573
499
|
* @property {string} [country_code] - This field represents the country code.
|
|
574
|
-
* @property {number} [__v]
|
|
575
|
-
*/
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @typedef savePdfPayload
|
|
579
|
-
* @property {number} [pdf_type_id]
|
|
580
|
-
* @property {PdfPayloadDetails} [payload]
|
|
581
|
-
* @property {string} [country_code]
|
|
582
|
-
*/
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @typedef MapperDetails
|
|
586
|
-
* @property {string} [_id]
|
|
587
|
-
* @property {number} [pdf_type_id]
|
|
588
|
-
* @property {PdfPayloadDetails} [payload]
|
|
589
|
-
* @property {string} [country_code]
|
|
590
500
|
* @property {number} [__v] - This field holds the version number.
|
|
591
501
|
*/
|
|
592
502
|
|
|
593
503
|
/**
|
|
594
|
-
* @typedef
|
|
504
|
+
* @typedef DummyTemplateDataItems
|
|
595
505
|
* @property {DummyTemplateData[]} data
|
|
596
506
|
* @property {boolean} success
|
|
597
507
|
*/
|
|
@@ -599,37 +509,22 @@ const Joi = require("joi");
|
|
|
599
509
|
/**
|
|
600
510
|
* @typedef PdfConfig
|
|
601
511
|
* @property {string} [format] - This is invoice document format such as A4, A6, POS
|
|
602
|
-
* @property {string} [template] - This is html template string
|
|
603
|
-
* @property {number} [pdf_type_id]
|
|
604
|
-
* @property {string} [country_code] - This field contains the country code.
|
|
605
|
-
* @property {boolean} [default_template] - This field indicates whether the
|
|
606
|
-
* fetched HTML template is the default template.
|
|
512
|
+
* @property {string} [template] - This is html template string
|
|
513
|
+
* @property {number} [pdf_type_id]
|
|
607
514
|
*/
|
|
608
515
|
|
|
609
516
|
/**
|
|
610
517
|
* @typedef PdfConfigSuccessData
|
|
611
|
-
* @property {string} [_id]
|
|
612
|
-
*
|
|
613
|
-
* @property {
|
|
614
|
-
*
|
|
615
|
-
* @property {string} [
|
|
616
|
-
*
|
|
617
|
-
* @property {number} [
|
|
618
|
-
* @property {string} [format] - This field specifies the format of the invoice document.
|
|
619
|
-
* @property {string} [template] - This field contains the HTML template string
|
|
620
|
-
* for the PDF document.
|
|
621
|
-
* @property {number} [__v] - This field holds the version number of the PDF
|
|
622
|
-
* configuration document.
|
|
518
|
+
* @property {string} [_id]
|
|
519
|
+
* @property {number} [company_id]
|
|
520
|
+
* @property {string} [application_id]
|
|
521
|
+
* @property {number} [pdf_type_id]
|
|
522
|
+
* @property {string} [format]
|
|
523
|
+
* @property {string} [template]
|
|
524
|
+
* @property {number} [__v]
|
|
623
525
|
* @property {string} [country_code]
|
|
624
526
|
*/
|
|
625
527
|
|
|
626
|
-
/**
|
|
627
|
-
* @typedef DeleteMapperById
|
|
628
|
-
* @property {string} [message] - This field represents the country code.
|
|
629
|
-
* @property {boolean} [default_template] - This field indicates whether the
|
|
630
|
-
* HTML template is the default template.
|
|
631
|
-
*/
|
|
632
|
-
|
|
633
528
|
/**
|
|
634
529
|
* @typedef PdfConfigSuccess
|
|
635
530
|
* @property {PdfConfigSuccessData[]} [data]
|
|
@@ -653,6 +548,12 @@ const Joi = require("joi");
|
|
|
653
548
|
* @property {boolean} [success]
|
|
654
549
|
*/
|
|
655
550
|
|
|
551
|
+
/**
|
|
552
|
+
* @typedef PdfDefaultTemplateSuccess
|
|
553
|
+
* @property {Document[]} [data]
|
|
554
|
+
* @property {boolean} [success] - Indicates if the request was successful.
|
|
555
|
+
*/
|
|
556
|
+
|
|
656
557
|
/**
|
|
657
558
|
* @typedef Document
|
|
658
559
|
* @property {string} [_id]
|
|
@@ -743,117 +644,16 @@ const Joi = require("joi");
|
|
|
743
644
|
*/
|
|
744
645
|
|
|
745
646
|
class FileStoragePlatformModel {
|
|
746
|
-
/** @returns {
|
|
747
|
-
static
|
|
748
|
-
return Joi.object({
|
|
749
|
-
pdf_type_id: Joi.number(),
|
|
750
|
-
name: Joi.string().allow(""),
|
|
751
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
752
|
-
visibility: Joi.boolean(),
|
|
753
|
-
schema: Joi.object().pattern(/\S/, Joi.any()),
|
|
754
|
-
store_os: Joi.boolean(),
|
|
755
|
-
country_code: Joi.string().allow(""),
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
/** @returns {PdfTypeByIdDetails} */
|
|
760
|
-
static PdfTypeByIdDetails() {
|
|
647
|
+
/** @returns {ProxyResponse} */
|
|
648
|
+
static ProxyResponse() {
|
|
761
649
|
return Joi.object({
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
pdf_type_id: Joi.number(),
|
|
765
|
-
__v: Joi.number(),
|
|
766
|
-
_id: Joi.string().allow(""),
|
|
767
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
768
|
-
name: Joi.string().allow(""),
|
|
769
|
-
visibility: Joi.boolean(),
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/** @returns {PdfConfigurationData} */
|
|
774
|
-
static PdfConfigurationData() {
|
|
775
|
-
return Joi.object({
|
|
776
|
-
_id: Joi.string().allow(""),
|
|
777
|
-
pdf_type_id: Joi.number(),
|
|
778
|
-
format: Joi.string().allow(""),
|
|
779
|
-
template: Joi.string().allow(""),
|
|
780
|
-
country_code: Joi.string().allow(""),
|
|
781
|
-
__v: Joi.number(),
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/** @returns {UpdatedDefaultTemplateById} */
|
|
786
|
-
static UpdatedDefaultTemplateById() {
|
|
787
|
-
return Joi.object({
|
|
788
|
-
data: FileStoragePlatformModel.PdfConfigurationData(),
|
|
789
|
-
success: Joi.boolean(),
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/** @returns {UpdateTemplate} */
|
|
794
|
-
static UpdateTemplate() {
|
|
795
|
-
return Joi.object({
|
|
796
|
-
pdf_type_id: Joi.number(),
|
|
797
|
-
format: Joi.string().allow(""),
|
|
798
|
-
country_code: Joi.string().allow(""),
|
|
799
|
-
template: Joi.string().allow(""),
|
|
800
|
-
store_os: Joi.boolean(),
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/** @returns {PdfDefaultTemplateById} */
|
|
805
|
-
static PdfDefaultTemplateById() {
|
|
806
|
-
return Joi.object({
|
|
807
|
-
_id: Joi.string().allow(""),
|
|
808
|
-
country_code: Joi.string().allow(""),
|
|
809
|
-
format: Joi.string().allow(""),
|
|
810
|
-
pdf_type_id: Joi.number(),
|
|
811
|
-
__v: Joi.number(),
|
|
812
|
-
template: Joi.string().allow(""),
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
/** @returns {PdfTemplateCreateSuccess} */
|
|
817
|
-
static PdfTemplateCreateSuccess() {
|
|
818
|
-
return Joi.object({
|
|
819
|
-
code: Joi.number(),
|
|
820
|
-
success: Joi.boolean(),
|
|
821
|
-
data: FileStoragePlatformModel.PdfTemplateCreateSuccessData(),
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/** @returns {PdfTemplateCreateSuccessData} */
|
|
826
|
-
static PdfTemplateCreateSuccessData() {
|
|
827
|
-
return Joi.object({
|
|
828
|
-
_id: Joi.string().allow(""),
|
|
829
|
-
pdf_type_id: Joi.number(),
|
|
830
|
-
format: Joi.string().allow(""),
|
|
831
|
-
template: Joi.string().allow(""),
|
|
832
|
-
country_code: Joi.string().allow(""),
|
|
833
|
-
__v: Joi.number(),
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/** @returns {CreateTemplate} */
|
|
838
|
-
static CreateTemplate() {
|
|
839
|
-
return Joi.object({
|
|
840
|
-
pdf_type_id: Joi.number().required(),
|
|
841
|
-
format: Joi.string().allow("").required(),
|
|
842
|
-
country_code: Joi.string().allow("").required(),
|
|
843
|
-
template: Joi.string().allow(""),
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/** @returns {PdfDefaultTemplateSuccess} */
|
|
848
|
-
static PdfDefaultTemplateSuccess() {
|
|
849
|
-
return Joi.object({
|
|
850
|
-
data: Joi.array().items(FileStoragePlatformModel.Document()),
|
|
851
|
-
success: Joi.boolean(),
|
|
650
|
+
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
651
|
+
support: Joi.object().pattern(/\S/, Joi.any()),
|
|
852
652
|
});
|
|
853
653
|
}
|
|
854
654
|
|
|
855
|
-
/** @returns {
|
|
856
|
-
static
|
|
655
|
+
/** @returns {FailedResponse} */
|
|
656
|
+
static FailedResponse() {
|
|
857
657
|
return Joi.object({
|
|
858
658
|
message: Joi.string().allow("").required(),
|
|
859
659
|
});
|
|
@@ -876,8 +676,8 @@ class FileStoragePlatformModel {
|
|
|
876
676
|
});
|
|
877
677
|
}
|
|
878
678
|
|
|
879
|
-
/** @returns {
|
|
880
|
-
static
|
|
679
|
+
/** @returns {StartResponse} */
|
|
680
|
+
static StartResponse() {
|
|
881
681
|
return Joi.object({
|
|
882
682
|
file_name: Joi.string().allow("").required(),
|
|
883
683
|
file_path: Joi.string().allow("").required(),
|
|
@@ -887,18 +687,27 @@ class FileStoragePlatformModel {
|
|
|
887
687
|
operation: Joi.string().allow("").required(),
|
|
888
688
|
size: Joi.number().required(),
|
|
889
689
|
upload: FileStoragePlatformModel.Upload().required(),
|
|
690
|
+
cdn: FileStoragePlatformModel.CDN().required(),
|
|
890
691
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
891
692
|
});
|
|
892
693
|
}
|
|
893
694
|
|
|
894
|
-
/** @returns {
|
|
895
|
-
static
|
|
695
|
+
/** @returns {Params} */
|
|
696
|
+
static Params() {
|
|
697
|
+
return Joi.object({
|
|
698
|
+
subpath: Joi.string().allow(""),
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/** @returns {StartRequest} */
|
|
703
|
+
static StartRequest() {
|
|
896
704
|
return Joi.object({
|
|
897
705
|
file_name: Joi.string().allow("").required(),
|
|
898
706
|
content_type: Joi.string().allow("").required(),
|
|
899
707
|
size: Joi.number().required(),
|
|
900
708
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
901
709
|
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
710
|
+
enc_key: Joi.string().allow(""),
|
|
902
711
|
});
|
|
903
712
|
}
|
|
904
713
|
|
|
@@ -909,8 +718,8 @@ class FileStoragePlatformModel {
|
|
|
909
718
|
});
|
|
910
719
|
}
|
|
911
720
|
|
|
912
|
-
/** @returns {
|
|
913
|
-
static
|
|
721
|
+
/** @returns {CompleteResponse} */
|
|
722
|
+
static CompleteResponse() {
|
|
914
723
|
return Joi.object({
|
|
915
724
|
_id: Joi.string().allow("").required(),
|
|
916
725
|
file_name: Joi.string().allow("").required(),
|
|
@@ -930,14 +739,6 @@ class FileStoragePlatformModel {
|
|
|
930
739
|
});
|
|
931
740
|
}
|
|
932
741
|
|
|
933
|
-
/** @returns {ProxyFileAccess} */
|
|
934
|
-
static ProxyFileAccess() {
|
|
935
|
-
return Joi.object({
|
|
936
|
-
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
937
|
-
support: Joi.object().pattern(/\S/, Joi.any()),
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
|
|
941
742
|
/** @returns {DestinationNamespace} */
|
|
942
743
|
static DestinationNamespace() {
|
|
943
744
|
return Joi.object({
|
|
@@ -962,23 +763,34 @@ class FileStoragePlatformModel {
|
|
|
962
763
|
});
|
|
963
764
|
}
|
|
964
765
|
|
|
965
|
-
/** @returns {
|
|
966
|
-
static
|
|
766
|
+
/** @returns {SignUrlResponse} */
|
|
767
|
+
static SignUrlResponse() {
|
|
967
768
|
return Joi.object({
|
|
968
769
|
urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
|
|
969
770
|
});
|
|
970
771
|
}
|
|
971
772
|
|
|
972
|
-
/** @returns {
|
|
973
|
-
static
|
|
773
|
+
/** @returns {EncryptionMapping} */
|
|
774
|
+
static EncryptionMapping() {
|
|
775
|
+
return Joi.object({
|
|
776
|
+
enc_url: Joi.string().allow(""),
|
|
777
|
+
value: Joi.string().allow(""),
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/** @returns {SignUrlRequest} */
|
|
782
|
+
static SignUrlRequest() {
|
|
974
783
|
return Joi.object({
|
|
975
784
|
expiry: Joi.number().required(),
|
|
976
785
|
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
786
|
+
enc_url_mapping: Joi.array().items(
|
|
787
|
+
FileStoragePlatformModel.EncryptionMapping()
|
|
788
|
+
),
|
|
977
789
|
});
|
|
978
790
|
}
|
|
979
791
|
|
|
980
|
-
/** @returns {
|
|
981
|
-
static
|
|
792
|
+
/** @returns {InvoiceTypesDataResponse} */
|
|
793
|
+
static InvoiceTypesDataResponse() {
|
|
982
794
|
return Joi.object({
|
|
983
795
|
status: Joi.boolean(),
|
|
984
796
|
_id: Joi.string().allow("").required(),
|
|
@@ -987,16 +799,15 @@ class FileStoragePlatformModel {
|
|
|
987
799
|
format: Joi.array().items(Joi.string().allow("")).required(),
|
|
988
800
|
__v: Joi.number().required(),
|
|
989
801
|
visibility: Joi.boolean().required(),
|
|
990
|
-
store_os: Joi.boolean().required(),
|
|
991
802
|
country_code: Joi.string().allow("").required(),
|
|
992
803
|
});
|
|
993
804
|
}
|
|
994
805
|
|
|
995
|
-
/** @returns {
|
|
996
|
-
static
|
|
806
|
+
/** @returns {InvoiceTypesResponse} */
|
|
807
|
+
static InvoiceTypesResponse() {
|
|
997
808
|
return Joi.object({
|
|
998
809
|
data: Joi.array()
|
|
999
|
-
.items(FileStoragePlatformModel.
|
|
810
|
+
.items(FileStoragePlatformModel.InvoiceTypesDataResponse())
|
|
1000
811
|
.required(),
|
|
1001
812
|
success: Joi.boolean().required(),
|
|
1002
813
|
});
|
|
@@ -1367,8 +1178,8 @@ class FileStoragePlatformModel {
|
|
|
1367
1178
|
});
|
|
1368
1179
|
}
|
|
1369
1180
|
|
|
1370
|
-
/** @returns {
|
|
1371
|
-
static
|
|
1181
|
+
/** @returns {DummyTemplateDataPayload} */
|
|
1182
|
+
static DummyTemplateDataPayload() {
|
|
1372
1183
|
return Joi.object({
|
|
1373
1184
|
is_export: Joi.boolean(),
|
|
1374
1185
|
is_export_shipment: Joi.boolean(),
|
|
@@ -1403,6 +1214,8 @@ class FileStoragePlatformModel {
|
|
|
1403
1214
|
is_self_ship: Joi.boolean(),
|
|
1404
1215
|
mode: Joi.string().allow(""),
|
|
1405
1216
|
is_self_pickup: Joi.boolean(),
|
|
1217
|
+
shipment_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1218
|
+
order_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1406
1219
|
platform_name: Joi.string().allow(""),
|
|
1407
1220
|
amount_to_be_collected: Joi.number(),
|
|
1408
1221
|
amount_paid: Joi.number(),
|
|
@@ -1423,34 +1236,14 @@ class FileStoragePlatformModel {
|
|
|
1423
1236
|
return Joi.object({
|
|
1424
1237
|
_id: Joi.string().allow(""),
|
|
1425
1238
|
pdf_type_id: Joi.number(),
|
|
1426
|
-
payload: FileStoragePlatformModel.
|
|
1239
|
+
payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
|
|
1427
1240
|
country_code: Joi.string().allow(""),
|
|
1428
1241
|
__v: Joi.number(),
|
|
1429
1242
|
});
|
|
1430
1243
|
}
|
|
1431
1244
|
|
|
1432
|
-
/** @returns {
|
|
1433
|
-
static
|
|
1434
|
-
return Joi.object({
|
|
1435
|
-
pdf_type_id: Joi.number(),
|
|
1436
|
-
payload: FileStoragePlatformModel.PdfPayloadDetails(),
|
|
1437
|
-
country_code: Joi.string().allow(""),
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/** @returns {MapperDetails} */
|
|
1442
|
-
static MapperDetails() {
|
|
1443
|
-
return Joi.object({
|
|
1444
|
-
_id: Joi.string().allow(""),
|
|
1445
|
-
pdf_type_id: Joi.number(),
|
|
1446
|
-
payload: FileStoragePlatformModel.PdfPayloadDetails(),
|
|
1447
|
-
country_code: Joi.string().allow(""),
|
|
1448
|
-
__v: Joi.number(),
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/** @returns {PdfDataItemsDetails} */
|
|
1453
|
-
static PdfDataItemsDetails() {
|
|
1245
|
+
/** @returns {DummyTemplateDataItems} */
|
|
1246
|
+
static DummyTemplateDataItems() {
|
|
1454
1247
|
return Joi.object({
|
|
1455
1248
|
data: Joi.array()
|
|
1456
1249
|
.items(FileStoragePlatformModel.DummyTemplateData())
|
|
@@ -1465,8 +1258,6 @@ class FileStoragePlatformModel {
|
|
|
1465
1258
|
format: Joi.string().allow(""),
|
|
1466
1259
|
template: Joi.string().allow(""),
|
|
1467
1260
|
pdf_type_id: Joi.number(),
|
|
1468
|
-
country_code: Joi.string().allow(""),
|
|
1469
|
-
default_template: Joi.boolean(),
|
|
1470
1261
|
});
|
|
1471
1262
|
}
|
|
1472
1263
|
|
|
@@ -1484,14 +1275,6 @@ class FileStoragePlatformModel {
|
|
|
1484
1275
|
});
|
|
1485
1276
|
}
|
|
1486
1277
|
|
|
1487
|
-
/** @returns {DeleteMapperById} */
|
|
1488
|
-
static DeleteMapperById() {
|
|
1489
|
-
return Joi.object({
|
|
1490
|
-
message: Joi.string().allow(""),
|
|
1491
|
-
default_template: Joi.boolean(),
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
1278
|
/** @returns {PdfConfigSuccess} */
|
|
1496
1279
|
static PdfConfigSuccess() {
|
|
1497
1280
|
return Joi.object({
|
|
@@ -1521,6 +1304,14 @@ class FileStoragePlatformModel {
|
|
|
1521
1304
|
});
|
|
1522
1305
|
}
|
|
1523
1306
|
|
|
1307
|
+
/** @returns {PdfDefaultTemplateSuccess} */
|
|
1308
|
+
static PdfDefaultTemplateSuccess() {
|
|
1309
|
+
return Joi.object({
|
|
1310
|
+
data: Joi.array().items(FileStoragePlatformModel.Document()),
|
|
1311
|
+
success: Joi.boolean(),
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1524
1315
|
/** @returns {Document} */
|
|
1525
1316
|
static Document() {
|
|
1526
1317
|
return Joi.object({
|
|
@@ -1614,7 +1405,7 @@ class FileStoragePlatformModel {
|
|
|
1614
1405
|
return Joi.object({
|
|
1615
1406
|
job_type: Joi.string().allow(""),
|
|
1616
1407
|
action: Joi.string().allow(""),
|
|
1617
|
-
event: Joi.
|
|
1408
|
+
event: Joi.any(),
|
|
1618
1409
|
organizaton_id: Joi.string().allow(""),
|
|
1619
1410
|
company_id: Joi.number(),
|
|
1620
1411
|
application_id: Joi.array().items(Joi.string().allow("")),
|
|
@@ -1622,7 +1413,7 @@ class FileStoragePlatformModel {
|
|
|
1622
1413
|
trace_id: Joi.array().items(Joi.string().allow("")),
|
|
1623
1414
|
created_timestamp: Joi.number(),
|
|
1624
1415
|
service: FileStoragePlatformModel.PaymentReceiptService(),
|
|
1625
|
-
event_trace_info: Joi.
|
|
1416
|
+
event_trace_info: Joi.any(),
|
|
1626
1417
|
trace: Joi.string().allow(""),
|
|
1627
1418
|
});
|
|
1628
1419
|
}
|