@gofynd/fdk-client-javascript 1.0.0 → 1.0.2

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 (156) hide show
  1. package/documentation/application/CART.md +251 -251
  2. package/documentation/application/CATALOG.md +393 -393
  3. package/documentation/application/CONTENT.md +15 -1
  4. package/documentation/application/ORDER.md +268 -268
  5. package/documentation/application/PAYMENT.md +249 -249
  6. package/documentation/application/POSCART.md +297 -297
  7. package/documentation/platform/CART.md +499 -499
  8. package/documentation/platform/CATALOG.md +3497 -3097
  9. package/documentation/platform/COMPANYPROFILE.md +207 -207
  10. package/documentation/platform/CONTENT.md +123 -1
  11. package/documentation/platform/ORDER.md +1518 -1324
  12. package/documentation/platform/PARTNER.md +7 -7
  13. package/documentation/platform/PAYMENT.md +96 -96
  14. package/index.js +7 -1
  15. package/package.json +1 -1
  16. package/sdk/application/ApplicationConfig.js +1 -1
  17. package/sdk/application/Cart/CartApplicationClient.js +865 -52
  18. package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
  19. package/sdk/application/Cart/CartApplicationModel.js +335 -335
  20. package/sdk/application/Cart/CartApplicationValidator.js +1 -0
  21. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
  22. package/sdk/application/Catalog/CatalogApplicationClient.js +1034 -60
  23. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +19 -19
  24. package/sdk/application/Catalog/CatalogApplicationModel.js +532 -532
  25. package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
  26. package/sdk/application/Common/CommonApplicationClient.js +66 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +1 -0
  28. package/sdk/application/Communication/CommunicationApplicationClient.js +108 -6
  29. package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
  30. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
  31. package/sdk/application/Configuration/ConfigurationApplicationClient.js +558 -32
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  33. package/sdk/application/Content/ContentApplicationClient.js +621 -38
  34. package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
  35. package/sdk/application/Content/ContentApplicationModel.js +11 -1
  36. package/sdk/application/Content/ContentApplicationValidator.js +1 -0
  37. package/sdk/application/FileStorage/FileStorageApplicationClient.js +101 -6
  38. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
  39. package/sdk/application/Lead/LeadApplicationClient.js +229 -14
  40. package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
  41. package/sdk/application/Logistic/LogisticApplicationClient.js +134 -8
  42. package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
  44. package/sdk/application/Order/OrderApplicationClient.js +403 -24
  45. package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
  46. package/sdk/application/Order/OrderApplicationModel.js +334 -334
  47. package/sdk/application/Order/OrderApplicationValidator.js +1 -0
  48. package/sdk/application/Payment/PaymentApplicationClient.js +1381 -78
  49. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2 -2
  50. package/sdk/application/Payment/PaymentApplicationModel.js +350 -350
  51. package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
  52. package/sdk/application/PosCart/PosCartApplicationClient.js +914 -54
  53. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
  54. package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
  55. package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
  56. package/sdk/application/Rewards/RewardsApplicationClient.js +235 -14
  57. package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
  58. package/sdk/application/Share/ShareApplicationClient.js +226 -14
  59. package/sdk/application/Share/ShareApplicationValidator.js +1 -0
  60. package/sdk/application/Theme/ThemeApplicationClient.js +130 -8
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
  62. package/sdk/application/User/UserApplicationClient.js +1133 -70
  63. package/sdk/application/User/UserApplicationValidator.js +1 -0
  64. package/sdk/common/AxiosHelper.js +1 -1
  65. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
  66. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +287 -16
  67. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  68. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +153 -8
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +141 -8
  71. package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
  72. package/sdk/platform/Billing/BillingPlatformClient.js +429 -24
  73. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
  74. package/sdk/platform/Cart/CartPlatformApplicationClient.js +617 -34
  75. package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
  76. package/sdk/platform/Cart/CartPlatformModel.js +617 -617
  77. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +191 -138
  78. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2202 -302
  79. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +11 -11
  80. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +45 -45
  81. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +344 -226
  82. package/sdk/platform/Catalog/CatalogPlatformClient.js +3282 -488
  83. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +110 -100
  84. package/sdk/platform/Catalog/CatalogPlatformModel.js +2073 -1795
  85. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +23 -21
  86. package/sdk/platform/Catalog/CatalogPlatformValidator.js +103 -84
  87. package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
  88. package/sdk/platform/Common/CommonPlatformClient.js +73 -4
  89. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
  90. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1499 -80
  91. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  92. package/sdk/platform/Communication/CommunicationPlatformClient.js +41 -2
  93. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
  94. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +486 -26
  95. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +9 -9
  96. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +274 -274
  97. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
  98. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1022 -56
  99. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  100. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +693 -36
  101. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
  102. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2446 -140
  103. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
  104. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
  105. package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
  106. package/sdk/platform/Content/ContentPlatformModel.js +43 -1
  107. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
  108. package/sdk/platform/Discount/DiscountPlatformClient.js +400 -22
  109. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
  110. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +148 -8
  111. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
  112. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +214 -12
  113. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
  114. package/sdk/platform/Inventory/InventoryPlatformClient.js +449 -24
  115. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
  116. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +447 -26
  117. package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
  118. package/sdk/platform/Lead/LeadPlatformClient.js +384 -22
  119. package/sdk/platform/OAuthClient.js +8 -8
  120. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
  121. package/sdk/platform/Order/OrderPlatformApplicationClient.js +125 -6
  122. package/sdk/platform/Order/OrderPlatformClient.d.ts +108 -47
  123. package/sdk/platform/Order/OrderPlatformClient.js +1641 -100
  124. package/sdk/platform/Order/OrderPlatformModel.d.ts +69 -58
  125. package/sdk/platform/Order/OrderPlatformModel.js +1485 -1493
  126. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
  127. package/sdk/platform/Order/OrderPlatformValidator.js +15 -4
  128. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  129. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +74 -4
  130. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  131. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  132. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
  133. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +418 -22
  134. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
  135. package/sdk/platform/Payment/PaymentPlatformClient.js +374 -20
  136. package/sdk/platform/Payment/PaymentPlatformModel.js +139 -139
  137. package/sdk/platform/PlatformApplicationClient.d.ts +2973 -2827
  138. package/sdk/platform/PlatformApplicationClient.js +3461 -3263
  139. package/sdk/platform/PlatformClient.d.ts +2973 -2827
  140. package/sdk/platform/PlatformClient.js +3461 -3263
  141. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
  142. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +449 -26
  143. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
  144. package/sdk/platform/Share/SharePlatformApplicationClient.js +139 -8
  145. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
  146. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +816 -48
  147. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
  148. package/sdk/platform/User/UserPlatformApplicationClient.js +417 -24
  149. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
  150. package/sdk/platform/Webhook/WebhookPlatformClient.js +229 -12
  151. package/sdk/public/Configuration/ConfigurationPublicClient.js +72 -4
  152. package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
  153. package/sdk/public/Inventory/InventoryPublicClient.js +210 -12
  154. package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
  155. package/sdk/public/Webhook/WebhookPublicClient.js +74 -4
  156. package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
@@ -6,13 +6,14 @@ declare class Communication {
6
6
  * @param {Object} arg - Arg object.
7
7
  * @param {number} [arg.pageNo] -
8
8
  * @param {number} [arg.pageSize] -
9
+ * @returns {Promise<SystemNotifications>} - Success response
9
10
  * @summary: Get system notifications
10
11
  * @description: Get system notifications
11
12
  */
12
13
  getSystemNotifications({ pageNo, pageSize }?: {
13
14
  pageNo?: number;
14
15
  pageSize?: number;
15
- }): Promise<any>;
16
+ }): Promise<SystemNotifications>;
16
17
  /**
17
18
  * @param {Object} arg - Arg object.
18
19
  * @param {number} [arg.pageSize] -
@@ -2,6 +2,9 @@ const Paginator = require("../../common/Paginator");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const PlatformAPIClient = require("../PlatformAPIClient");
4
4
  const CommunicationValidator = require("./CommunicationPlatformValidator");
5
+ const CommunicationModel = require("./CommunicationPlatformModel");
6
+ const { Logger } = require("./../../common/Logger");
7
+
5
8
  class Communication {
6
9
  constructor(config) {
7
10
  this.config = config;
@@ -11,10 +14,11 @@ class Communication {
11
14
  * @param {Object} arg - Arg object.
12
15
  * @param {number} [arg.pageNo] -
13
16
  * @param {number} [arg.pageSize] -
17
+ * @returns {Promise<SystemNotifications>} - Success response
14
18
  * @summary: Get system notifications
15
19
  * @description: Get system notifications
16
20
  */
17
- getSystemNotifications({ pageNo, pageSize } = {}) {
21
+ async getSystemNotifications({ pageNo, pageSize } = {}) {
18
22
  const { error } = CommunicationValidator.getSystemNotifications().validate(
19
23
  {
20
24
  pageNo,
@@ -26,13 +30,31 @@ class Communication {
26
30
  return Promise.reject(new FDKClientValidationError(error));
27
31
  }
28
32
 
33
+ // Showing warrnings if extra unknown parameters are found
34
+ const {
35
+ error: warrning,
36
+ } = CommunicationValidator.getSystemNotifications().validate(
37
+ {
38
+ pageNo,
39
+ pageSize,
40
+ },
41
+ { abortEarly: false, allowUnknown: false }
42
+ );
43
+ if (warrning) {
44
+ Logger({
45
+ level: "WARN",
46
+ message: "Parameter Validation warrnings for getSystemNotifications",
47
+ });
48
+ Logger({ level: "WARN", message: warrning });
49
+ }
50
+
29
51
  const query_params = {};
30
52
  query_params["page_no"] = pageNo;
31
53
  query_params["page_size"] = pageSize;
32
54
 
33
55
  const xHeaders = {};
34
56
 
35
- return PlatformAPIClient.execute(
57
+ const response = await PlatformAPIClient.execute(
36
58
  this.config,
37
59
  "get",
38
60
  `/service/platform/communication/v1.0/company/${this.config.companyId}/notification/system-notifications/`,
@@ -40,6 +62,23 @@ class Communication {
40
62
  undefined,
41
63
  xHeaders
42
64
  );
65
+
66
+ const {
67
+ error: res_error,
68
+ } = CommunicationModel.SystemNotifications().validate(response, {
69
+ abortEarly: false,
70
+ allowUnknown: false,
71
+ });
72
+
73
+ if (res_error) {
74
+ Logger({
75
+ level: "WARN",
76
+ message: "Response Validation Warnnings for getSystemNotifications",
77
+ });
78
+ Logger({ level: "WARN", message: res_error });
79
+ }
80
+
81
+ return response;
43
82
  }
44
83
 
45
84
  /**
@@ -4,54 +4,60 @@ declare class CompanyProfile {
4
4
  config: any;
5
5
  /**
6
6
  * @param {Object} arg - Arg object.
7
+ * @returns {Promise<GetCompanyProfileSerializerResponse>} - Success response
7
8
  * @summary: Get company profile
8
9
  * @description: This API allows to view the company profile of the seller account.
9
10
  */
10
- cbsOnboardGet({}?: any): Promise<any>;
11
+ cbsOnboardGet({}?: any): Promise<GetCompanyProfileSerializerResponse>;
11
12
  /**
12
13
  * @param {Object} arg - Arg object.
13
14
  * @param {UpdateCompany} arg.body
15
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
14
16
  * @summary: Edit company profile
15
17
  * @description: This API allows to edit the company profile of the seller account.
16
18
  */
17
19
  updateCompany({ body }?: {
18
20
  body: UpdateCompany;
19
- }): Promise<any>;
21
+ }): Promise<ProfileSuccessResponse>;
20
22
  /**
21
23
  * @param {Object} arg - Arg object.
24
+ * @returns {Promise<MetricsSerializer>} - Success response
22
25
  * @summary: Get company metrics
23
26
  * @description: This API allows to view the company metrics, i.e. the status of its brand and stores. Also its allows to view the number of products, company documents & store documents which are verified and unverified.
24
27
  */
25
- getCompanyMetrics({}?: any): Promise<any>;
28
+ getCompanyMetrics({}?: any): Promise<MetricsSerializer>;
26
29
  /**
27
30
  * @param {Object} arg - Arg object.
28
31
  * @param {string} arg.brandId - Id of the brand to be viewed.
32
+ * @returns {Promise<GetBrandResponseSerializer>} - Success response
29
33
  * @summary: Get a single brand.
30
34
  * @description: This API helps to get data associated to a particular brand.
31
35
  */
32
36
  getBrand({ brandId }?: {
33
37
  brandId: string;
34
- }): Promise<any>;
38
+ }): Promise<GetBrandResponseSerializer>;
35
39
  /**
36
40
  * @param {Object} arg - Arg object.
37
41
  * @param {string} arg.brandId - Id of the brand to be viewed.
38
42
  * @param {CreateUpdateBrandRequestSerializer} arg.body
43
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
39
44
  * @summary: Edit a brand.
40
45
  * @description: This API allows to edit meta of a brand.
41
46
  */
42
47
  editBrand({ brandId, body }?: {
43
48
  brandId: string;
44
49
  body: CreateUpdateBrandRequestSerializer;
45
- }): Promise<any>;
50
+ }): Promise<ProfileSuccessResponse>;
46
51
  /**
47
52
  * @param {Object} arg - Arg object.
48
53
  * @param {CreateUpdateBrandRequestSerializer} arg.body
54
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
49
55
  * @summary: Create a Brand.
50
56
  * @description: This API allows to create a brand associated to a company.
51
57
  */
52
58
  createBrand({ body }?: {
53
59
  body: CreateUpdateBrandRequestSerializer;
54
- }): Promise<any>;
60
+ }): Promise<ProfileSuccessResponse>;
55
61
  /**
56
62
  * @param {Object} arg - Arg object.
57
63
  * @param {number} [arg.pageNo] - The page number to navigate through the
@@ -59,6 +65,7 @@ declare class CompanyProfile {
59
65
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
60
66
  * page. Default is 10.
61
67
  * @param {string} [arg.q] - Search term for name.
68
+ * @returns {Promise<CompanyBrandListSerializer>} - Success response
62
69
  * @summary: Get brands associated to a company
63
70
  * @description: This API helps to get view brands associated to a particular company.
64
71
  */
@@ -66,7 +73,7 @@ declare class CompanyProfile {
66
73
  pageNo?: number;
67
74
  pageSize?: number;
68
75
  q?: string;
69
- }): Promise<any>;
76
+ }): Promise<CompanyBrandListSerializer>;
70
77
  /**
71
78
  * @param {Object} arg - Arg object.
72
79
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -82,12 +89,13 @@ declare class CompanyProfile {
82
89
  /**
83
90
  * @param {Object} arg - Arg object.
84
91
  * @param {CompanyBrandPostRequestSerializer} arg.body
92
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
85
93
  * @summary: Create a company brand mapping.
86
94
  * @description: This API allows to create a company brand mapping, for a already existing brand in the system.
87
95
  */
88
96
  createCompanyBrandMapping({ body }?: {
89
97
  body: CompanyBrandPostRequestSerializer;
90
- }): Promise<any>;
98
+ }): Promise<ProfileSuccessResponse>;
91
99
  /**
92
100
  * @param {Object} arg - Arg object.
93
101
  * @param {string} [arg.storeType] - Helps to sort the location list on the
@@ -100,17 +108,18 @@ declare class CompanyProfile {
100
108
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
101
109
  * page. Default is 10.
102
110
  * @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
111
+ * @returns {Promise<LocationListSerializer>} - Success response
103
112
  * @summary: Get list of locations
104
113
  * @description: This API allows to view all the locations associated to a company.
105
114
  */
106
- getLocations({ storeType, q, stage, pageNo, pageSize, locationIds }?: {
115
+ getLocations({ storeType, q, stage, pageNo, pageSize, locationIds, }?: {
107
116
  storeType?: string;
108
117
  q?: string;
109
118
  stage?: string;
110
119
  pageNo?: number;
111
120
  pageSize?: number;
112
121
  locationIds?: number[];
113
- }): Promise<any>;
122
+ }): Promise<LocationListSerializer>;
114
123
  /**
115
124
  * @param {Object} arg - Arg object.
116
125
  * @param {string} [arg.storeType] - Helps to sort the location list on the
@@ -134,40 +143,44 @@ declare class CompanyProfile {
134
143
  /**
135
144
  * @param {Object} arg - Arg object.
136
145
  * @param {LocationSerializer} arg.body
146
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
137
147
  * @summary: Create a location associated to a company.
138
148
  * @description: This API allows to edit a location associated to a company.
139
149
  */
140
150
  createLocation({ body }?: {
141
151
  body: LocationSerializer;
142
- }): Promise<any>;
152
+ }): Promise<ProfileSuccessResponse>;
143
153
  /**
144
154
  * @param {Object} arg - Arg object.
145
155
  * @param {string} arg.locationId - Id of the location which you want to view.
156
+ * @returns {Promise<GetLocationSerializer>} - Success response
146
157
  * @summary: Get details of a specific location.
147
158
  * @description: This API helps to get data associated to a specific location.
148
159
  */
149
160
  getLocationDetail({ locationId }?: {
150
161
  locationId: string;
151
- }): Promise<any>;
162
+ }): Promise<GetLocationSerializer>;
152
163
  /**
153
164
  * @param {Object} arg - Arg object.
154
165
  * @param {string} arg.locationId - Id of the location which you want to edit.
155
166
  * @param {LocationSerializer} arg.body
167
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
156
168
  * @summary: Edit a location asscoiated to a company.
157
169
  * @description: This API allows to edit a location associated to a company.
158
170
  */
159
171
  updateLocation({ locationId, body }?: {
160
172
  locationId: string;
161
173
  body: LocationSerializer;
162
- }): Promise<any>;
174
+ }): Promise<ProfileSuccessResponse>;
163
175
  /**
164
176
  * @param {Object} arg - Arg object.
165
177
  * @param {BulkLocationSerializer} arg.body
178
+ * @returns {Promise<ProfileSuccessResponse>} - Success response
166
179
  * @summary: Create a location asscoiated to a company in bulk.
167
180
  * @description: This API allows to create a location associated to a company.
168
181
  */
169
182
  createLocationBulk({ body }?: {
170
183
  body: BulkLocationSerializer;
171
- }): Promise<any>;
184
+ }): Promise<ProfileSuccessResponse>;
172
185
  }
173
186
  import Paginator = require("../../common/Paginator");