@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -99,13 +99,13 @@ const Joi = require("joi");
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* @typedef Page
|
|
102
|
-
* @property {number} [item_total]
|
|
103
|
-
* @property {string} [next_id]
|
|
104
|
-
* @property {boolean} [has_previous]
|
|
105
|
-
* @property {boolean} [has_next]
|
|
106
|
-
* @property {number} [current]
|
|
107
|
-
* @property {string} type
|
|
108
|
-
* @property {number} [size]
|
|
102
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
103
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
104
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
105
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
106
|
+
* @property {number} [current] - The current page number.
|
|
107
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
108
|
+
* @property {number} [size] - The number of items per page.
|
|
109
109
|
*/
|
|
110
110
|
|
|
111
111
|
/**
|
|
@@ -114,7 +114,7 @@ export = ThemePlatformModel;
|
|
|
114
114
|
*/
|
|
115
115
|
/**
|
|
116
116
|
* @typedef Action
|
|
117
|
-
* @property {string} [type]
|
|
117
|
+
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
118
118
|
* @property {ActionPage} [page]
|
|
119
119
|
* @property {ActionPage} [popup]
|
|
120
120
|
*/
|
|
@@ -532,9 +532,9 @@ export = ThemePlatformModel;
|
|
|
532
532
|
*/
|
|
533
533
|
/**
|
|
534
534
|
* @typedef ActionPage
|
|
535
|
-
* @property {Object} [params]
|
|
536
|
-
* @property {Object} [query]
|
|
537
|
-
* @property {string} [url]
|
|
535
|
+
* @property {Object} [params] - Parameters that should be considered in path.
|
|
536
|
+
* @property {Object} [query] - Query parameter if any to be added to the action.
|
|
537
|
+
* @property {string} [url] - The URL for the action.
|
|
538
538
|
* @property {PageType} type
|
|
539
539
|
*/
|
|
540
540
|
/**
|
|
@@ -549,6 +549,7 @@ export = ThemePlatformModel;
|
|
|
549
549
|
* | "category"
|
|
550
550
|
* | "collection"
|
|
551
551
|
* | "collections"
|
|
552
|
+
* | "custom"
|
|
552
553
|
* | "contact-us"
|
|
553
554
|
* | "external"
|
|
554
555
|
* | "faq"
|
|
@@ -779,6 +780,9 @@ type SEObreadcrumb = {
|
|
|
779
780
|
/** @returns {Action} */
|
|
780
781
|
declare function Action(): Action;
|
|
781
782
|
type Action = {
|
|
783
|
+
/**
|
|
784
|
+
* - Type of action to be taken e.g, page.
|
|
785
|
+
*/
|
|
782
786
|
type?: string;
|
|
783
787
|
page?: ActionPage;
|
|
784
788
|
popup?: ActionPage;
|
|
@@ -1593,8 +1597,17 @@ type CompanyPrivateTheme = {
|
|
|
1593
1597
|
/** @returns {ActionPage} */
|
|
1594
1598
|
declare function ActionPage(): ActionPage;
|
|
1595
1599
|
type ActionPage = {
|
|
1600
|
+
/**
|
|
1601
|
+
* - Parameters that should be considered in path.
|
|
1602
|
+
*/
|
|
1596
1603
|
params?: any;
|
|
1604
|
+
/**
|
|
1605
|
+
* - Query parameter if any to be added to the action.
|
|
1606
|
+
*/
|
|
1597
1607
|
query?: any;
|
|
1608
|
+
/**
|
|
1609
|
+
* - The URL for the action.
|
|
1610
|
+
*/
|
|
1598
1611
|
url?: string;
|
|
1599
1612
|
type: PageType;
|
|
1600
1613
|
};
|
|
@@ -1604,4 +1617,4 @@ type ActionPage = {
|
|
|
1604
1617
|
* @returns {PageType}
|
|
1605
1618
|
*/
|
|
1606
1619
|
declare function PageType(): PageType;
|
|
1607
|
-
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|
|
1620
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|
|
@@ -131,7 +131,7 @@ const Joi = require("joi");
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* @typedef Action
|
|
134
|
-
* @property {string} [type]
|
|
134
|
+
* @property {string} [type] - Type of action to be taken e.g, page.
|
|
135
135
|
* @property {ActionPage} [page]
|
|
136
136
|
* @property {ActionPage} [popup]
|
|
137
137
|
*/
|
|
@@ -612,9 +612,9 @@ const Joi = require("joi");
|
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
614
|
* @typedef ActionPage
|
|
615
|
-
* @property {Object} [params]
|
|
616
|
-
* @property {Object} [query]
|
|
617
|
-
* @property {string} [url]
|
|
615
|
+
* @property {Object} [params] - Parameters that should be considered in path.
|
|
616
|
+
* @property {Object} [query] - Query parameter if any to be added to the action.
|
|
617
|
+
* @property {string} [url] - The URL for the action.
|
|
618
618
|
* @property {PageType} type
|
|
619
619
|
*/
|
|
620
620
|
|
|
@@ -630,6 +630,7 @@ const Joi = require("joi");
|
|
|
630
630
|
* | "category"
|
|
631
631
|
* | "collection"
|
|
632
632
|
* | "collections"
|
|
633
|
+
* | "custom"
|
|
633
634
|
* | "contact-us"
|
|
634
635
|
* | "external"
|
|
635
636
|
* | "faq"
|
|
@@ -1480,6 +1481,8 @@ class ThemePlatformModel {
|
|
|
1480
1481
|
|
|
1481
1482
|
"collections",
|
|
1482
1483
|
|
|
1484
|
+
"custom",
|
|
1485
|
+
|
|
1483
1486
|
"contact-us",
|
|
1484
1487
|
|
|
1485
1488
|
"external",
|
|
@@ -457,18 +457,18 @@ export = UserPlatformModel;
|
|
|
457
457
|
*/
|
|
458
458
|
/**
|
|
459
459
|
* @typedef PhoneNumber
|
|
460
|
-
* @property {string} [phone] - Phone number
|
|
461
|
-
* @property {number} [country_code] - Country code
|
|
462
|
-
* @property {boolean} [active] - Is the phone number active
|
|
463
|
-
* @property {boolean} [primary] - Is it a primary phone number
|
|
464
|
-
* @property {boolean} [verified] - Is the phone number verified
|
|
460
|
+
* @property {string} [phone] - Phone number of the user.
|
|
461
|
+
* @property {number} [country_code] - Country code for mobile number.
|
|
462
|
+
* @property {boolean} [active] - Is the phone number active.
|
|
463
|
+
* @property {boolean} [primary] - Is it a primary phone number.
|
|
464
|
+
* @property {boolean} [verified] - Is the phone number verified.
|
|
465
465
|
*/
|
|
466
466
|
/**
|
|
467
467
|
* @typedef Email
|
|
468
|
-
* @property {string} [email] - Email address
|
|
469
|
-
* @property {boolean} [active] - Is the email active
|
|
470
|
-
* @property {boolean} [primary] - Is it a primary email
|
|
471
|
-
* @property {boolean} [verified] - Is the email verified
|
|
468
|
+
* @property {string} [email] - Email address.
|
|
469
|
+
* @property {boolean} [active] - Is the email active.
|
|
470
|
+
* @property {boolean} [primary] - Is it a primary email.
|
|
471
|
+
* @property {boolean} [verified] - Is the email verified.
|
|
472
472
|
*/
|
|
473
473
|
declare class UserPlatformModel {
|
|
474
474
|
}
|
|
@@ -1131,23 +1131,23 @@ type UserSearchSchema = {
|
|
|
1131
1131
|
declare function PhoneNumber(): PhoneNumber;
|
|
1132
1132
|
type PhoneNumber = {
|
|
1133
1133
|
/**
|
|
1134
|
-
* - Phone number
|
|
1134
|
+
* - Phone number of the user.
|
|
1135
1135
|
*/
|
|
1136
1136
|
phone?: string;
|
|
1137
1137
|
/**
|
|
1138
|
-
* - Country code
|
|
1138
|
+
* - Country code for mobile number.
|
|
1139
1139
|
*/
|
|
1140
1140
|
country_code?: number;
|
|
1141
1141
|
/**
|
|
1142
|
-
* - Is the phone number active
|
|
1142
|
+
* - Is the phone number active.
|
|
1143
1143
|
*/
|
|
1144
1144
|
active?: boolean;
|
|
1145
1145
|
/**
|
|
1146
|
-
* - Is it a primary phone number
|
|
1146
|
+
* - Is it a primary phone number.
|
|
1147
1147
|
*/
|
|
1148
1148
|
primary?: boolean;
|
|
1149
1149
|
/**
|
|
1150
|
-
* - Is the phone number verified
|
|
1150
|
+
* - Is the phone number verified.
|
|
1151
1151
|
*/
|
|
1152
1152
|
verified?: boolean;
|
|
1153
1153
|
};
|
|
@@ -1155,19 +1155,19 @@ type PhoneNumber = {
|
|
|
1155
1155
|
declare function Email(): Email;
|
|
1156
1156
|
type Email = {
|
|
1157
1157
|
/**
|
|
1158
|
-
* - Email address
|
|
1158
|
+
* - Email address.
|
|
1159
1159
|
*/
|
|
1160
1160
|
email?: string;
|
|
1161
1161
|
/**
|
|
1162
|
-
* - Is the email active
|
|
1162
|
+
* - Is the email active.
|
|
1163
1163
|
*/
|
|
1164
1164
|
active?: boolean;
|
|
1165
1165
|
/**
|
|
1166
|
-
* - Is it a primary email
|
|
1166
|
+
* - Is it a primary email.
|
|
1167
1167
|
*/
|
|
1168
1168
|
primary?: boolean;
|
|
1169
1169
|
/**
|
|
1170
|
-
* - Is the email verified
|
|
1170
|
+
* - Is the email verified.
|
|
1171
1171
|
*/
|
|
1172
1172
|
verified?: boolean;
|
|
1173
1173
|
};
|
|
@@ -516,19 +516,19 @@ const Joi = require("joi");
|
|
|
516
516
|
|
|
517
517
|
/**
|
|
518
518
|
* @typedef PhoneNumber
|
|
519
|
-
* @property {string} [phone] - Phone number
|
|
520
|
-
* @property {number} [country_code] - Country code
|
|
521
|
-
* @property {boolean} [active] - Is the phone number active
|
|
522
|
-
* @property {boolean} [primary] - Is it a primary phone number
|
|
523
|
-
* @property {boolean} [verified] - Is the phone number verified
|
|
519
|
+
* @property {string} [phone] - Phone number of the user.
|
|
520
|
+
* @property {number} [country_code] - Country code for mobile number.
|
|
521
|
+
* @property {boolean} [active] - Is the phone number active.
|
|
522
|
+
* @property {boolean} [primary] - Is it a primary phone number.
|
|
523
|
+
* @property {boolean} [verified] - Is the phone number verified.
|
|
524
524
|
*/
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
527
|
* @typedef Email
|
|
528
|
-
* @property {string} [email] - Email address
|
|
529
|
-
* @property {boolean} [active] - Is the email active
|
|
530
|
-
* @property {boolean} [primary] - Is it a primary email
|
|
531
|
-
* @property {boolean} [verified] - Is the email verified
|
|
528
|
+
* @property {string} [email] - Email address.
|
|
529
|
+
* @property {boolean} [active] - Is the email active.
|
|
530
|
+
* @property {boolean} [primary] - Is it a primary email.
|
|
531
|
+
* @property {boolean} [verified] - Is the email verified.
|
|
532
532
|
*/
|
|
533
533
|
|
|
534
534
|
class UserPlatformModel {
|
|
@@ -41,13 +41,13 @@ export = WebhookPlatformModel;
|
|
|
41
41
|
*/
|
|
42
42
|
/**
|
|
43
43
|
* @typedef Page
|
|
44
|
-
* @property {number} [item_total]
|
|
45
|
-
* @property {string} [next_id]
|
|
46
|
-
* @property {boolean} [has_previous]
|
|
47
|
-
* @property {boolean} [has_next]
|
|
48
|
-
* @property {number} [current]
|
|
49
|
-
* @property {string} type
|
|
50
|
-
* @property {number} [size]
|
|
44
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
45
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
46
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
47
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
48
|
+
* @property {number} [current] - The current page number.
|
|
49
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
50
|
+
* @property {number} [size] - The number of items per page.
|
|
51
51
|
*/
|
|
52
52
|
/**
|
|
53
53
|
* @typedef PingWebhook
|
|
@@ -352,12 +352,33 @@ type EventProcessReportObject = {
|
|
|
352
352
|
/** @returns {Page} */
|
|
353
353
|
declare function Page(): Page;
|
|
354
354
|
type Page = {
|
|
355
|
+
/**
|
|
356
|
+
* - The total number of items on the page.
|
|
357
|
+
*/
|
|
355
358
|
item_total?: number;
|
|
359
|
+
/**
|
|
360
|
+
* - The identifier for the next page.
|
|
361
|
+
*/
|
|
356
362
|
next_id?: string;
|
|
363
|
+
/**
|
|
364
|
+
* - Indicates whether there is a previous page.
|
|
365
|
+
*/
|
|
357
366
|
has_previous?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* - Indicates whether there is a next page.
|
|
369
|
+
*/
|
|
358
370
|
has_next?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* - The current page number.
|
|
373
|
+
*/
|
|
359
374
|
current?: number;
|
|
375
|
+
/**
|
|
376
|
+
* - The type of the page, such as 'PageType'.
|
|
377
|
+
*/
|
|
360
378
|
type: string;
|
|
379
|
+
/**
|
|
380
|
+
* - The number of items per page.
|
|
381
|
+
*/
|
|
361
382
|
size?: number;
|
|
362
383
|
};
|
|
363
384
|
/** @returns {PingWebhook} */
|
|
@@ -47,13 +47,13 @@ const Joi = require("joi");
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @typedef Page
|
|
50
|
-
* @property {number} [item_total]
|
|
51
|
-
* @property {string} [next_id]
|
|
52
|
-
* @property {boolean} [has_previous]
|
|
53
|
-
* @property {boolean} [has_next]
|
|
54
|
-
* @property {number} [current]
|
|
55
|
-
* @property {string} type
|
|
56
|
-
* @property {number} [size]
|
|
50
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
51
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
52
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
53
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
54
|
+
* @property {number} [current] - The current page number.
|
|
55
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
56
|
+
* @property {number} [size] - The number of items per page.
|
|
57
57
|
*/
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -12,10 +12,8 @@ declare class PublicClient {
|
|
|
12
12
|
*/
|
|
13
13
|
constructor(config: import("./PublicConfig"));
|
|
14
14
|
config: import("./PublicConfig");
|
|
15
|
-
billing: Billing;
|
|
16
15
|
configuration: Configuration;
|
|
17
16
|
content: Content;
|
|
18
|
-
inventory: Inventory;
|
|
19
17
|
partner: Partner;
|
|
20
18
|
webhook: Webhook;
|
|
21
19
|
/**
|
|
@@ -26,9 +24,7 @@ declare class PublicClient {
|
|
|
26
24
|
*/
|
|
27
25
|
setExtraHeaders(header: object): void;
|
|
28
26
|
}
|
|
29
|
-
import Billing = require("./Billing/BillingPublicClient");
|
|
30
27
|
import Configuration = require("./Configuration/ConfigurationPublicClient");
|
|
31
28
|
import Content = require("./Content/ContentPublicClient");
|
|
32
|
-
import Inventory = require("./Inventory/InventoryPublicClient");
|
|
33
29
|
import Partner = require("./Partner/PartnerPublicClient");
|
|
34
30
|
import Webhook = require("./Webhook/WebhookPublicClient");
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
const Billing = require("./Billing/BillingPublicClient");
|
|
2
|
-
|
|
3
1
|
const Configuration = require("./Configuration/ConfigurationPublicClient");
|
|
4
2
|
|
|
5
3
|
const Content = require("./Content/ContentPublicClient");
|
|
6
4
|
|
|
7
|
-
const Inventory = require("./Inventory/InventoryPublicClient");
|
|
8
|
-
|
|
9
5
|
const Partner = require("./Partner/PartnerPublicClient");
|
|
10
6
|
|
|
11
7
|
const Webhook = require("./Webhook/WebhookPublicClient");
|
|
@@ -26,14 +22,10 @@ class PublicClient {
|
|
|
26
22
|
constructor(config) {
|
|
27
23
|
this.config = config;
|
|
28
24
|
|
|
29
|
-
this.billing = new Billing(config);
|
|
30
|
-
|
|
31
25
|
this.configuration = new Configuration(config);
|
|
32
26
|
|
|
33
27
|
this.content = new Content(config);
|
|
34
28
|
|
|
35
|
-
this.inventory = new Inventory(config);
|
|
36
|
-
|
|
37
29
|
this.partner = new Partner(config);
|
|
38
30
|
|
|
39
31
|
this.webhook = new Webhook(config);
|
package/sdk/public/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export const PublicConfig: typeof import("./PublicConfig");
|
|
2
2
|
export const PublicClient: typeof import("./PublicClient");
|
|
3
3
|
export namespace PublicModel {
|
|
4
|
-
const BillingPublicModel: typeof import("./Billing/BillingPublicModel");
|
|
5
4
|
const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
|
|
6
5
|
const ContentPublicModel: typeof import("./Content/ContentPublicModel");
|
|
7
|
-
const InventoryPublicModel: typeof import("./Inventory/InventoryPublicModel");
|
|
8
6
|
const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel");
|
|
9
7
|
const WebhookPublicModel: typeof import("./Webhook/WebhookPublicModel");
|
|
10
8
|
}
|
package/sdk/public/index.js
CHANGED
|
@@ -2,14 +2,10 @@ module.exports = {
|
|
|
2
2
|
PublicConfig: require("./PublicConfig"),
|
|
3
3
|
PublicClient: require("./PublicClient"),
|
|
4
4
|
PublicModel: {
|
|
5
|
-
BillingPublicModel: require("./Billing/BillingPublicModel"),
|
|
6
|
-
|
|
7
5
|
ConfigurationPublicModel: require("./Configuration/ConfigurationPublicModel"),
|
|
8
6
|
|
|
9
7
|
ContentPublicModel: require("./Content/ContentPublicModel"),
|
|
10
8
|
|
|
11
|
-
InventoryPublicModel: require("./Inventory/InventoryPublicModel"),
|
|
12
|
-
|
|
13
9
|
PartnerPublicModel: require("./Partner/PartnerPublicModel"),
|
|
14
10
|
|
|
15
11
|
WebhookPublicModel: require("./Webhook/WebhookPublicModel"),
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export = Billing;
|
|
2
|
-
declare class Billing {
|
|
3
|
-
constructor(_conf: any);
|
|
4
|
-
_conf: any;
|
|
5
|
-
_relativeUrls: {
|
|
6
|
-
getPlanDetails: string;
|
|
7
|
-
getStandardPlans: string;
|
|
8
|
-
planList: string;
|
|
9
|
-
};
|
|
10
|
-
_urls: {};
|
|
11
|
-
updateUrls(urls: any): void;
|
|
12
|
-
/**
|
|
13
|
-
* @param {BillingPublicValidator.GetPlanDetailsParam} arg - Arg object.
|
|
14
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
15
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
16
|
-
* @returns {Promise<BillingPublicModel.PlanDetails>} - Success response
|
|
17
|
-
* @name getPlanDetails
|
|
18
|
-
* @summary: Get plan details
|
|
19
|
-
* @description: Get plan details.
|
|
20
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getPlanDetails/).
|
|
21
|
-
*/
|
|
22
|
-
getPlanDetails({ planId, requestHeaders }?: BillingPublicValidator.GetPlanDetailsParam, { responseHeaders }?: object): Promise<BillingPublicModel.PlanDetails>;
|
|
23
|
-
/**
|
|
24
|
-
* @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object.
|
|
25
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
27
|
-
* @returns {Promise<BillingPublicModel.DetailList>} - Success response
|
|
28
|
-
* @name getStandardPlans
|
|
29
|
-
* @summary: Get Standard/Public Plans
|
|
30
|
-
* @description: Get Standard/Public Plans. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
|
|
31
|
-
*/
|
|
32
|
-
getStandardPlans({ platform, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise<BillingPublicModel.DetailList>;
|
|
33
|
-
/**
|
|
34
|
-
* @param {BillingPublicValidator.PlanListParam} arg - Arg object.
|
|
35
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
37
|
-
* @returns {Promise<BillingPublicModel.PlanList[]>} - Success response
|
|
38
|
-
* @name planList
|
|
39
|
-
* @summary: Get List of all plans
|
|
40
|
-
* @description: Get List of all plans - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/planList/).
|
|
41
|
-
*/
|
|
42
|
-
planList({ requestHeaders }?: any, { responseHeaders }?: object): Promise<BillingPublicModel.PlanList[]>;
|
|
43
|
-
}
|
|
44
|
-
import BillingPublicValidator = require("./BillingPublicValidator");
|
|
45
|
-
import BillingPublicModel = require("./BillingPublicModel");
|