@gofynd/fdk-client-javascript 1.1.2 → 1.1.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.
Files changed (120) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +7 -7
  3. package/index.js +12 -12
  4. package/package.json +1 -1
  5. package/sdk/application/ApplicationClient.d.ts +20 -20
  6. package/sdk/application/ApplicationClient.js +26 -26
  7. package/sdk/application/Cart/CartApplicationClient.d.ts +36 -6
  8. package/sdk/application/Cart/CartApplicationClient.js +105 -10
  9. package/sdk/application/Cart/CartApplicationModel.d.ts +9 -0
  10. package/sdk/application/Cart/CartApplicationModel.js +105 -1
  11. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
  12. package/sdk/application/Cart/CartApplicationValidator.js +15 -1
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
  15. package/sdk/application/Common/CommonApplicationModel.js +4 -0
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
  18. package/sdk/application/Configuration/ConfigurationApplicationModel.js +6 -5
  19. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  20. package/sdk/application/Content/ContentApplicationModel.js +3 -1
  21. package/sdk/application/Lead/LeadApplicationModel.js +4 -1
  22. package/sdk/application/Logistic/LogisticApplicationModel.js +3 -2
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
  24. package/sdk/application/Order/OrderApplicationClient.js +2 -2
  25. package/sdk/application/Order/OrderApplicationModel.js +18 -8
  26. package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
  28. package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
  29. package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
  30. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
  31. package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
  32. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
  33. package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
  34. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +6 -0
  35. package/sdk/application/PosCart/PosCartApplicationModel.js +63 -1
  36. package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
  37. package/sdk/application/index.d.ts +10 -10
  38. package/sdk/application/index.js +13 -13
  39. package/sdk/common/Constant.d.ts +5 -0
  40. package/sdk/common/Constant.js +5 -0
  41. package/sdk/partner/OAuthClient.js +1 -1
  42. package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
  43. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +491 -2
  44. package/sdk/platform/Cart/CartPlatformApplicationClient.js +2661 -337
  45. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +32 -0
  46. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +269 -0
  47. package/sdk/platform/Cart/CartPlatformModel.d.ts +58 -0
  48. package/sdk/platform/Cart/CartPlatformModel.js +652 -3
  49. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
  50. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
  51. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  52. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
  53. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
  54. package/sdk/platform/Catalog/CatalogPlatformModel.js +43 -31
  55. package/sdk/platform/Common/CommonPlatformModel.js +4 -0
  56. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
  57. package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
  58. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
  59. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
  60. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
  61. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
  62. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
  63. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
  64. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
  65. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +34 -7
  67. package/sdk/platform/Content/ContentPlatformModel.js +3 -1
  68. package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
  69. package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
  70. package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
  71. package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
  72. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
  73. package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
  74. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
  75. package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
  76. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
  77. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
  78. package/sdk/platform/Order/OrderPlatformClient.d.ts +161 -79
  79. package/sdk/platform/Order/OrderPlatformClient.js +546 -114
  80. package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
  81. package/sdk/platform/Order/OrderPlatformModel.js +569 -159
  82. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  83. package/sdk/platform/Order/OrderPlatformValidator.js +52 -9
  84. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
  85. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
  86. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
  87. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
  88. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
  89. package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
  90. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
  91. package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
  92. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
  93. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
  94. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
  95. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
  96. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
  97. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
  98. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +48 -0
  99. package/sdk/platform/Payment/PaymentPlatformModel.js +452 -7
  100. package/sdk/platform/PlatformApplicationClient.d.ts +1249 -937
  101. package/sdk/platform/PlatformApplicationClient.js +1366 -1033
  102. package/sdk/platform/PlatformClient.d.ts +10979 -8771
  103. package/sdk/platform/PlatformClient.js +11874 -9197
  104. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
  105. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
  106. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
  107. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
  108. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
  109. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
  110. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +778 -0
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
  114. package/sdk/platform/index.d.ts +16 -14
  115. package/sdk/platform/index.js +22 -18
  116. package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
  117. package/sdk/public/PublicClient.d.ts +2 -2
  118. package/sdk/public/PublicClient.js +4 -4
  119. package/sdk/public/index.d.ts +1 -1
  120. package/sdk/public/index.js +2 -2
@@ -0,0 +1,21 @@
1
+ export = ServiceabilityValidator;
2
+ declare class ServiceabilityValidator {
3
+ static createZone(): any;
4
+ static getAllStores(): any;
5
+ static getCompanyStoreView(): any;
6
+ static getDpAccount(): any;
7
+ static getDpCompanyRules(): any;
8
+ static getDpRuleInsert(): any;
9
+ static getDpRules(): any;
10
+ static getEntityRegionView(): any;
11
+ static getListView(): any;
12
+ static getOptimalLocations(): any;
13
+ static getStore(): any;
14
+ static getZoneDataView(): any;
15
+ static getZoneListView(): any;
16
+ static updateDpRule(): any;
17
+ static updateZoneControllerView(): any;
18
+ static upsertDpAccount(): any;
19
+ static upsertDpCompanyRules(): any;
20
+ static upsertDpRules(): any;
21
+ }
@@ -0,0 +1,130 @@
1
+ const Joi = require("joi");
2
+
3
+ const ServiceabilityModel = require("./ServiceabilityPlatformModel");
4
+ class ServiceabilityValidator {
5
+ static createZone() {
6
+ return Joi.object({
7
+ body: ServiceabilityModel.ZoneRequest().required(),
8
+ }).required();
9
+ }
10
+
11
+ static getAllStores() {
12
+ return Joi.object({}).required();
13
+ }
14
+
15
+ static getCompanyStoreView() {
16
+ return Joi.object({
17
+ pageNumber: Joi.number(),
18
+ pageSize: Joi.number(),
19
+ }).required();
20
+ }
21
+
22
+ static getDpAccount() {
23
+ return Joi.object({
24
+ pageNumber: Joi.number(),
25
+ pageSize: Joi.number(),
26
+ stage: Joi.string().allow(""),
27
+ paymentMode: Joi.string().allow(""),
28
+ transportType: Joi.string().allow(""),
29
+ }).required();
30
+ }
31
+
32
+ static getDpCompanyRules() {
33
+ return Joi.object({}).required();
34
+ }
35
+
36
+ static getDpRuleInsert() {
37
+ return Joi.object({
38
+ pageNumber: Joi.number(),
39
+ pageSize: Joi.number(),
40
+ }).required();
41
+ }
42
+
43
+ static getDpRules() {
44
+ return Joi.object({
45
+ ruleUid: Joi.string().allow("").required(),
46
+ }).required();
47
+ }
48
+
49
+ static getEntityRegionView() {
50
+ return Joi.object({
51
+ body: ServiceabilityModel.EntityRegionView_Request().required(),
52
+ }).required();
53
+ }
54
+
55
+ static getListView() {
56
+ return Joi.object({
57
+ pageNumber: Joi.number(),
58
+ pageSize: Joi.number(),
59
+ name: Joi.string().allow(""),
60
+ isActive: Joi.boolean(),
61
+ channelIds: Joi.string().allow(""),
62
+ q: Joi.string().allow(""),
63
+ }).required();
64
+ }
65
+
66
+ static getOptimalLocations() {
67
+ return Joi.object({
68
+ body: ServiceabilityModel.ReAssignStoreRequest().required(),
69
+ }).required();
70
+ }
71
+
72
+ static getStore() {
73
+ return Joi.object({
74
+ storeUid: Joi.number().required(),
75
+ }).required();
76
+ }
77
+
78
+ static getZoneDataView() {
79
+ return Joi.object({
80
+ zoneId: Joi.string().allow("").required(),
81
+ }).required();
82
+ }
83
+
84
+ static getZoneListView() {
85
+ return Joi.object({
86
+ pageNumber: Joi.number(),
87
+ pageNo: Joi.number(),
88
+ pageSize: Joi.number(),
89
+ name: Joi.string().allow(""),
90
+ isActive: Joi.boolean(),
91
+ channelIds: Joi.string().allow(""),
92
+ q: Joi.string().allow(""),
93
+ zoneId: Joi.array().items(Joi.string().allow("")),
94
+ }).required();
95
+ }
96
+
97
+ static updateDpRule() {
98
+ return Joi.object({
99
+ ruleUid: Joi.string().allow("").required(),
100
+ body: ServiceabilityModel.DpRulesUpdateRequest().required(),
101
+ }).required();
102
+ }
103
+
104
+ static updateZoneControllerView() {
105
+ return Joi.object({
106
+ zoneId: Joi.string().allow("").required(),
107
+ body: ServiceabilityModel.ZoneUpdateRequest().required(),
108
+ }).required();
109
+ }
110
+
111
+ static upsertDpAccount() {
112
+ return Joi.object({
113
+ body: ServiceabilityModel.CompanyDpAccountRequest().required(),
114
+ }).required();
115
+ }
116
+
117
+ static upsertDpCompanyRules() {
118
+ return Joi.object({
119
+ body: ServiceabilityModel.DPCompanyRuleRequest().required(),
120
+ }).required();
121
+ }
122
+
123
+ static upsertDpRules() {
124
+ return Joi.object({
125
+ body: ServiceabilityModel.DpRuleRequest().required(),
126
+ }).required();
127
+ }
128
+ }
129
+
130
+ module.exports = ServiceabilityValidator;
@@ -1,25 +1,27 @@
1
1
  export const PlatformConfig: typeof import("./PlatformConfig");
2
2
  export const PlatformClient: typeof import("./PlatformClient");
3
3
  export namespace PlatformModel {
4
- const CommonPlatformModel: typeof import("./Common/CommonPlatformModel");
5
- const LeadPlatformModel: typeof import("./Lead/LeadPlatformModel");
6
- const ThemePlatformModel: typeof import("./Theme/ThemePlatformModel");
7
- const UserPlatformModel: typeof import("./User/UserPlatformModel");
8
- const ContentPlatformModel: typeof import("./Content/ContentPlatformModel");
4
+ const AuditTrailPlatformModel: typeof import("./AuditTrail/AuditTrailPlatformModel");
9
5
  const BillingPlatformModel: typeof import("./Billing/BillingPlatformModel");
10
- const CommunicationPlatformModel: typeof import("./Communication/CommunicationPlatformModel");
11
- const PaymentPlatformModel: typeof import("./Payment/PaymentPlatformModel");
12
- const OrderPlatformModel: typeof import("./Order/OrderPlatformModel");
6
+ const CartPlatformModel: typeof import("./Cart/CartPlatformModel");
13
7
  const CatalogPlatformModel: typeof import("./Catalog/CatalogPlatformModel");
8
+ const CommonPlatformModel: typeof import("./Common/CommonPlatformModel");
9
+ const CommunicationPlatformModel: typeof import("./Communication/CommunicationPlatformModel");
14
10
  const CompanyProfilePlatformModel: typeof import("./CompanyProfile/CompanyProfilePlatformModel");
15
- const FileStoragePlatformModel: typeof import("./FileStorage/FileStoragePlatformModel");
16
- const SharePlatformModel: typeof import("./Share/SharePlatformModel");
17
- const InventoryPlatformModel: typeof import("./Inventory/InventoryPlatformModel");
18
11
  const ConfigurationPlatformModel: typeof import("./Configuration/ConfigurationPlatformModel");
19
- const CartPlatformModel: typeof import("./Cart/CartPlatformModel");
20
- const RewardsPlatformModel: typeof import("./Rewards/RewardsPlatformModel");
12
+ const ContentPlatformModel: typeof import("./Content/ContentPlatformModel");
21
13
  const DiscountPlatformModel: typeof import("./Discount/DiscountPlatformModel");
14
+ const FileStoragePlatformModel: typeof import("./FileStorage/FileStoragePlatformModel");
15
+ const FinancePlatformModel: typeof import("./Finance/FinancePlatformModel");
16
+ const InventoryPlatformModel: typeof import("./Inventory/InventoryPlatformModel");
17
+ const LeadPlatformModel: typeof import("./Lead/LeadPlatformModel");
18
+ const OrderPlatformModel: typeof import("./Order/OrderPlatformModel");
22
19
  const PartnerPlatformModel: typeof import("./Partner/PartnerPlatformModel");
20
+ const PaymentPlatformModel: typeof import("./Payment/PaymentPlatformModel");
21
+ const RewardsPlatformModel: typeof import("./Rewards/RewardsPlatformModel");
22
+ const ServiceabilityPlatformModel: typeof import("./Serviceability/ServiceabilityPlatformModel");
23
+ const SharePlatformModel: typeof import("./Share/SharePlatformModel");
24
+ const ThemePlatformModel: typeof import("./Theme/ThemePlatformModel");
25
+ const UserPlatformModel: typeof import("./User/UserPlatformModel");
23
26
  const WebhookPlatformModel: typeof import("./Webhook/WebhookPlatformModel");
24
- const AuditTrailPlatformModel: typeof import("./AuditTrail/AuditTrailPlatformModel");
25
27
  }
@@ -2,46 +2,50 @@ module.exports = {
2
2
  PlatformConfig: require("./PlatformConfig"),
3
3
  PlatformClient: require("./PlatformClient"),
4
4
  PlatformModel: {
5
- CommonPlatformModel: require("./Common/CommonPlatformModel"),
6
-
7
- LeadPlatformModel: require("./Lead/LeadPlatformModel"),
5
+ AuditTrailPlatformModel: require("./AuditTrail/AuditTrailPlatformModel"),
8
6
 
9
- ThemePlatformModel: require("./Theme/ThemePlatformModel"),
7
+ BillingPlatformModel: require("./Billing/BillingPlatformModel"),
10
8
 
11
- UserPlatformModel: require("./User/UserPlatformModel"),
9
+ CartPlatformModel: require("./Cart/CartPlatformModel"),
12
10
 
13
- ContentPlatformModel: require("./Content/ContentPlatformModel"),
11
+ CatalogPlatformModel: require("./Catalog/CatalogPlatformModel"),
14
12
 
15
- BillingPlatformModel: require("./Billing/BillingPlatformModel"),
13
+ CommonPlatformModel: require("./Common/CommonPlatformModel"),
16
14
 
17
15
  CommunicationPlatformModel: require("./Communication/CommunicationPlatformModel"),
18
16
 
19
- PaymentPlatformModel: require("./Payment/PaymentPlatformModel"),
17
+ CompanyProfilePlatformModel: require("./CompanyProfile/CompanyProfilePlatformModel"),
20
18
 
21
- OrderPlatformModel: require("./Order/OrderPlatformModel"),
19
+ ConfigurationPlatformModel: require("./Configuration/ConfigurationPlatformModel"),
22
20
 
23
- CatalogPlatformModel: require("./Catalog/CatalogPlatformModel"),
21
+ ContentPlatformModel: require("./Content/ContentPlatformModel"),
24
22
 
25
- CompanyProfilePlatformModel: require("./CompanyProfile/CompanyProfilePlatformModel"),
23
+ DiscountPlatformModel: require("./Discount/DiscountPlatformModel"),
26
24
 
27
25
  FileStoragePlatformModel: require("./FileStorage/FileStoragePlatformModel"),
28
26
 
29
- SharePlatformModel: require("./Share/SharePlatformModel"),
27
+ FinancePlatformModel: require("./Finance/FinancePlatformModel"),
30
28
 
31
29
  InventoryPlatformModel: require("./Inventory/InventoryPlatformModel"),
32
30
 
33
- ConfigurationPlatformModel: require("./Configuration/ConfigurationPlatformModel"),
31
+ LeadPlatformModel: require("./Lead/LeadPlatformModel"),
34
32
 
35
- CartPlatformModel: require("./Cart/CartPlatformModel"),
33
+ OrderPlatformModel: require("./Order/OrderPlatformModel"),
34
+
35
+ PartnerPlatformModel: require("./Partner/PartnerPlatformModel"),
36
+
37
+ PaymentPlatformModel: require("./Payment/PaymentPlatformModel"),
36
38
 
37
39
  RewardsPlatformModel: require("./Rewards/RewardsPlatformModel"),
38
40
 
39
- DiscountPlatformModel: require("./Discount/DiscountPlatformModel"),
41
+ ServiceabilityPlatformModel: require("./Serviceability/ServiceabilityPlatformModel"),
40
42
 
41
- PartnerPlatformModel: require("./Partner/PartnerPlatformModel"),
43
+ SharePlatformModel: require("./Share/SharePlatformModel"),
42
44
 
43
- WebhookPlatformModel: require("./Webhook/WebhookPlatformModel"),
45
+ ThemePlatformModel: require("./Theme/ThemePlatformModel"),
44
46
 
45
- AuditTrailPlatformModel: require("./AuditTrail/AuditTrailPlatformModel"),
47
+ UserPlatformModel: require("./User/UserPlatformModel"),
48
+
49
+ WebhookPlatformModel: require("./Webhook/WebhookPlatformModel"),
46
50
  },
47
51
  };
@@ -27,6 +27,7 @@ class ConfigurationModel {
27
27
  redirections: Joi.array().items(
28
28
  ConfigurationModel.ApplicationRedirections()
29
29
  ),
30
+ slug: Joi.string().allow(""),
30
31
  token: Joi.string().allow(""),
31
32
  updated_at: Joi.string().allow(""),
32
33
  website: ConfigurationModel.ApplicationWebsite(),
@@ -98,14 +99,18 @@ class ConfigurationModel {
98
99
  __v: Joi.number(),
99
100
  _id: Joi.string().allow(""),
100
101
  capital: Joi.string().allow(""),
102
+ country_code: Joi.string().allow(""),
101
103
  currency: Joi.string().allow(""),
102
104
  default_currency: ConfigurationModel.LocationDefaultCurrency(),
103
105
  default_language: ConfigurationModel.LocationDefaultLanguage(),
104
106
  iso2: Joi.string().allow(""),
105
107
  iso3: Joi.string().allow(""),
108
+ latitude: Joi.string().allow(""),
109
+ longitude: Joi.string().allow(""),
106
110
  name: Joi.string().allow(""),
107
111
  parent: Joi.string().allow(""),
108
112
  phone_code: Joi.string().allow(""),
113
+ state_code: Joi.string().allow(""),
109
114
  type: Joi.string().allow(""),
110
115
  uid: Joi.number(),
111
116
  });
@@ -3,10 +3,10 @@ declare class PublicClient {
3
3
  constructor(config: any);
4
4
  config: any;
5
5
  configuration: Configuration;
6
- webhook: Webhook;
7
6
  inventory: Inventory;
7
+ webhook: Webhook;
8
8
  setExtraHeaders(header: any): void;
9
9
  }
10
10
  import Configuration = require("./Configuration/ConfigurationPublicClient");
11
- import Webhook = require("./Webhook/WebhookPublicClient");
12
11
  import Inventory = require("./Inventory/InventoryPublicClient");
12
+ import Webhook = require("./Webhook/WebhookPublicClient");
@@ -1,9 +1,9 @@
1
1
  const Configuration = require("./Configuration/ConfigurationPublicClient");
2
2
 
3
- const Webhook = require("./Webhook/WebhookPublicClient");
4
-
5
3
  const Inventory = require("./Inventory/InventoryPublicClient");
6
4
 
5
+ const Webhook = require("./Webhook/WebhookPublicClient");
6
+
7
7
  const { FDKClientValidationError } = require("../common/FDKError");
8
8
 
9
9
  class PublicClient {
@@ -12,9 +12,9 @@ class PublicClient {
12
12
 
13
13
  this.configuration = new Configuration(config);
14
14
 
15
- this.webhook = new Webhook(config);
16
-
17
15
  this.inventory = new Inventory(config);
16
+
17
+ this.webhook = new Webhook(config);
18
18
  }
19
19
 
20
20
  setExtraHeaders(header) {
@@ -2,6 +2,6 @@ export const PublicConfig: typeof import("./PublicConfig");
2
2
  export const PublicClient: typeof import("./PublicClient");
3
3
  export namespace PublicModel {
4
4
  const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
5
- const WebhookPublicModel: typeof import("./Webhook/WebhookPublicModel");
6
5
  const InventoryPublicModel: typeof import("./Inventory/InventoryPublicModel");
6
+ const WebhookPublicModel: typeof import("./Webhook/WebhookPublicModel");
7
7
  }
@@ -4,8 +4,8 @@ module.exports = {
4
4
  PublicModel: {
5
5
  ConfigurationPublicModel: require("./Configuration/ConfigurationPublicModel"),
6
6
 
7
- WebhookPublicModel: require("./Webhook/WebhookPublicModel"),
8
-
9
7
  InventoryPublicModel: require("./Inventory/InventoryPublicModel"),
8
+
9
+ WebhookPublicModel: require("./Webhook/WebhookPublicModel"),
10
10
  },
11
11
  };