@gofynd/fdk-client-javascript 1.4.3 → 1.4.5

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 (125) hide show
  1. package/README.md +1 -10
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -48
  4. package/sdk/application/Cart/CartApplicationClient.js +48 -48
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +69 -69
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
  7. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  8. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  9. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
  10. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -32
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +45 -45
  14. package/sdk/application/Content/ContentApplicationClient.js +45 -45
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +5 -5
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +5 -5
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +9 -9
  18. package/sdk/application/Lead/LeadApplicationClient.js +9 -9
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -22
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +14 -25
  22. package/sdk/application/Order/OrderApplicationClient.js +14 -94
  23. package/sdk/application/Order/OrderApplicationValidator.d.ts +1 -15
  24. package/sdk/application/Order/OrderApplicationValidator.js +0 -13
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +71 -71
  26. package/sdk/application/Payment/PaymentApplicationClient.js +71 -71
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +1 -1
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +1 -1
  30. package/sdk/application/Share/ShareApplicationClient.js +1 -1
  31. package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
  32. package/sdk/application/Share/ShareApplicationModel.js +2 -0
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  34. package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
  35. package/sdk/application/User/UserApplicationClient.d.ts +74 -74
  36. package/sdk/application/User/UserApplicationClient.js +74 -74
  37. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +5 -5
  38. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +5 -5
  39. package/sdk/platform/Billing/BillingPlatformClient.d.ts +13 -13
  40. package/sdk/platform/Billing/BillingPlatformClient.js +13 -13
  41. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +102 -102
  42. package/sdk/platform/Cart/CartPlatformApplicationClient.js +102 -102
  43. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +132 -131
  44. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +132 -131
  45. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +130 -130
  46. package/sdk/platform/Catalog/CatalogPlatformClient.js +130 -130
  47. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
  48. package/sdk/platform/Common/CommonPlatformClient.js +2 -2
  49. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +118 -118
  50. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +118 -118
  51. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  52. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  53. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +22 -22
  54. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +22 -22
  55. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +34 -7
  56. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +35 -5
  57. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +4 -4
  58. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +4 -4
  59. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +41 -41
  60. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -41
  61. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +26 -26
  62. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +26 -26
  63. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +93 -93
  64. package/sdk/platform/Content/ContentPlatformApplicationClient.js +93 -93
  65. package/sdk/platform/Content/ContentPlatformClient.d.ts +29 -29
  66. package/sdk/platform/Content/ContentPlatformClient.js +29 -29
  67. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +18 -18
  68. package/sdk/platform/Discount/DiscountPlatformClient.js +18 -18
  69. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -17
  70. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +18 -17
  71. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
  72. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
  73. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
  74. package/sdk/platform/Finance/FinancePlatformClient.d.ts +4 -4
  75. package/sdk/platform/Finance/FinancePlatformClient.js +4 -4
  76. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
  77. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
  78. package/sdk/platform/Lead/LeadPlatformClient.d.ts +15 -15
  79. package/sdk/platform/Lead/LeadPlatformClient.js +15 -15
  80. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  81. package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
  82. package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -106
  83. package/sdk/platform/Order/OrderPlatformClient.js +95 -190
  84. package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -0
  85. package/sdk/platform/Order/OrderPlatformModel.js +4 -0
  86. package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -33
  87. package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
  88. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
  89. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
  90. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +77 -77
  91. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +77 -77
  92. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +2 -2
  93. package/sdk/platform/Payment/PaymentPlatformClient.js +2 -2
  94. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
  95. package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
  96. package/sdk/platform/PlatformClient.d.ts +0 -2
  97. package/sdk/platform/PlatformClient.js +0 -4
  98. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +7 -7
  99. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +7 -7
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +40 -40
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +51 -50
  103. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +51 -50
  104. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  105. package/sdk/platform/Share/SharePlatformApplicationClient.js +1 -1
  106. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
  107. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  108. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +34 -104
  109. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +34 -591
  110. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +1 -100
  111. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
  112. package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
  113. package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
  114. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -35
  115. package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
  116. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +7 -6
  117. package/sdk/platform/Webhook/WebhookPlatformClient.js +7 -6
  118. package/sdk/platform/index.d.ts +0 -1
  119. package/sdk/platform/index.js +0 -2
  120. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
  121. package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
  122. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
  123. package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
  124. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
  125. package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
@@ -1,171 +0,0 @@
1
- export = InventoryPlatformValidator;
2
- /**
3
- * @typedef CreateJobParam
4
- * @property {InventoryPlatformModel.JobConfigDTO} body
5
- */
6
- /**
7
- * @typedef DisableParam
8
- * @property {string} integrationId - IntegrationId
9
- */
10
- /** @typedef GetConfigByCompanyParam */
11
- /**
12
- * @typedef GetJobByCodeParam
13
- * @property {string} code - Job Code
14
- */
15
- /**
16
- * @typedef GetJobByCompanyAndIntegrationParam
17
- * @property {string} integrationId - Integration Id
18
- * @property {number} [pageNo] - Page Number
19
- * @property {number} [pageSize] - Page Size
20
- */
21
- /**
22
- * @typedef GetJobCodeMetricsParam
23
- * @property {string} code - Code
24
- * @property {number} [pageNo] - Page Number
25
- * @property {number} [pageSize] - Page Size
26
- * @property {string} [status] - Status
27
- * @property {string} [date] - From Date
28
- */
29
- /**
30
- * @typedef GetJobCodesByCompanyAndIntegrationParam
31
- * @property {string} integrationId - Integration Id
32
- * @property {number} [pageNo] - Page Number
33
- * @property {number} [pageSize] - Page Size
34
- */
35
- /** @typedef GetJobConfigDefaultsParam */
36
- /**
37
- * @typedef GetJobStepsParam
38
- * @property {number} jobId - Job Id
39
- */
40
- /**
41
- * @typedef GetJobsByCompanyParam
42
- * @property {number} [pageNo] - Page Number
43
- * @property {number} [pageSize] - Page Size
44
- */
45
- /**
46
- * @typedef SuppressStoresParam
47
- * @property {InventoryPlatformModel.SuppressStorePayload} body
48
- */
49
- /**
50
- * @typedef UpdateJobParam
51
- * @property {InventoryPlatformModel.JobConfigDTO} body
52
- */
53
- declare class InventoryPlatformValidator {
54
- /** @returns {CreateJobParam} */
55
- static createJob(): CreateJobParam;
56
- /** @returns {DisableParam} */
57
- static disable(): DisableParam;
58
- /** @returns {GetConfigByCompanyParam} */
59
- static getConfigByCompany(): any;
60
- /** @returns {GetJobByCodeParam} */
61
- static getJobByCode(): GetJobByCodeParam;
62
- /** @returns {GetJobByCompanyAndIntegrationParam} */
63
- static getJobByCompanyAndIntegration(): GetJobByCompanyAndIntegrationParam;
64
- /** @returns {GetJobCodeMetricsParam} */
65
- static getJobCodeMetrics(): GetJobCodeMetricsParam;
66
- /** @returns {GetJobCodesByCompanyAndIntegrationParam} */
67
- static getJobCodesByCompanyAndIntegration(): GetJobCodesByCompanyAndIntegrationParam;
68
- /** @returns {GetJobConfigDefaultsParam} */
69
- static getJobConfigDefaults(): any;
70
- /** @returns {GetJobStepsParam} */
71
- static getJobSteps(): GetJobStepsParam;
72
- /** @returns {GetJobsByCompanyParam} */
73
- static getJobsByCompany(): GetJobsByCompanyParam;
74
- /** @returns {SuppressStoresParam} */
75
- static suppressStores(): SuppressStoresParam;
76
- /** @returns {UpdateJobParam} */
77
- static updateJob(): UpdateJobParam;
78
- }
79
- declare namespace InventoryPlatformValidator {
80
- export { CreateJobParam, DisableParam, GetConfigByCompanyParam, GetJobByCodeParam, GetJobByCompanyAndIntegrationParam, GetJobCodeMetricsParam, GetJobCodesByCompanyAndIntegrationParam, GetJobConfigDefaultsParam, GetJobStepsParam, GetJobsByCompanyParam, SuppressStoresParam, UpdateJobParam };
81
- }
82
- type CreateJobParam = {
83
- body: InventoryPlatformModel.JobConfigDTO;
84
- };
85
- type DisableParam = {
86
- /**
87
- * - IntegrationId
88
- */
89
- integrationId: string;
90
- };
91
- type GetJobByCodeParam = {
92
- /**
93
- * - Job Code
94
- */
95
- code: string;
96
- };
97
- type GetJobByCompanyAndIntegrationParam = {
98
- /**
99
- * - Integration Id
100
- */
101
- integrationId: string;
102
- /**
103
- * - Page Number
104
- */
105
- pageNo?: number;
106
- /**
107
- * - Page Size
108
- */
109
- pageSize?: number;
110
- };
111
- type GetJobCodeMetricsParam = {
112
- /**
113
- * - Code
114
- */
115
- code: string;
116
- /**
117
- * - Page Number
118
- */
119
- pageNo?: number;
120
- /**
121
- * - Page Size
122
- */
123
- pageSize?: number;
124
- /**
125
- * - Status
126
- */
127
- status?: string;
128
- /**
129
- * - From Date
130
- */
131
- date?: string;
132
- };
133
- type GetJobCodesByCompanyAndIntegrationParam = {
134
- /**
135
- * - Integration Id
136
- */
137
- integrationId: string;
138
- /**
139
- * - Page Number
140
- */
141
- pageNo?: number;
142
- /**
143
- * - Page Size
144
- */
145
- pageSize?: number;
146
- };
147
- type GetJobStepsParam = {
148
- /**
149
- * - Job Id
150
- */
151
- jobId: number;
152
- };
153
- type GetJobsByCompanyParam = {
154
- /**
155
- * - Page Number
156
- */
157
- pageNo?: number;
158
- /**
159
- * - Page Size
160
- */
161
- pageSize?: number;
162
- };
163
- type SuppressStoresParam = {
164
- body: InventoryPlatformModel.SuppressStorePayload;
165
- };
166
- type UpdateJobParam = {
167
- body: InventoryPlatformModel.JobConfigDTO;
168
- };
169
- type GetConfigByCompanyParam = any;
170
- type GetJobConfigDefaultsParam = any;
171
- import InventoryPlatformModel = require("./InventoryPlatformModel");
@@ -1,159 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- const InventoryPlatformModel = require("./InventoryPlatformModel");
4
-
5
- /**
6
- * @typedef CreateJobParam
7
- * @property {InventoryPlatformModel.JobConfigDTO} body
8
- */
9
-
10
- /**
11
- * @typedef DisableParam
12
- * @property {string} integrationId - IntegrationId
13
- */
14
-
15
- /** @typedef GetConfigByCompanyParam */
16
-
17
- /**
18
- * @typedef GetJobByCodeParam
19
- * @property {string} code - Job Code
20
- */
21
-
22
- /**
23
- * @typedef GetJobByCompanyAndIntegrationParam
24
- * @property {string} integrationId - Integration Id
25
- * @property {number} [pageNo] - Page Number
26
- * @property {number} [pageSize] - Page Size
27
- */
28
-
29
- /**
30
- * @typedef GetJobCodeMetricsParam
31
- * @property {string} code - Code
32
- * @property {number} [pageNo] - Page Number
33
- * @property {number} [pageSize] - Page Size
34
- * @property {string} [status] - Status
35
- * @property {string} [date] - From Date
36
- */
37
-
38
- /**
39
- * @typedef GetJobCodesByCompanyAndIntegrationParam
40
- * @property {string} integrationId - Integration Id
41
- * @property {number} [pageNo] - Page Number
42
- * @property {number} [pageSize] - Page Size
43
- */
44
-
45
- /** @typedef GetJobConfigDefaultsParam */
46
-
47
- /**
48
- * @typedef GetJobStepsParam
49
- * @property {number} jobId - Job Id
50
- */
51
-
52
- /**
53
- * @typedef GetJobsByCompanyParam
54
- * @property {number} [pageNo] - Page Number
55
- * @property {number} [pageSize] - Page Size
56
- */
57
-
58
- /**
59
- * @typedef SuppressStoresParam
60
- * @property {InventoryPlatformModel.SuppressStorePayload} body
61
- */
62
-
63
- /**
64
- * @typedef UpdateJobParam
65
- * @property {InventoryPlatformModel.JobConfigDTO} body
66
- */
67
-
68
- class InventoryPlatformValidator {
69
- /** @returns {CreateJobParam} */
70
- static createJob() {
71
- return Joi.object({
72
- body: InventoryPlatformModel.JobConfigDTO().required(),
73
- }).required();
74
- }
75
-
76
- /** @returns {DisableParam} */
77
- static disable() {
78
- return Joi.object({
79
- integrationId: Joi.string().allow("").required(),
80
- }).required();
81
- }
82
-
83
- /** @returns {GetConfigByCompanyParam} */
84
- static getConfigByCompany() {
85
- return Joi.object({}).required();
86
- }
87
-
88
- /** @returns {GetJobByCodeParam} */
89
- static getJobByCode() {
90
- return Joi.object({
91
- code: Joi.string().allow("").required(),
92
- }).required();
93
- }
94
-
95
- /** @returns {GetJobByCompanyAndIntegrationParam} */
96
- static getJobByCompanyAndIntegration() {
97
- return Joi.object({
98
- integrationId: Joi.string().allow("").required(),
99
- pageNo: Joi.number(),
100
- pageSize: Joi.number(),
101
- }).required();
102
- }
103
-
104
- /** @returns {GetJobCodeMetricsParam} */
105
- static getJobCodeMetrics() {
106
- return Joi.object({
107
- code: Joi.string().allow("").required(),
108
- pageNo: Joi.number(),
109
- pageSize: Joi.number(),
110
- status: Joi.string().allow(""),
111
- date: Joi.string().allow(""),
112
- }).required();
113
- }
114
-
115
- /** @returns {GetJobCodesByCompanyAndIntegrationParam} */
116
- static getJobCodesByCompanyAndIntegration() {
117
- return Joi.object({
118
- integrationId: Joi.string().allow("").required(),
119
- pageNo: Joi.number(),
120
- pageSize: Joi.number(),
121
- }).required();
122
- }
123
-
124
- /** @returns {GetJobConfigDefaultsParam} */
125
- static getJobConfigDefaults() {
126
- return Joi.object({}).required();
127
- }
128
-
129
- /** @returns {GetJobStepsParam} */
130
- static getJobSteps() {
131
- return Joi.object({
132
- jobId: Joi.number().required(),
133
- }).required();
134
- }
135
-
136
- /** @returns {GetJobsByCompanyParam} */
137
- static getJobsByCompany() {
138
- return Joi.object({
139
- pageNo: Joi.number(),
140
- pageSize: Joi.number(),
141
- }).required();
142
- }
143
-
144
- /** @returns {SuppressStoresParam} */
145
- static suppressStores() {
146
- return Joi.object({
147
- body: InventoryPlatformModel.SuppressStorePayload().required(),
148
- }).required();
149
- }
150
-
151
- /** @returns {UpdateJobParam} */
152
- static updateJob() {
153
- return Joi.object({
154
- body: InventoryPlatformModel.JobConfigDTO().required(),
155
- }).required();
156
- }
157
- }
158
-
159
- module.exports = InventoryPlatformValidator;