@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.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 (118) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +27 -1203
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +40 -1344
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +23 -941
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +4 -134
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -496
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +11 -505
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +46 -2106
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -311
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +4 -174
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +42 -1818
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -50
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/partner/OAuthClient.js +1 -0
  43. package/sdk/platform/Cart/CartPlatformModel.d.ts +7 -0
  44. package/sdk/platform/Cart/CartPlatformModel.js +3 -0
  45. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  46. package/sdk/platform/Catalog/CatalogPlatformModel.js +0 -3
  47. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
  48. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
  49. package/sdk/public/Configuration/ConfigurationPublicClient.js +4 -2
  50. package/sdk/public/Content/ContentPublicClient.js +4 -2
  51. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  52. package/sdk/public/Webhook/WebhookPublicClient.js +4 -2
  53. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  54. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  55. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  56. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  57. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  58. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  59. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  60. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  61. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  62. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  63. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  64. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  65. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  66. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  67. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  68. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  69. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  71. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  73. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  74. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  75. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  76. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  77. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  78. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  79. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  80. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  81. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  82. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  83. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  84. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  85. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  86. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  87. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  88. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  89. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  90. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  91. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  92. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  93. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  94. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  95. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  96. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  97. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  98. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  99. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  100. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  101. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  102. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  103. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  104. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  105. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  106. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  107. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  108. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  109. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  110. package/sdk/application/User/UserApplicationModel.js +0 -1382
  111. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  112. package/sdk/application/User/UserApplicationValidator.js +0 -573
  113. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  114. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  115. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  116. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  117. package/sdk/common/Clickstream.d.ts +0 -1
  118. package/sdk/common/Clickstream.js +0 -464
@@ -1,254 +0,0 @@
1
- export = LogisticApplicationValidator;
2
- /** @typedef GetAllCountriesParam */
3
- /**
4
- * @typedef GetCountriesParam
5
- * @property {boolean} [onboarding] - List countries which allowed for onboard
6
- * on Platform.
7
- * @property {number} [pageNo] - The page number to navigate through the given
8
- * set of results. Default value is 1.
9
- * @property {number} [pageSize] - The number of items to retrieve in each page.
10
- * Default value is 12.
11
- * @property {string} [q] - The number of items to retrieve in each page.
12
- * Default value is 12.
13
- */
14
- /**
15
- * @typedef GetCountryParam
16
- * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
17
- * the country (e.g., "IN" for India, "US" for the United States).
18
- */
19
- /**
20
- * @typedef GetLocalitiesParam
21
- * @property {string} localityType - Unique geographical division.
22
- * @property {string} [country] - Country name.
23
- * @property {string} [state] - State or the province.
24
- * @property {string} [city] - City.
25
- * @property {number} [pageNo] - The page number to navigate through the given
26
- * set of results. Default value is 1.
27
- * @property {number} [pageSize] - The number of items to retrieve in each page.
28
- * Default value is 12.
29
- * @property {string} [q] - This parameter is used to filter or search the records.
30
- */
31
- /**
32
- * @typedef GetLocalityParam
33
- * @property {string} localityType - Geographical division.
34
- * @property {string} localityValue - Name of the locality.
35
- * @property {string} [country] - Country name.
36
- * @property {string} [state] - State or the province.
37
- * @property {string} [city] - City.
38
- */
39
- /**
40
- * @typedef GetLocationsParam
41
- * @property {string} xApplicationId - Unique identifier for a particular sales channel.
42
- * @property {string} xApplicationData - Sales channel details.
43
- * @property {string} [country] - The country `iso2` code.
44
- * @property {string} [state] - State or the province.
45
- * @property {string} [city] - City.
46
- * @property {number} [pincode] - Pincode of the area.
47
- * @property {string} [sector] - Specific sector of the city.
48
- * @property {number} [pageNo] - The page number to navigate through the given
49
- * set of results. Default value is 1.
50
- * @property {number} [pageSize] - The number of items to retrieve in each page.
51
- * Default value is 12.
52
- */
53
- /**
54
- * @typedef GetOptimalLocationsParam
55
- * @property {LogisticApplicationModel.ReAssignStoreRequest} body
56
- */
57
- /**
58
- * @typedef GetPincodeCityParam
59
- * @property {string} pincode - Postal code or PIN code of the address area.
60
- */
61
- /**
62
- * @typedef GetPincodeZonesParam
63
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
64
- */
65
- /**
66
- * @typedef GetTatProductParam
67
- * @property {LogisticApplicationModel.TATViewRequest} body
68
- */
69
- /**
70
- * @typedef ValidateAddressParam
71
- * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
72
- * the country (e.g., "IN" for India, "US" for the United States).
73
- * @property {string} templateName - The type of address form.
74
- * @property {LogisticApplicationModel.ValidateAddressRequest} body
75
- */
76
- declare class LogisticApplicationValidator {
77
- /** @returns {GetAllCountriesParam} */
78
- static getAllCountries(): any;
79
- /** @returns {GetCountriesParam} */
80
- static getCountries(): GetCountriesParam;
81
- /** @returns {GetCountryParam} */
82
- static getCountry(): GetCountryParam;
83
- /** @returns {GetLocalitiesParam} */
84
- static getLocalities(): GetLocalitiesParam;
85
- /** @returns {GetLocalityParam} */
86
- static getLocality(): GetLocalityParam;
87
- /** @returns {GetLocationsParam} */
88
- static getLocations(): GetLocationsParam;
89
- /** @returns {GetOptimalLocationsParam} */
90
- static getOptimalLocations(): GetOptimalLocationsParam;
91
- /** @returns {GetPincodeCityParam} */
92
- static getPincodeCity(): GetPincodeCityParam;
93
- /** @returns {GetPincodeZonesParam} */
94
- static getPincodeZones(): GetPincodeZonesParam;
95
- /** @returns {GetTatProductParam} */
96
- static getTatProduct(): GetTatProductParam;
97
- /** @returns {ValidateAddressParam} */
98
- static validateAddress(): ValidateAddressParam;
99
- }
100
- declare namespace LogisticApplicationValidator {
101
- export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
102
- }
103
- type GetCountriesParam = {
104
- /**
105
- * - List countries which allowed for onboard
106
- * on Platform.
107
- */
108
- onboarding?: boolean;
109
- /**
110
- * - The page number to navigate through the given
111
- * set of results. Default value is 1.
112
- */
113
- pageNo?: number;
114
- /**
115
- * - The number of items to retrieve in each page.
116
- * Default value is 12.
117
- */
118
- pageSize?: number;
119
- /**
120
- * - The number of items to retrieve in each page.
121
- * Default value is 12.
122
- */
123
- q?: string;
124
- };
125
- type GetCountryParam = {
126
- /**
127
- * - The ISO 3166-1 alpha-2 code representing
128
- * the country (e.g., "IN" for India, "US" for the United States).
129
- */
130
- countryIsoCode: string;
131
- };
132
- type GetLocalitiesParam = {
133
- /**
134
- * - Unique geographical division.
135
- */
136
- localityType: string;
137
- /**
138
- * - Country name.
139
- */
140
- country?: string;
141
- /**
142
- * - State or the province.
143
- */
144
- state?: string;
145
- /**
146
- * - City.
147
- */
148
- city?: string;
149
- /**
150
- * - The page number to navigate through the given
151
- * set of results. Default value is 1.
152
- */
153
- pageNo?: number;
154
- /**
155
- * - The number of items to retrieve in each page.
156
- * Default value is 12.
157
- */
158
- pageSize?: number;
159
- /**
160
- * - This parameter is used to filter or search the records.
161
- */
162
- q?: string;
163
- };
164
- type GetLocalityParam = {
165
- /**
166
- * - Geographical division.
167
- */
168
- localityType: string;
169
- /**
170
- * - Name of the locality.
171
- */
172
- localityValue: string;
173
- /**
174
- * - Country name.
175
- */
176
- country?: string;
177
- /**
178
- * - State or the province.
179
- */
180
- state?: string;
181
- /**
182
- * - City.
183
- */
184
- city?: string;
185
- };
186
- type GetLocationsParam = {
187
- /**
188
- * - Unique identifier for a particular sales channel.
189
- */
190
- xApplicationId: string;
191
- /**
192
- * - Sales channel details.
193
- */
194
- xApplicationData: string;
195
- /**
196
- * - The country `iso2` code.
197
- */
198
- country?: string;
199
- /**
200
- * - State or the province.
201
- */
202
- state?: string;
203
- /**
204
- * - City.
205
- */
206
- city?: string;
207
- /**
208
- * - Pincode of the area.
209
- */
210
- pincode?: number;
211
- /**
212
- * - Specific sector of the city.
213
- */
214
- sector?: string;
215
- /**
216
- * - The page number to navigate through the given
217
- * set of results. Default value is 1.
218
- */
219
- pageNo?: number;
220
- /**
221
- * - The number of items to retrieve in each page.
222
- * Default value is 12.
223
- */
224
- pageSize?: number;
225
- };
226
- type GetOptimalLocationsParam = {
227
- body: LogisticApplicationModel.ReAssignStoreRequest;
228
- };
229
- type GetPincodeCityParam = {
230
- /**
231
- * - Postal code or PIN code of the address area.
232
- */
233
- pincode: string;
234
- };
235
- type GetPincodeZonesParam = {
236
- body: LogisticApplicationModel.GetZoneFromPincodeViewRequest;
237
- };
238
- type GetTatProductParam = {
239
- body: LogisticApplicationModel.TATViewRequest;
240
- };
241
- type ValidateAddressParam = {
242
- /**
243
- * - The ISO 3166-1 alpha-2 code representing
244
- * the country (e.g., "IN" for India, "US" for the United States).
245
- */
246
- countryIsoCode: string;
247
- /**
248
- * - The type of address form.
249
- */
250
- templateName: string;
251
- body: LogisticApplicationModel.ValidateAddressRequest;
252
- };
253
- type GetAllCountriesParam = any;
254
- import LogisticApplicationModel = require("./LogisticApplicationModel");
@@ -1,190 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- const LogisticApplicationModel = require("./LogisticApplicationModel");
4
-
5
- /** @typedef GetAllCountriesParam */
6
-
7
- /**
8
- * @typedef GetCountriesParam
9
- * @property {boolean} [onboarding] - List countries which allowed for onboard
10
- * on Platform.
11
- * @property {number} [pageNo] - The page number to navigate through the given
12
- * set of results. Default value is 1.
13
- * @property {number} [pageSize] - The number of items to retrieve in each page.
14
- * Default value is 12.
15
- * @property {string} [q] - The number of items to retrieve in each page.
16
- * Default value is 12.
17
- */
18
-
19
- /**
20
- * @typedef GetCountryParam
21
- * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
22
- * the country (e.g., "IN" for India, "US" for the United States).
23
- */
24
-
25
- /**
26
- * @typedef GetLocalitiesParam
27
- * @property {string} localityType - Unique geographical division.
28
- * @property {string} [country] - Country name.
29
- * @property {string} [state] - State or the province.
30
- * @property {string} [city] - City.
31
- * @property {number} [pageNo] - The page number to navigate through the given
32
- * set of results. Default value is 1.
33
- * @property {number} [pageSize] - The number of items to retrieve in each page.
34
- * Default value is 12.
35
- * @property {string} [q] - This parameter is used to filter or search the records.
36
- */
37
-
38
- /**
39
- * @typedef GetLocalityParam
40
- * @property {string} localityType - Geographical division.
41
- * @property {string} localityValue - Name of the locality.
42
- * @property {string} [country] - Country name.
43
- * @property {string} [state] - State or the province.
44
- * @property {string} [city] - City.
45
- */
46
-
47
- /**
48
- * @typedef GetLocationsParam
49
- * @property {string} xApplicationId - Unique identifier for a particular sales channel.
50
- * @property {string} xApplicationData - Sales channel details.
51
- * @property {string} [country] - The country `iso2` code.
52
- * @property {string} [state] - State or the province.
53
- * @property {string} [city] - City.
54
- * @property {number} [pincode] - Pincode of the area.
55
- * @property {string} [sector] - Specific sector of the city.
56
- * @property {number} [pageNo] - The page number to navigate through the given
57
- * set of results. Default value is 1.
58
- * @property {number} [pageSize] - The number of items to retrieve in each page.
59
- * Default value is 12.
60
- */
61
-
62
- /**
63
- * @typedef GetOptimalLocationsParam
64
- * @property {LogisticApplicationModel.ReAssignStoreRequest} body
65
- */
66
-
67
- /**
68
- * @typedef GetPincodeCityParam
69
- * @property {string} pincode - Postal code or PIN code of the address area.
70
- */
71
-
72
- /**
73
- * @typedef GetPincodeZonesParam
74
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
75
- */
76
-
77
- /**
78
- * @typedef GetTatProductParam
79
- * @property {LogisticApplicationModel.TATViewRequest} body
80
- */
81
-
82
- /**
83
- * @typedef ValidateAddressParam
84
- * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
85
- * the country (e.g., "IN" for India, "US" for the United States).
86
- * @property {string} templateName - The type of address form.
87
- * @property {LogisticApplicationModel.ValidateAddressRequest} body
88
- */
89
-
90
- class LogisticApplicationValidator {
91
- /** @returns {GetAllCountriesParam} */
92
- static getAllCountries() {
93
- return Joi.object({});
94
- }
95
-
96
- /** @returns {GetCountriesParam} */
97
- static getCountries() {
98
- return Joi.object({
99
- onboarding: Joi.boolean(),
100
- pageNo: Joi.number(),
101
- pageSize: Joi.number(),
102
- q: Joi.string().allow(""),
103
- });
104
- }
105
-
106
- /** @returns {GetCountryParam} */
107
- static getCountry() {
108
- return Joi.object({
109
- countryIsoCode: Joi.string().allow("").required(),
110
- }).required();
111
- }
112
-
113
- /** @returns {GetLocalitiesParam} */
114
- static getLocalities() {
115
- return Joi.object({
116
- localityType: Joi.string().allow("").required(),
117
- country: Joi.string().allow(""),
118
- state: Joi.string().allow(""),
119
- city: Joi.string().allow(""),
120
- pageNo: Joi.number(),
121
- pageSize: Joi.number(),
122
- q: Joi.string().allow(""),
123
- }).required();
124
- }
125
-
126
- /** @returns {GetLocalityParam} */
127
- static getLocality() {
128
- return Joi.object({
129
- localityType: Joi.string().allow("").required(),
130
- localityValue: Joi.string().allow("").required(),
131
- country: Joi.string().allow(""),
132
- state: Joi.string().allow(""),
133
- city: Joi.string().allow(""),
134
- }).required();
135
- }
136
-
137
- /** @returns {GetLocationsParam} */
138
- static getLocations() {
139
- return Joi.object({
140
- xApplicationId: Joi.string().allow("").required(),
141
- xApplicationData: Joi.string().allow("").required(),
142
- country: Joi.string().allow(""),
143
- state: Joi.string().allow(""),
144
- city: Joi.string().allow(""),
145
- pincode: Joi.number(),
146
- sector: Joi.string().allow(""),
147
- pageNo: Joi.number(),
148
- pageSize: Joi.number(),
149
- }).required();
150
- }
151
-
152
- /** @returns {GetOptimalLocationsParam} */
153
- static getOptimalLocations() {
154
- return Joi.object({
155
- body: LogisticApplicationModel.ReAssignStoreRequest().required(),
156
- }).required();
157
- }
158
-
159
- /** @returns {GetPincodeCityParam} */
160
- static getPincodeCity() {
161
- return Joi.object({
162
- pincode: Joi.string().allow("").required(),
163
- }).required();
164
- }
165
-
166
- /** @returns {GetPincodeZonesParam} */
167
- static getPincodeZones() {
168
- return Joi.object({
169
- body: LogisticApplicationModel.GetZoneFromPincodeViewRequest().required(),
170
- }).required();
171
- }
172
-
173
- /** @returns {GetTatProductParam} */
174
- static getTatProduct() {
175
- return Joi.object({
176
- body: LogisticApplicationModel.TATViewRequest().required(),
177
- }).required();
178
- }
179
-
180
- /** @returns {ValidateAddressParam} */
181
- static validateAddress() {
182
- return Joi.object({
183
- countryIsoCode: Joi.string().allow("").required(),
184
- templateName: Joi.string().allow("").required(),
185
- body: LogisticApplicationModel.ValidateAddressRequest().required(),
186
- }).required();
187
- }
188
- }
189
-
190
- module.exports = LogisticApplicationValidator;