@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -28,376 +28,12 @@ const Joi = require("joi");
|
|
|
28
28
|
* @property {string} [request_id]
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* @typedef ApplicationPermissions
|
|
33
|
-
* @property {string[]} [permissions]
|
|
34
|
-
* @property {string[]} [roles]
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @typedef ApprovedPermissions
|
|
39
|
-
* @property {string[]} [application_role]
|
|
40
|
-
* @property {string[]} [company_permissions]
|
|
41
|
-
* @property {string[]} [company_role]
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @typedef ApprovedPermissionsInfo
|
|
46
|
-
* @property {Object} [application_permissions]
|
|
47
|
-
* @property {string[]} [company_permissions]
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @typedef Benefits
|
|
52
|
-
* @property {string} [description]
|
|
53
|
-
* @property {string} [title]
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @typedef Callback
|
|
58
|
-
* @property {string} [auth]
|
|
59
|
-
* @property {string} [auto_install]
|
|
60
|
-
* @property {string} [install]
|
|
61
|
-
* @property {string} [setup]
|
|
62
|
-
* @property {string} [uninstall]
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @typedef Category
|
|
67
|
-
* @property {CategoryL1[]} [category_l1]
|
|
68
|
-
* @property {CategoryL2[]} [category_l2]
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @typedef CategoryL1
|
|
73
|
-
* @property {string} [_id]
|
|
74
|
-
* @property {string} [description]
|
|
75
|
-
* @property {string} [display]
|
|
76
|
-
* @property {number} [level]
|
|
77
|
-
* @property {string} [logo]
|
|
78
|
-
* @property {string} [slug]
|
|
79
|
-
* @property {string} [value]
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @typedef CategoryL2
|
|
84
|
-
* @property {string} [_id]
|
|
85
|
-
* @property {string} [display]
|
|
86
|
-
* @property {number} [level]
|
|
87
|
-
* @property {string} [parent]
|
|
88
|
-
* @property {string} [slug]
|
|
89
|
-
* @property {string} [value]
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @typedef CommingSoon
|
|
94
|
-
* @property {boolean} [is_coming_soon]
|
|
95
|
-
* @property {number} [upvote_count]
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @typedef ContactInfo
|
|
100
|
-
* @property {Support} [support]
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @typedef ExtensionCommon
|
|
105
|
-
* @property {string} [base_url]
|
|
106
|
-
* @property {Callback} [callbacks]
|
|
107
|
-
* @property {string} [contact_email]
|
|
108
|
-
* @property {string} [current_status]
|
|
109
|
-
* @property {string} [description]
|
|
110
|
-
* @property {string} [developed_by_name]
|
|
111
|
-
* @property {string} [ext_version]
|
|
112
|
-
* @property {string} [extention_type]
|
|
113
|
-
* @property {boolean} [is_application_level]
|
|
114
|
-
* @property {boolean} [is_coming_soon]
|
|
115
|
-
* @property {boolean} [is_saleschannel]
|
|
116
|
-
* @property {Logo} [logo]
|
|
117
|
-
* @property {string} [name]
|
|
118
|
-
* @property {string[]} [scope]
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef ExtensionDetails
|
|
123
|
-
* @property {Benefits[]} [benefits]
|
|
124
|
-
* @property {string} [demo_url]
|
|
125
|
-
* @property {string} [description]
|
|
126
|
-
* @property {string[]} [integration]
|
|
127
|
-
* @property {Screenshots} [screenshots]
|
|
128
|
-
* @property {Object[]} [video_url]
|
|
129
|
-
* @property {string[]} [youtube]
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @typedef ExtensionItems
|
|
134
|
-
* @property {string} [base_url]
|
|
135
|
-
* @property {string} [company]
|
|
136
|
-
* @property {string} [description]
|
|
137
|
-
* @property {string} [developed_by_name]
|
|
138
|
-
* @property {string} [ext_version]
|
|
139
|
-
* @property {string} [extension_id]
|
|
140
|
-
* @property {string} [extention_type]
|
|
141
|
-
* @property {boolean} [installed]
|
|
142
|
-
* @property {boolean} [is_saleschannel]
|
|
143
|
-
* @property {string} [launch_url]
|
|
144
|
-
* @property {Logo} [logo]
|
|
145
|
-
* @property {string} [name]
|
|
146
|
-
* @property {Scope[]} [scope]
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @typedef ExtensionList
|
|
151
|
-
* @property {ExtensionItems[]} [items]
|
|
152
|
-
* @property {Pagination} [page]
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* @typedef ExtensionListItems
|
|
157
|
-
* @property {string} [_id]
|
|
158
|
-
* @property {string} [base_url]
|
|
159
|
-
* @property {Callback} [callbacks]
|
|
160
|
-
* @property {string} [contact_email]
|
|
161
|
-
* @property {string} [created_at]
|
|
162
|
-
* @property {string} [current_status]
|
|
163
|
-
* @property {string} [description]
|
|
164
|
-
* @property {string} [developed_by_name]
|
|
165
|
-
* @property {string} [ext_version]
|
|
166
|
-
* @property {string} [extention_type]
|
|
167
|
-
* @property {boolean} [is_application_level]
|
|
168
|
-
* @property {boolean} [is_coming_soon]
|
|
169
|
-
* @property {boolean} [is_hidden]
|
|
170
|
-
* @property {boolean} [is_saleschannel]
|
|
171
|
-
* @property {Logo} [logo]
|
|
172
|
-
* @property {string} [modified_at]
|
|
173
|
-
* @property {string} [name]
|
|
174
|
-
* @property {string} [organization_id]
|
|
175
|
-
* @property {string[]} [scope]
|
|
176
|
-
* @property {string[]} [whitelisted_urls]
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @typedef ExtensionResponse
|
|
181
|
-
* @property {ExtensionListItems[]} [items]
|
|
182
|
-
* @property {Pagination} [page]
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @typedef ExtensionSuggestion
|
|
187
|
-
* @property {ListingInfo} [listing_info]
|
|
188
|
-
* @property {OrganizationBasicInfo} [organization]
|
|
189
|
-
* @property {string} [organization_id]
|
|
190
|
-
* @property {Plan[]} [plans]
|
|
191
|
-
* @property {string} [slug]
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* @typedef ExtensionSuggestionList
|
|
196
|
-
* @property {ExtensionSuggestion[]} [items]
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* @typedef getProxyPathRes
|
|
201
|
-
* @property {AddProxyResponse[]} [items]
|
|
202
|
-
* @property {Pagination} [page]
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @typedef ListingInfo
|
|
207
|
-
* @property {string} [icon]
|
|
208
|
-
* @property {string[]} [keywords]
|
|
209
|
-
* @property {string} [name]
|
|
210
|
-
* @property {string} [tagline]
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @typedef Logo
|
|
215
|
-
* @property {string} [large]
|
|
216
|
-
* @property {string} [small]
|
|
217
|
-
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @typedef ModifyPartnerReq
|
|
221
|
-
* @property {string} [_id]
|
|
222
|
-
* @property {string} [account_type]
|
|
223
|
-
* @property {ApprovedPermissionsInfo} [approved_permissions]
|
|
224
|
-
* @property {string} [comment]
|
|
225
|
-
* @property {number} [company_id]
|
|
226
|
-
* @property {string} [company_name]
|
|
227
|
-
* @property {string} [organization_id]
|
|
228
|
-
* @property {string} [organization_name]
|
|
229
|
-
* @property {string} [request_status]
|
|
230
|
-
* @property {RequestedPermissions} [requested_permissions]
|
|
231
|
-
* @property {string} [user_id]
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* @typedef OrganizationBasicInfo
|
|
236
|
-
* @property {string} [name]
|
|
237
|
-
* @property {string} [slug]
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @typedef Pagination
|
|
242
|
-
* @property {number} [current]
|
|
243
|
-
* @property {boolean} [has_next]
|
|
244
|
-
* @property {number} [item_total]
|
|
245
|
-
* @property {number} [size]
|
|
246
|
-
* @property {string} [type]
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @typedef PartnerInviteDetails
|
|
251
|
-
* @property {string} [_id]
|
|
252
|
-
* @property {string} [account_type]
|
|
253
|
-
* @property {ApprovedPermissions} [approved_permissions]
|
|
254
|
-
* @property {string} [comment]
|
|
255
|
-
* @property {number} [company_id]
|
|
256
|
-
* @property {string} [company_name]
|
|
257
|
-
* @property {string} [created_at]
|
|
258
|
-
* @property {string} [modified_at]
|
|
259
|
-
* @property {string} [organization_id]
|
|
260
|
-
* @property {string} [organization_name]
|
|
261
|
-
* @property {string} [request_status]
|
|
262
|
-
* @property {RequestedPermissions} [requested_permissions]
|
|
263
|
-
* @property {string} [user_id]
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @typedef PartnerList
|
|
268
|
-
* @property {string} [_id]
|
|
269
|
-
* @property {string} [account_type]
|
|
270
|
-
* @property {ApprovedPermissionsInfo} [approved_permissions]
|
|
271
|
-
* @property {string} [approver_id]
|
|
272
|
-
* @property {string} [comment]
|
|
273
|
-
* @property {number} [company_id]
|
|
274
|
-
* @property {string} [company_name]
|
|
275
|
-
* @property {string} [created_at]
|
|
276
|
-
* @property {string} [modified_at]
|
|
277
|
-
* @property {string} [organization_id]
|
|
278
|
-
* @property {string} [organization_name]
|
|
279
|
-
* @property {string} [request_status]
|
|
280
|
-
* @property {RequestedPermissions} [requested_permissions]
|
|
281
|
-
* @property {string} [user_id]
|
|
282
|
-
*/
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @typedef PartnerRequestList
|
|
286
|
-
* @property {PartnerList} [items]
|
|
287
|
-
* @property {Pagination} [page]
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @typedef Plan
|
|
292
|
-
* @property {string} [additional_charges]
|
|
293
|
-
* @property {string} [features]
|
|
294
|
-
* @property {string} [name]
|
|
295
|
-
* @property {Price} [price]
|
|
296
|
-
* @property {number} [trial_days]
|
|
297
|
-
* @property {string} [type]
|
|
298
|
-
*/
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @typedef Plans
|
|
302
|
-
* @property {string} [additional_charges]
|
|
303
|
-
* @property {string} [features]
|
|
304
|
-
* @property {string} [name]
|
|
305
|
-
* @property {Price} [price]
|
|
306
|
-
* @property {number} [trial_days]
|
|
307
|
-
* @property {string} [type]
|
|
308
|
-
*/
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* @typedef Price
|
|
312
|
-
* @property {number} [amount]
|
|
313
|
-
* @property {string} [currency]
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @typedef PublicExtension
|
|
318
|
-
* @property {string} [_id]
|
|
319
|
-
* @property {Category} [category]
|
|
320
|
-
* @property {CommingSoon} [coming_soon]
|
|
321
|
-
* @property {ContactInfo} [contact_info]
|
|
322
|
-
* @property {string} [created_at]
|
|
323
|
-
* @property {string} [current_status]
|
|
324
|
-
* @property {ExtensionDetails} [details]
|
|
325
|
-
* @property {string} [extension_id]
|
|
326
|
-
* @property {boolean} [is_coming_soon]
|
|
327
|
-
* @property {ListingInfo} [listing_info]
|
|
328
|
-
* @property {string} [modified_at]
|
|
329
|
-
* @property {OrganizationBasicInfo} [organization]
|
|
330
|
-
* @property {string} [organization_id]
|
|
331
|
-
* @property {string} [plan_type]
|
|
332
|
-
* @property {Plans[]} [plans]
|
|
333
|
-
* @property {string} [plans_url]
|
|
334
|
-
* @property {string} [review_instructions]
|
|
335
|
-
* @property {string[]} [scope]
|
|
336
|
-
* @property {string} [slug]
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
31
|
/**
|
|
340
32
|
* @typedef RemoveProxyResponse
|
|
341
33
|
* @property {Object} [data]
|
|
342
34
|
* @property {string} [message]
|
|
343
35
|
*/
|
|
344
36
|
|
|
345
|
-
/**
|
|
346
|
-
* @typedef RequestedPermissions
|
|
347
|
-
* @property {string[]} [application_permissions]
|
|
348
|
-
* @property {string[]} [application_role]
|
|
349
|
-
* @property {string[]} [company_permissions]
|
|
350
|
-
* @property {string[]} [company_role]
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @typedef Scope
|
|
355
|
-
* @property {string} [description]
|
|
356
|
-
* @property {string} [name]
|
|
357
|
-
*/
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @typedef Screenshots
|
|
361
|
-
* @property {string[]} [desktop]
|
|
362
|
-
* @property {string[]} [mobile]
|
|
363
|
-
*/
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @typedef SetupProductRes
|
|
367
|
-
* @property {number} [cli_wait_time]
|
|
368
|
-
* @property {string} [message]
|
|
369
|
-
* @property {number} [next_step]
|
|
370
|
-
* @property {string} [request_id]
|
|
371
|
-
*/
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @typedef SubscriptionRequest
|
|
375
|
-
* @property {string} [approved]
|
|
376
|
-
* @property {string} [client_id]
|
|
377
|
-
* @property {string} [company_id]
|
|
378
|
-
* @property {string} [credit_balance]
|
|
379
|
-
* @property {string} [request_id]
|
|
380
|
-
*/
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* @typedef SubscriptionRes
|
|
384
|
-
* @property {string} [redirect_url]
|
|
385
|
-
*/
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* @typedef Support
|
|
389
|
-
* @property {string} [email]
|
|
390
|
-
* @property {string} [faq_url]
|
|
391
|
-
* @property {string} [phone]
|
|
392
|
-
* @property {string} [privacy_policy_url]
|
|
393
|
-
* @property {string} [website_url]
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* @typedef UninstallExtension
|
|
398
|
-
* @property {boolean} [success]
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
37
|
class PartnerPlatformModel {
|
|
402
38
|
/** @returns {AddProxyReq} */
|
|
403
39
|
static AddProxyReq() {
|
|
@@ -432,379 +68,6 @@ class PartnerPlatformModel {
|
|
|
432
68
|
});
|
|
433
69
|
}
|
|
434
70
|
|
|
435
|
-
/** @returns {ApplicationPermissions} */
|
|
436
|
-
static ApplicationPermissions() {
|
|
437
|
-
return Joi.object({
|
|
438
|
-
permissions: Joi.array().items(Joi.string().allow("")),
|
|
439
|
-
roles: Joi.array().items(Joi.string().allow("")),
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/** @returns {ApprovedPermissions} */
|
|
444
|
-
static ApprovedPermissions() {
|
|
445
|
-
return Joi.object({
|
|
446
|
-
application_role: Joi.array().items(Joi.string().allow("")),
|
|
447
|
-
company_permissions: Joi.array().items(Joi.string().allow("")),
|
|
448
|
-
company_role: Joi.array().items(Joi.string().allow("")),
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/** @returns {ApprovedPermissionsInfo} */
|
|
453
|
-
static ApprovedPermissionsInfo() {
|
|
454
|
-
return Joi.object({
|
|
455
|
-
application_permissions: Joi.object().pattern(
|
|
456
|
-
/\S/,
|
|
457
|
-
PartnerPlatformModel.ApplicationPermissions()
|
|
458
|
-
),
|
|
459
|
-
company_permissions: Joi.array().items(Joi.string().allow("")),
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/** @returns {Benefits} */
|
|
464
|
-
static Benefits() {
|
|
465
|
-
return Joi.object({
|
|
466
|
-
description: Joi.string().allow(""),
|
|
467
|
-
title: Joi.string().allow(""),
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
/** @returns {Callback} */
|
|
472
|
-
static Callback() {
|
|
473
|
-
return Joi.object({
|
|
474
|
-
auth: Joi.string().allow(""),
|
|
475
|
-
auto_install: Joi.string().allow(""),
|
|
476
|
-
install: Joi.string().allow(""),
|
|
477
|
-
setup: Joi.string().allow(""),
|
|
478
|
-
uninstall: Joi.string().allow(""),
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/** @returns {Category} */
|
|
483
|
-
static Category() {
|
|
484
|
-
return Joi.object({
|
|
485
|
-
category_l1: Joi.array().items(PartnerPlatformModel.CategoryL1()),
|
|
486
|
-
category_l2: Joi.array().items(PartnerPlatformModel.CategoryL2()),
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/** @returns {CategoryL1} */
|
|
491
|
-
static CategoryL1() {
|
|
492
|
-
return Joi.object({
|
|
493
|
-
_id: Joi.string().allow(""),
|
|
494
|
-
description: Joi.string().allow(""),
|
|
495
|
-
display: Joi.string().allow(""),
|
|
496
|
-
level: Joi.number(),
|
|
497
|
-
logo: Joi.string().allow(""),
|
|
498
|
-
slug: Joi.string().allow(""),
|
|
499
|
-
value: Joi.string().allow(""),
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
/** @returns {CategoryL2} */
|
|
504
|
-
static CategoryL2() {
|
|
505
|
-
return Joi.object({
|
|
506
|
-
_id: Joi.string().allow(""),
|
|
507
|
-
display: Joi.string().allow(""),
|
|
508
|
-
level: Joi.number(),
|
|
509
|
-
parent: Joi.string().allow(""),
|
|
510
|
-
slug: Joi.string().allow(""),
|
|
511
|
-
value: Joi.string().allow(""),
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/** @returns {CommingSoon} */
|
|
516
|
-
static CommingSoon() {
|
|
517
|
-
return Joi.object({
|
|
518
|
-
is_coming_soon: Joi.boolean(),
|
|
519
|
-
upvote_count: Joi.number(),
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/** @returns {ContactInfo} */
|
|
524
|
-
static ContactInfo() {
|
|
525
|
-
return Joi.object({
|
|
526
|
-
support: PartnerPlatformModel.Support(),
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
/** @returns {ExtensionCommon} */
|
|
531
|
-
static ExtensionCommon() {
|
|
532
|
-
return Joi.object({
|
|
533
|
-
base_url: Joi.string().allow(""),
|
|
534
|
-
callbacks: PartnerPlatformModel.Callback(),
|
|
535
|
-
contact_email: Joi.string().allow(""),
|
|
536
|
-
current_status: Joi.string().allow(""),
|
|
537
|
-
description: Joi.string().allow(""),
|
|
538
|
-
developed_by_name: Joi.string().allow(""),
|
|
539
|
-
ext_version: Joi.string().allow(""),
|
|
540
|
-
extention_type: Joi.string().allow(""),
|
|
541
|
-
is_application_level: Joi.boolean(),
|
|
542
|
-
is_coming_soon: Joi.boolean(),
|
|
543
|
-
is_saleschannel: Joi.boolean(),
|
|
544
|
-
logo: PartnerPlatformModel.Logo(),
|
|
545
|
-
name: Joi.string().allow(""),
|
|
546
|
-
scope: Joi.array().items(Joi.string().allow("")),
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/** @returns {ExtensionDetails} */
|
|
551
|
-
static ExtensionDetails() {
|
|
552
|
-
return Joi.object({
|
|
553
|
-
benefits: Joi.array().items(PartnerPlatformModel.Benefits()),
|
|
554
|
-
demo_url: Joi.string().allow(""),
|
|
555
|
-
description: Joi.string().allow(""),
|
|
556
|
-
integration: Joi.array().items(Joi.string().allow("")),
|
|
557
|
-
screenshots: PartnerPlatformModel.Screenshots(),
|
|
558
|
-
video_url: Joi.array().items(Joi.any()),
|
|
559
|
-
youtube: Joi.array().items(Joi.string().allow("")),
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/** @returns {ExtensionItems} */
|
|
564
|
-
static ExtensionItems() {
|
|
565
|
-
return Joi.object({
|
|
566
|
-
base_url: Joi.string().allow(""),
|
|
567
|
-
company: Joi.string().allow(""),
|
|
568
|
-
description: Joi.string().allow(""),
|
|
569
|
-
developed_by_name: Joi.string().allow(""),
|
|
570
|
-
ext_version: Joi.string().allow(""),
|
|
571
|
-
extension_id: Joi.string().allow(""),
|
|
572
|
-
extention_type: Joi.string().allow(""),
|
|
573
|
-
installed: Joi.boolean(),
|
|
574
|
-
is_saleschannel: Joi.boolean(),
|
|
575
|
-
launch_url: Joi.string().allow(""),
|
|
576
|
-
logo: PartnerPlatformModel.Logo(),
|
|
577
|
-
name: Joi.string().allow(""),
|
|
578
|
-
scope: Joi.array().items(PartnerPlatformModel.Scope()),
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/** @returns {ExtensionList} */
|
|
583
|
-
static ExtensionList() {
|
|
584
|
-
return Joi.object({
|
|
585
|
-
items: Joi.array().items(PartnerPlatformModel.ExtensionItems()),
|
|
586
|
-
page: PartnerPlatformModel.Pagination(),
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
/** @returns {ExtensionListItems} */
|
|
591
|
-
static ExtensionListItems() {
|
|
592
|
-
return Joi.object({
|
|
593
|
-
_id: Joi.string().allow(""),
|
|
594
|
-
base_url: Joi.string().allow(""),
|
|
595
|
-
callbacks: PartnerPlatformModel.Callback(),
|
|
596
|
-
contact_email: Joi.string().allow(""),
|
|
597
|
-
created_at: Joi.string().allow(""),
|
|
598
|
-
current_status: Joi.string().allow(""),
|
|
599
|
-
description: Joi.string().allow(""),
|
|
600
|
-
developed_by_name: Joi.string().allow(""),
|
|
601
|
-
ext_version: Joi.string().allow(""),
|
|
602
|
-
extention_type: Joi.string().allow(""),
|
|
603
|
-
is_application_level: Joi.boolean(),
|
|
604
|
-
is_coming_soon: Joi.boolean(),
|
|
605
|
-
is_hidden: Joi.boolean(),
|
|
606
|
-
is_saleschannel: Joi.boolean(),
|
|
607
|
-
logo: PartnerPlatformModel.Logo(),
|
|
608
|
-
modified_at: Joi.string().allow(""),
|
|
609
|
-
name: Joi.string().allow(""),
|
|
610
|
-
organization_id: Joi.string().allow(""),
|
|
611
|
-
scope: Joi.array().items(Joi.string().allow("")),
|
|
612
|
-
whitelisted_urls: Joi.array().items(Joi.string().allow("")),
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
/** @returns {ExtensionResponse} */
|
|
617
|
-
static ExtensionResponse() {
|
|
618
|
-
return Joi.object({
|
|
619
|
-
items: Joi.array().items(PartnerPlatformModel.ExtensionListItems()),
|
|
620
|
-
page: PartnerPlatformModel.Pagination(),
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
/** @returns {ExtensionSuggestion} */
|
|
625
|
-
static ExtensionSuggestion() {
|
|
626
|
-
return Joi.object({
|
|
627
|
-
listing_info: PartnerPlatformModel.ListingInfo(),
|
|
628
|
-
organization: PartnerPlatformModel.OrganizationBasicInfo(),
|
|
629
|
-
organization_id: Joi.string().allow(""),
|
|
630
|
-
plans: Joi.array().items(PartnerPlatformModel.Plan()),
|
|
631
|
-
slug: Joi.string().allow(""),
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/** @returns {ExtensionSuggestionList} */
|
|
636
|
-
static ExtensionSuggestionList() {
|
|
637
|
-
return Joi.object({
|
|
638
|
-
items: Joi.array().items(PartnerPlatformModel.ExtensionSuggestion()),
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/** @returns {getProxyPathRes} */
|
|
643
|
-
static getProxyPathRes() {
|
|
644
|
-
return Joi.object({
|
|
645
|
-
items: Joi.array().items(PartnerPlatformModel.AddProxyResponse()),
|
|
646
|
-
page: PartnerPlatformModel.Pagination(),
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
/** @returns {ListingInfo} */
|
|
651
|
-
static ListingInfo() {
|
|
652
|
-
return Joi.object({
|
|
653
|
-
icon: Joi.string().allow(""),
|
|
654
|
-
keywords: Joi.array().items(Joi.string().allow("")),
|
|
655
|
-
name: Joi.string().allow(""),
|
|
656
|
-
tagline: Joi.string().allow(""),
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
/** @returns {Logo} */
|
|
661
|
-
static Logo() {
|
|
662
|
-
return Joi.object({
|
|
663
|
-
large: Joi.string().allow(""),
|
|
664
|
-
small: Joi.string().allow(""),
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/** @returns {ModifyPartnerReq} */
|
|
669
|
-
static ModifyPartnerReq() {
|
|
670
|
-
return Joi.object({
|
|
671
|
-
_id: Joi.string().allow(""),
|
|
672
|
-
account_type: Joi.string().allow(""),
|
|
673
|
-
approved_permissions: PartnerPlatformModel.ApprovedPermissionsInfo(),
|
|
674
|
-
comment: Joi.string().allow(""),
|
|
675
|
-
company_id: Joi.number(),
|
|
676
|
-
company_name: Joi.string().allow(""),
|
|
677
|
-
organization_id: Joi.string().allow(""),
|
|
678
|
-
organization_name: Joi.string().allow(""),
|
|
679
|
-
request_status: Joi.string().allow(""),
|
|
680
|
-
requested_permissions: PartnerPlatformModel.RequestedPermissions(),
|
|
681
|
-
user_id: Joi.string().allow(""),
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/** @returns {OrganizationBasicInfo} */
|
|
686
|
-
static OrganizationBasicInfo() {
|
|
687
|
-
return Joi.object({
|
|
688
|
-
name: Joi.string().allow(""),
|
|
689
|
-
slug: Joi.string().allow(""),
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/** @returns {Pagination} */
|
|
694
|
-
static Pagination() {
|
|
695
|
-
return Joi.object({
|
|
696
|
-
current: Joi.number(),
|
|
697
|
-
has_next: Joi.boolean(),
|
|
698
|
-
item_total: Joi.number(),
|
|
699
|
-
size: Joi.number(),
|
|
700
|
-
type: Joi.string().allow(""),
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/** @returns {PartnerInviteDetails} */
|
|
705
|
-
static PartnerInviteDetails() {
|
|
706
|
-
return Joi.object({
|
|
707
|
-
_id: Joi.string().allow(""),
|
|
708
|
-
account_type: Joi.string().allow(""),
|
|
709
|
-
approved_permissions: PartnerPlatformModel.ApprovedPermissions(),
|
|
710
|
-
comment: Joi.string().allow(""),
|
|
711
|
-
company_id: Joi.number(),
|
|
712
|
-
company_name: Joi.string().allow(""),
|
|
713
|
-
created_at: Joi.string().allow(""),
|
|
714
|
-
modified_at: Joi.string().allow(""),
|
|
715
|
-
organization_id: Joi.string().allow(""),
|
|
716
|
-
organization_name: Joi.string().allow(""),
|
|
717
|
-
request_status: Joi.string().allow(""),
|
|
718
|
-
requested_permissions: PartnerPlatformModel.RequestedPermissions(),
|
|
719
|
-
user_id: Joi.string().allow(""),
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/** @returns {PartnerList} */
|
|
724
|
-
static PartnerList() {
|
|
725
|
-
return Joi.object({
|
|
726
|
-
_id: Joi.string().allow(""),
|
|
727
|
-
account_type: Joi.string().allow(""),
|
|
728
|
-
approved_permissions: PartnerPlatformModel.ApprovedPermissionsInfo(),
|
|
729
|
-
approver_id: Joi.string().allow(""),
|
|
730
|
-
comment: Joi.string().allow(""),
|
|
731
|
-
company_id: Joi.number(),
|
|
732
|
-
company_name: Joi.string().allow(""),
|
|
733
|
-
created_at: Joi.string().allow(""),
|
|
734
|
-
modified_at: Joi.string().allow(""),
|
|
735
|
-
organization_id: Joi.string().allow(""),
|
|
736
|
-
organization_name: Joi.string().allow(""),
|
|
737
|
-
request_status: Joi.string().allow(""),
|
|
738
|
-
requested_permissions: PartnerPlatformModel.RequestedPermissions(),
|
|
739
|
-
user_id: Joi.string().allow(""),
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
/** @returns {PartnerRequestList} */
|
|
744
|
-
static PartnerRequestList() {
|
|
745
|
-
return Joi.object({
|
|
746
|
-
items: PartnerPlatformModel.PartnerList(),
|
|
747
|
-
page: PartnerPlatformModel.Pagination(),
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/** @returns {Plan} */
|
|
752
|
-
static Plan() {
|
|
753
|
-
return Joi.object({
|
|
754
|
-
additional_charges: Joi.string().allow(""),
|
|
755
|
-
features: Joi.string().allow(""),
|
|
756
|
-
name: Joi.string().allow(""),
|
|
757
|
-
price: PartnerPlatformModel.Price(),
|
|
758
|
-
trial_days: Joi.number(),
|
|
759
|
-
type: Joi.string().allow(""),
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/** @returns {Plans} */
|
|
764
|
-
static Plans() {
|
|
765
|
-
return Joi.object({
|
|
766
|
-
additional_charges: Joi.string().allow(""),
|
|
767
|
-
features: Joi.string().allow(""),
|
|
768
|
-
name: Joi.string().allow(""),
|
|
769
|
-
price: PartnerPlatformModel.Price(),
|
|
770
|
-
trial_days: Joi.number(),
|
|
771
|
-
type: Joi.string().allow(""),
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/** @returns {Price} */
|
|
776
|
-
static Price() {
|
|
777
|
-
return Joi.object({
|
|
778
|
-
amount: Joi.number(),
|
|
779
|
-
currency: Joi.string().allow(""),
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/** @returns {PublicExtension} */
|
|
784
|
-
static PublicExtension() {
|
|
785
|
-
return Joi.object({
|
|
786
|
-
_id: Joi.string().allow(""),
|
|
787
|
-
category: PartnerPlatformModel.Category(),
|
|
788
|
-
coming_soon: PartnerPlatformModel.CommingSoon(),
|
|
789
|
-
contact_info: PartnerPlatformModel.ContactInfo(),
|
|
790
|
-
created_at: Joi.string().allow(""),
|
|
791
|
-
current_status: Joi.string().allow(""),
|
|
792
|
-
details: PartnerPlatformModel.ExtensionDetails(),
|
|
793
|
-
extension_id: Joi.string().allow(""),
|
|
794
|
-
is_coming_soon: Joi.boolean(),
|
|
795
|
-
listing_info: PartnerPlatformModel.ListingInfo(),
|
|
796
|
-
modified_at: Joi.string().allow(""),
|
|
797
|
-
organization: PartnerPlatformModel.OrganizationBasicInfo(),
|
|
798
|
-
organization_id: Joi.string().allow(""),
|
|
799
|
-
plan_type: Joi.string().allow(""),
|
|
800
|
-
plans: Joi.array().items(PartnerPlatformModel.Plans()),
|
|
801
|
-
plans_url: Joi.string().allow(""),
|
|
802
|
-
review_instructions: Joi.string().allow(""),
|
|
803
|
-
scope: Joi.array().items(Joi.string().allow("")),
|
|
804
|
-
slug: Joi.string().allow(""),
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
|
|
808
71
|
/** @returns {RemoveProxyResponse} */
|
|
809
72
|
static RemoveProxyResponse() {
|
|
810
73
|
return Joi.object({
|
|
@@ -812,77 +75,5 @@ class PartnerPlatformModel {
|
|
|
812
75
|
message: Joi.string().allow(""),
|
|
813
76
|
});
|
|
814
77
|
}
|
|
815
|
-
|
|
816
|
-
/** @returns {RequestedPermissions} */
|
|
817
|
-
static RequestedPermissions() {
|
|
818
|
-
return Joi.object({
|
|
819
|
-
application_permissions: Joi.array().items(Joi.string().allow("")),
|
|
820
|
-
application_role: Joi.array().items(Joi.string().allow("")),
|
|
821
|
-
company_permissions: Joi.array().items(Joi.string().allow("")),
|
|
822
|
-
company_role: Joi.array().items(Joi.string().allow("")),
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
/** @returns {Scope} */
|
|
827
|
-
static Scope() {
|
|
828
|
-
return Joi.object({
|
|
829
|
-
description: Joi.string().allow(""),
|
|
830
|
-
name: Joi.string().allow(""),
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/** @returns {Screenshots} */
|
|
835
|
-
static Screenshots() {
|
|
836
|
-
return Joi.object({
|
|
837
|
-
desktop: Joi.array().items(Joi.string().allow("")),
|
|
838
|
-
mobile: Joi.array().items(Joi.string().allow("")),
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
/** @returns {SetupProductRes} */
|
|
843
|
-
static SetupProductRes() {
|
|
844
|
-
return Joi.object({
|
|
845
|
-
cli_wait_time: Joi.number(),
|
|
846
|
-
message: Joi.string().allow(""),
|
|
847
|
-
next_step: Joi.number(),
|
|
848
|
-
request_id: Joi.string().allow(""),
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
/** @returns {SubscriptionRequest} */
|
|
853
|
-
static SubscriptionRequest() {
|
|
854
|
-
return Joi.object({
|
|
855
|
-
approved: Joi.string().allow(""),
|
|
856
|
-
client_id: Joi.string().allow(""),
|
|
857
|
-
company_id: Joi.string().allow(""),
|
|
858
|
-
credit_balance: Joi.string().allow(""),
|
|
859
|
-
request_id: Joi.string().allow(""),
|
|
860
|
-
});
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
/** @returns {SubscriptionRes} */
|
|
864
|
-
static SubscriptionRes() {
|
|
865
|
-
return Joi.object({
|
|
866
|
-
redirect_url: Joi.string().allow(""),
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
/** @returns {Support} */
|
|
871
|
-
static Support() {
|
|
872
|
-
return Joi.object({
|
|
873
|
-
email: Joi.string().allow(""),
|
|
874
|
-
faq_url: Joi.string().allow(""),
|
|
875
|
-
phone: Joi.string().allow(""),
|
|
876
|
-
privacy_policy_url: Joi.string().allow(""),
|
|
877
|
-
website_url: Joi.string().allow(""),
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
/** @returns {UninstallExtension} */
|
|
882
|
-
static UninstallExtension() {
|
|
883
|
-
return Joi.object({
|
|
884
|
-
success: Joi.boolean(),
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
78
|
}
|
|
888
79
|
module.exports = PartnerPlatformModel;
|