@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +60 -1185
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1293
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +5 -89
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +77 -914
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -12
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +22 -125
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +32 -202
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +86 -472
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +45 -1815
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +14 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -1,1675 +0,0 @@
|
|
|
1
|
-
export = LogisticApplicationModel;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef GetStoreResponse
|
|
4
|
-
* @property {StoreItemResponse[]} [items] - List of locations, each containing
|
|
5
|
-
* detailed information about individual location.
|
|
6
|
-
* @property {Page} [page]
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @typedef StoreItemResponse
|
|
10
|
-
* @property {number} [id] - A unique identifier for the location.
|
|
11
|
-
* @property {string} [store_type] - The type of store, indicating the nature of
|
|
12
|
-
* the store, such as retail or warehouse.
|
|
13
|
-
* @property {string} [fulfillment_type] - The method of fulfillment used by the
|
|
14
|
-
* store, such as shipping, pickup, or delivery.
|
|
15
|
-
* @property {number} [processing_time] - The average time taken by the store to
|
|
16
|
-
* process orders, measured in minutes.
|
|
17
|
-
* @property {string[]} [tags] - List of tags associated with the store for
|
|
18
|
-
* categorization and search purposes.
|
|
19
|
-
* @property {number} [company_id] - The unique identifier of the company that
|
|
20
|
-
* owns the store.
|
|
21
|
-
* @property {number} [latitude] - The geographical latitude coordinate of the
|
|
22
|
-
* store location.
|
|
23
|
-
* @property {number} [longitude] - The geographical longitude coordinate of the
|
|
24
|
-
* store location.
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @typedef ValidateAddressRequest
|
|
28
|
-
* @property {string} [address] - Complete address, combining address line 1,
|
|
29
|
-
* address line 2, area, landmark, sector, city, state, and pincode.
|
|
30
|
-
* @property {string} [address1] - First line of the address, typically
|
|
31
|
-
* containing street or building information.
|
|
32
|
-
* @property {string} [address2] - Second line of the address, which can be used
|
|
33
|
-
* for additional address details if needed.
|
|
34
|
-
* @property {string} [area] - Locality or area associated with the address.
|
|
35
|
-
* @property {string} [landmark] - Prominent nearby landmark that aids in
|
|
36
|
-
* locating the address.
|
|
37
|
-
* @property {string} [pincode] - Postal code or PIN code of the address area.
|
|
38
|
-
* @property {string} [sector] - Specifies the sector or district of the address
|
|
39
|
-
* if applicable.
|
|
40
|
-
* @property {string} [city] - Denote the city or municipality of the address.
|
|
41
|
-
* @property {string} [state] - Indicates the state or province of the address.
|
|
42
|
-
* @property {string} [name] - Recipient's name associated with the address.
|
|
43
|
-
* @property {string} [phone] - Recipient's contact phone number.
|
|
44
|
-
* @property {string} [email] - Recipient's email address.
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* @typedef PincodeParentsResponse
|
|
48
|
-
* @property {string} [sub_type] - Specific type of locality hierarchy the
|
|
49
|
-
* pincode belongs to (e.g., city, state, country).
|
|
50
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
51
|
-
* data, which may be more descriptive or formatted differently.
|
|
52
|
-
* @property {string} [name] - The actual geographical data, such as country
|
|
53
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
54
|
-
* (Dubai), or local sectors (Deira).
|
|
55
|
-
* @property {string} [uid] - Unique identifier for the locality.
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* @typedef PincodeMetaResponse
|
|
59
|
-
* @property {string} [zone] - Geographical region to which the pincode belongs,
|
|
60
|
-
* often used to categorize or group pincodes for regional management or
|
|
61
|
-
* postal purposes.
|
|
62
|
-
* @property {number} [internal_zone_id] - A unique identifier used within the
|
|
63
|
-
* system to track or reference the specific zone associated with the pincode.
|
|
64
|
-
*/
|
|
65
|
-
/**
|
|
66
|
-
* @typedef PincodeErrorSchemaResponse
|
|
67
|
-
* @property {string} [message] - A user-readable description of the error,
|
|
68
|
-
* explaining what went wrong.
|
|
69
|
-
* @property {string} [value] - A specific code or identifier related to the
|
|
70
|
-
* error, used for referencing or categorizing the error.
|
|
71
|
-
* @property {string} [type] - The classification of the error, indicating the
|
|
72
|
-
* kind of issue.
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
* @typedef CountryMetaResponse
|
|
76
|
-
* @property {string} [country_code] - The ISO 3166-1 alpha-2 code representing
|
|
77
|
-
* the country (e.g., "IN" for India, "US" for the United States).
|
|
78
|
-
* @property {string} [isd_code] - The International Subscriber Dialing (ISD)
|
|
79
|
-
* code, also known as the country dialing code, used for making international
|
|
80
|
-
* phone calls to the country (e.g., "+91" for India, "+1" for the United States).
|
|
81
|
-
*/
|
|
82
|
-
/**
|
|
83
|
-
* @typedef PincodeLatLongData
|
|
84
|
-
* @property {string} [type] - Specifies the type of geographical feature or
|
|
85
|
-
* data, typically "Point" for coordinates in geographic data systems.
|
|
86
|
-
* @property {string[]} [coordinates] - Contains the latitude and longitude
|
|
87
|
-
* values representing the precise location. The format is usually an array
|
|
88
|
-
* with two values: [longitude, latitude].
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* @typedef PincodeDataResponse
|
|
92
|
-
* @property {PincodeParentsResponse[]} [parents] - List of object representing
|
|
93
|
-
* a collection of geographical locations, each associated with specific
|
|
94
|
-
* hierarchical data such as cities, states, or countries.
|
|
95
|
-
* @property {PincodeMetaResponse} [meta]
|
|
96
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
97
|
-
* data, which may be more descriptive or formatted differently.
|
|
98
|
-
* @property {PincodeErrorSchemaResponse} error
|
|
99
|
-
* @property {CountryMetaResponse} [meta_code]
|
|
100
|
-
* @property {PincodeLatLongData} [lat_long]
|
|
101
|
-
* @property {string} [sub_type] - Indicates the specific type of locality
|
|
102
|
-
* hierarchy the pincode belongs to (e.g., city, state, country).
|
|
103
|
-
* @property {string} [name] - The actual geographical data, such as country
|
|
104
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
105
|
-
* (Dubai), or local sectors (Deira).
|
|
106
|
-
* @property {string} [uid] - This field stands for "Unique Identifier," a
|
|
107
|
-
* unique value assigned to each instance to ensure differentiation and reference.
|
|
108
|
-
*/
|
|
109
|
-
/**
|
|
110
|
-
* @typedef PincodeApiResponse
|
|
111
|
-
* @property {boolean} success - Indicates whether the API request was
|
|
112
|
-
* successful (true) or failed (false).
|
|
113
|
-
* @property {PincodeDataResponse[]} [data] - Contains the actual response data
|
|
114
|
-
* when the request is successful, providing details like pincode information
|
|
115
|
-
* or related data.
|
|
116
|
-
* @property {PincodeErrorSchemaResponse} error
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* @typedef TATCategoryRequest
|
|
120
|
-
* @property {string} [level] - Specifies the hierarchical level of the category
|
|
121
|
-
* (e.g., country, state, city).
|
|
122
|
-
* @property {number} [id] - Represents the unique identifier for the category
|
|
123
|
-
* at the specified level.
|
|
124
|
-
*/
|
|
125
|
-
/**
|
|
126
|
-
* @typedef TATArticlesRequest
|
|
127
|
-
* @property {TATCategoryRequest} [category]
|
|
128
|
-
* @property {string} [manufacturing_time_unit] - The unit of measurement for
|
|
129
|
-
* the manufacturing time, such as hours or days.
|
|
130
|
-
* @property {number} [manufacturing_time] - The amount of time required to
|
|
131
|
-
* manufacture the article, specified in the unit given by `manufacturing_time_unit`.
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* @typedef TATLocationDetailsRequest
|
|
135
|
-
* @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
|
|
136
|
-
* @property {string} [from_pincode] - The postal code of the location from
|
|
137
|
-
* which the fulfillment originates.
|
|
138
|
-
* @property {TATArticlesRequest[]} [articles] - List of articles included in
|
|
139
|
-
* the fulfillment request, which provides details about the items to be
|
|
140
|
-
* processed or shipped.
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* @typedef TATViewRequest
|
|
144
|
-
* @property {string} [to_pincode] - The postal code of the destination location
|
|
145
|
-
* where the fulfillment or shipment is headed.
|
|
146
|
-
* @property {string} [source] - The origin or source of the request, indicating
|
|
147
|
-
* where the data or action is coming from.
|
|
148
|
-
* @property {string} [action] - The specific operation or request being made,
|
|
149
|
-
* such as viewing, updating, or managing data.
|
|
150
|
-
* @property {string} [identifier] - A unique ID used to reference or track the
|
|
151
|
-
* specific request or item within the system.
|
|
152
|
-
* @property {TATLocationDetailsRequest[]} [location_details] - Locations
|
|
153
|
-
* involved in the request, including details about both the source and destination.
|
|
154
|
-
* @property {string} [journey] - Indicates the direction of the request or
|
|
155
|
-
* shipment. It can either be "forward" (from the source to the destination)
|
|
156
|
-
* or "return" (from the destination back to the source).
|
|
157
|
-
*/
|
|
158
|
-
/**
|
|
159
|
-
* @typedef TATErrorSchemaResponse
|
|
160
|
-
* @property {string} [message] - A user-readable description of the error,
|
|
161
|
-
* explaining what went wrong.
|
|
162
|
-
* @property {string} [value] - A specific code or identifier related to the
|
|
163
|
-
* error, used for referencing or categorizing the error.
|
|
164
|
-
* @property {string} [type] - The classification of the error, indicating the
|
|
165
|
-
* kind of issue.
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* @typedef TATTimestampResponse
|
|
169
|
-
* @property {number} [min] - The earliest possible timestamp.
|
|
170
|
-
* @property {number} [max] - The latest possible timestamp.
|
|
171
|
-
*/
|
|
172
|
-
/**
|
|
173
|
-
* @typedef TATFormattedResponse
|
|
174
|
-
* @property {string} [min] - The earliest possible timestamp.
|
|
175
|
-
* @property {string} [max] - The latest possible timestamp.
|
|
176
|
-
*/
|
|
177
|
-
/**
|
|
178
|
-
* @typedef TATPromiseResponse
|
|
179
|
-
* @property {TATTimestampResponse} [timestamp]
|
|
180
|
-
* @property {TATFormattedResponse} [formatted]
|
|
181
|
-
*/
|
|
182
|
-
/**
|
|
183
|
-
* @typedef TATArticlesResponse
|
|
184
|
-
* @property {string} [manufacturing_time_unit] - The unit of measurement for
|
|
185
|
-
* the manufacturing time such as hours or days.
|
|
186
|
-
* @property {TATErrorSchemaResponse} [error]
|
|
187
|
-
* @property {boolean} [is_cod_available] - Indicates whether Cash on Delivery
|
|
188
|
-
* (COD) is available for the articles.
|
|
189
|
-
* @property {TATPromiseResponse} [promise]
|
|
190
|
-
* @property {number} [manufacturing_time] - The time required to manufacture
|
|
191
|
-
* the articles, measured in the unit specified by manufacturing_time_unit.
|
|
192
|
-
* @property {TATCategoryRequest} [category]
|
|
193
|
-
* @property {number} [_manufacturing_time_seconds] - The manufacturing time
|
|
194
|
-
* converted into seconds.
|
|
195
|
-
*/
|
|
196
|
-
/**
|
|
197
|
-
* @typedef TATLocationDetailsResponse
|
|
198
|
-
* @property {number} [fulfillment_id] - A unique identifier of the fulfilling location.
|
|
199
|
-
* @property {string} [from_pincode] - The postal code of the location from
|
|
200
|
-
* which the fulfillment originates.
|
|
201
|
-
* @property {TATArticlesResponse[]} [articles] - List of articles included in
|
|
202
|
-
* the fulfillment request, which provides details about the items to be
|
|
203
|
-
* processed or shipped.
|
|
204
|
-
*/
|
|
205
|
-
/**
|
|
206
|
-
* @typedef TATViewResponse
|
|
207
|
-
* @property {string} [to_pincode] - The postal code of the destination location
|
|
208
|
-
* where the fulfillment or shipment is headed.
|
|
209
|
-
* @property {string} [request_uuid] - A unique identifier for the request.
|
|
210
|
-
* @property {string} [payment_mode] - The mode of payment used for the transaction.
|
|
211
|
-
* @property {boolean} [success] - Whether the request was successful (true/false).
|
|
212
|
-
* @property {TATErrorSchemaResponse} [error]
|
|
213
|
-
* @property {boolean} [is_cod_available] - Whether Cash on Delivery (COD) is
|
|
214
|
-
* available for the request.
|
|
215
|
-
* @property {string} [source] - The origin or source of the request.
|
|
216
|
-
* @property {string} [action] - The action performed or requested (e.g.,
|
|
217
|
-
* forward, return).
|
|
218
|
-
* @property {string} [stormbreaker_uuid] - A unique identifier related to the
|
|
219
|
-
* stormbreaker process.
|
|
220
|
-
* @property {string} [to_city] - The city corresponding to the destination pincode.
|
|
221
|
-
* @property {string} [identifier] - A unique identifier for the request or transaction.
|
|
222
|
-
* @property {TATLocationDetailsResponse[]} [location_details] - Location
|
|
223
|
-
* involved in the request.
|
|
224
|
-
* @property {string} [journey] - Type of journey, either forward or return.
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* @typedef DP
|
|
228
|
-
* @property {number} fm_priority - First Mile Priority; focuses on the initial
|
|
229
|
-
* segment of the logistics process, from the point of origin to the first
|
|
230
|
-
* distribution center.
|
|
231
|
-
* @property {number} lm_priority - Last Mile Priority; deals with the final
|
|
232
|
-
* stage of the delivery process, where goods are delivered from the
|
|
233
|
-
* distribution center to the final destination.
|
|
234
|
-
* @property {number} rvp_priority - Reverse Pickup Priority; pertains to the
|
|
235
|
-
* process of collecting goods from the customer for return or exchange.
|
|
236
|
-
* @property {string} payment_mode - The method of payment used for
|
|
237
|
-
* transactions, such as credit card, debit card, cash on delivery, etc.
|
|
238
|
-
* @property {string[]} operations - Refers to the various activities and
|
|
239
|
-
* processes involved in managing and executing the delivery and logistics operations.
|
|
240
|
-
* @property {string} [area_code] - A code that identifies a specific geographic
|
|
241
|
-
* area, often used for sorting and routing deliveries.
|
|
242
|
-
* @property {boolean} [assign_dp_from_sb] - Indicates whether the delivery
|
|
243
|
-
* partner (DP) is assigned from stormbreaker service.
|
|
244
|
-
* @property {string} [internal_account_id] - An identifier used internally to
|
|
245
|
-
* track accounts or entities within the organization's system.
|
|
246
|
-
* @property {string} [external_account_id] - An identifier used to reference
|
|
247
|
-
* accounts or entities outside the organization's system, such as partner accounts.
|
|
248
|
-
* @property {string} [transport_mode] - The method of transportation used for
|
|
249
|
-
* delivering goods, such as road, rail, air, or sea.
|
|
250
|
-
*/
|
|
251
|
-
/**
|
|
252
|
-
* @typedef LogisticsResponse
|
|
253
|
-
* @property {Object} [dp] - Provide entity responsible for handling the
|
|
254
|
-
* delivery of goods.
|
|
255
|
-
*/
|
|
256
|
-
/**
|
|
257
|
-
* @typedef CountryEntityResponse
|
|
258
|
-
* @property {CountryMetaResponse} [meta]
|
|
259
|
-
* @property {LogisticsResponse} [logistics]
|
|
260
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
261
|
-
* data, which may be more descriptive or formatted differently.
|
|
262
|
-
* @property {string} [type] - Specifies the type of geographical feature or
|
|
263
|
-
* data, typically "Point" for coordinates in geographic data systems.
|
|
264
|
-
* @property {boolean} [is_active] - Whether the country entity is currently
|
|
265
|
-
* active or not.
|
|
266
|
-
* @property {string} [parent_id] - Identifier for the parent of the current locality.
|
|
267
|
-
* @property {string} [sub_type] - Specific type of locality hierarchy the
|
|
268
|
-
* pincode belongs to (e.g., city, state, country).
|
|
269
|
-
* @property {string} [name] - Country name.
|
|
270
|
-
* @property {string} [uid] - Unique identifier for the country.
|
|
271
|
-
*/
|
|
272
|
-
/**
|
|
273
|
-
* @typedef CountryListResponse
|
|
274
|
-
* @property {CountryEntityResponse[]} [results] - A list of country entities,
|
|
275
|
-
* each containing details about individual countries.
|
|
276
|
-
*/
|
|
277
|
-
/**
|
|
278
|
-
* @typedef GetZoneFromPincodeViewRequest
|
|
279
|
-
* @property {string} pincode - The postal code or ZIP code used to pinpoint a
|
|
280
|
-
* specific geographic area or location.
|
|
281
|
-
* @property {string} country - The country where the pincode is located.
|
|
282
|
-
*/
|
|
283
|
-
/**
|
|
284
|
-
* @typedef GetZoneFromPincodeViewResponse
|
|
285
|
-
* @property {string} serviceability_type - Specifies the type of serviceability
|
|
286
|
-
* for the given pincode, indicating whether it's deliverable or serviceable
|
|
287
|
-
* under certain conditions.
|
|
288
|
-
* @property {string[]} zones - Lists the zones associated with the pincode,
|
|
289
|
-
* detailing the geographical or logistical zones for service.
|
|
290
|
-
*/
|
|
291
|
-
/**
|
|
292
|
-
* @typedef ReAssignStoreRequest
|
|
293
|
-
* @property {Object} configuration - Specifies the configuration settings or
|
|
294
|
-
* parameters for the store reassignment.
|
|
295
|
-
* @property {string} to_pincode - The postal code of the destination location
|
|
296
|
-
* where the fulfillment or shipment is headed.
|
|
297
|
-
* @property {number[]} ignored_locations - Locations that should be excluded
|
|
298
|
-
* from the reassignment process.
|
|
299
|
-
* @property {string} identifier - A unique identifier for the reassignment request.
|
|
300
|
-
* @property {Object[]} articles - List of articles or items involved in the
|
|
301
|
-
* store reassignment.
|
|
302
|
-
*/
|
|
303
|
-
/**
|
|
304
|
-
* @typedef ReAssignStoreResponse
|
|
305
|
-
* @property {string} to_pincode - The postal code of the destination location
|
|
306
|
-
* where the fulfillment or shipment is headed.
|
|
307
|
-
* @property {string} pystormbreaker_uuid - A unique identifier for tracking the
|
|
308
|
-
* reassignment operation.
|
|
309
|
-
* @property {boolean} success - Whether the reassignment was successful or not.
|
|
310
|
-
* @property {Object} error - Details about any errors encountered during the
|
|
311
|
-
* reassignment.
|
|
312
|
-
* @property {Object[]} [assigned_stores] - List of stores that have been
|
|
313
|
-
* successfully reassigned.
|
|
314
|
-
*/
|
|
315
|
-
/**
|
|
316
|
-
* @typedef CountryHierarchy
|
|
317
|
-
* @property {string} [name] - It represent a country name.
|
|
318
|
-
* @property {string} [slug] - A URL-friendly version of the name, often used
|
|
319
|
-
* for referencing or querying purposes.
|
|
320
|
-
*/
|
|
321
|
-
/**
|
|
322
|
-
* @typedef CurrencyObject
|
|
323
|
-
* @property {string} [code] - The currency code, typically a three-letter ISO
|
|
324
|
-
* code (e.g., "USD" for US Dollar).
|
|
325
|
-
* @property {string} [name] - It represent a country name.
|
|
326
|
-
* @property {string} [symbol] - The symbol used to represent the currency
|
|
327
|
-
* (e.g., "$" for US Dollar).
|
|
328
|
-
*/
|
|
329
|
-
/**
|
|
330
|
-
* @typedef CountryObject
|
|
331
|
-
* @property {string} [id] - Unique identifier for the country.
|
|
332
|
-
* @property {string} [name] - It represent a country name.
|
|
333
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
334
|
-
* data, which may be more descriptive or formatted differently.
|
|
335
|
-
* @property {string} [iso2] - Two-letter ISO code representing the country.
|
|
336
|
-
* @property {string} [iso3] - Three-letter ISO code representing the country.
|
|
337
|
-
* @property {string[]} [timezones] - List of time zones used in the country
|
|
338
|
-
* (e.g., ["America/New_York", "America/Los_Angeles"]).
|
|
339
|
-
* @property {CountryHierarchy[]} [hierarchy] - Levels within the country (e.g.,
|
|
340
|
-
* states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
|
|
341
|
-
* {"name": "City", "slug": "city"}]).
|
|
342
|
-
* @property {string} [phone_code] - International dialing code for the country
|
|
343
|
-
* (e.g., "+1").
|
|
344
|
-
* @property {string} [latitude] - Geographical latitude of the country (e.g., "37.0902").
|
|
345
|
-
* @property {string} [longitude] - Geographical longitude of the country (e.g.,
|
|
346
|
-
* "-95.7129").
|
|
347
|
-
* @property {CurrencyObject} [currency]
|
|
348
|
-
* @property {string} [type] - Indicates the type of object (e.g., "country").
|
|
349
|
-
*/
|
|
350
|
-
/**
|
|
351
|
-
* @typedef GetCountries
|
|
352
|
-
* @property {CountryObject[]} [items] - List of countries, each containing
|
|
353
|
-
* detailed information about individual country.
|
|
354
|
-
* @property {Page} [page]
|
|
355
|
-
*/
|
|
356
|
-
/**
|
|
357
|
-
* @typedef GetOneOrAllPath
|
|
358
|
-
* @property {string} [locality_type] - Specifies the type of locality to be
|
|
359
|
-
* retrieved, such as city, state, or pincode (e.g., "city", "state", "pincode").
|
|
360
|
-
* @property {string} [locality_value] - The specific value of the locality
|
|
361
|
-
* being queried, such as the name of the city or the pincode (e.g., "Mumbai",
|
|
362
|
-
* "400093").
|
|
363
|
-
*/
|
|
364
|
-
/**
|
|
365
|
-
* @typedef GetOneOrAllQuery
|
|
366
|
-
* @property {string} [country] - The name of the country to filter the results.
|
|
367
|
-
* @property {string} [state] - The name of the state within the specified country.
|
|
368
|
-
* @property {string} [city] - The name of the city within the specified state.
|
|
369
|
-
* @property {string} [sector] - The name of the sector or area within the specified city.
|
|
370
|
-
*/
|
|
371
|
-
/**
|
|
372
|
-
* @typedef GetOneOrAllParams
|
|
373
|
-
* @property {GetOneOrAllPath} [path]
|
|
374
|
-
* @property {GetOneOrAllQuery} [query]
|
|
375
|
-
*/
|
|
376
|
-
/**
|
|
377
|
-
* @typedef GetOneOrAll
|
|
378
|
-
* @property {string} [operation_id] - Identifier for the specific operation or
|
|
379
|
-
* query being performed.
|
|
380
|
-
* @property {GetOneOrAllParams} [params]
|
|
381
|
-
*/
|
|
382
|
-
/**
|
|
383
|
-
* @typedef LengthValidation
|
|
384
|
-
* @property {number} [min] - The minimum number of characters or digits allowed.
|
|
385
|
-
* @property {number} [max] - The maximum number of characters or digits allowed.
|
|
386
|
-
*/
|
|
387
|
-
/**
|
|
388
|
-
* @typedef FieldValidationRegex
|
|
389
|
-
* @property {string} [value] - Regular expression pattern used to validate the field.
|
|
390
|
-
* @property {LengthValidation} [length]
|
|
391
|
-
*/
|
|
392
|
-
/**
|
|
393
|
-
* @typedef FieldValidation
|
|
394
|
-
* @property {string} [type] - Specifies the validation method, such as regex
|
|
395
|
-
* for regular expression validation.
|
|
396
|
-
* @property {FieldValidationRegex} [regex]
|
|
397
|
-
*/
|
|
398
|
-
/**
|
|
399
|
-
* @typedef GetCountryFieldsAddressValues
|
|
400
|
-
* @property {GetOneOrAll} [get_one]
|
|
401
|
-
* @property {GetOneOrAll} [get_all]
|
|
402
|
-
*/
|
|
403
|
-
/**
|
|
404
|
-
* @typedef GetCountryFieldsAddress
|
|
405
|
-
* @property {string} display_name - User-friendly version of the geographical
|
|
406
|
-
* data, which may be more descriptive or formatted differently.
|
|
407
|
-
* @property {string} slug - URL-friendly version of the name, often used for
|
|
408
|
-
* referencing or querying purposes.
|
|
409
|
-
* @property {boolean} required - Indicates whether the field is mandatory for
|
|
410
|
-
* the user to fill out.
|
|
411
|
-
* @property {boolean} [edit] - Specifies if the field can be edited by the user.
|
|
412
|
-
* @property {string} input - Defines the type of input control used for the
|
|
413
|
-
* field (e.g., textbox).
|
|
414
|
-
* @property {FieldValidation} [validation]
|
|
415
|
-
* @property {GetCountryFieldsAddressValues} [values]
|
|
416
|
-
* @property {string} [error_text] - The message shown to the user if the input
|
|
417
|
-
* does not meet the validation criteria.
|
|
418
|
-
*/
|
|
419
|
-
/**
|
|
420
|
-
* @typedef GetCountryFieldsAddressTemplate
|
|
421
|
-
* @property {string} checkout_form - The format used to display or collect
|
|
422
|
-
* address information during checkout.
|
|
423
|
-
* @property {string} store_os_form - The format used for address entry or
|
|
424
|
-
* display in the store's operating system.
|
|
425
|
-
* @property {string} default_display - The general format for displaying
|
|
426
|
-
* address information.
|
|
427
|
-
*/
|
|
428
|
-
/**
|
|
429
|
-
* @typedef GetCountryFields
|
|
430
|
-
* @property {GetCountryFieldsAddress[]} address - Specifies the fields and
|
|
431
|
-
* attributes related to address information, including display names, input
|
|
432
|
-
* types, and validation rules. This section defines the details needed for
|
|
433
|
-
* address collection and formatting.
|
|
434
|
-
* @property {string[]} serviceability_fields - Lists the specific address
|
|
435
|
-
* fields used to determine whether a location is serviceable. These fields
|
|
436
|
-
* are crucial for validating service coverage and availability.
|
|
437
|
-
* @property {GetCountryFieldsAddressTemplate} address_template
|
|
438
|
-
*/
|
|
439
|
-
/**
|
|
440
|
-
* @typedef GetCountry
|
|
441
|
-
* @property {string} [id] - Unique identifier for the country.
|
|
442
|
-
* @property {string} [name] - It represent a country name.
|
|
443
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
444
|
-
* data, which may be more descriptive or formatted differently.
|
|
445
|
-
* @property {string} [iso2] - Two-letter ISO code representing the country.
|
|
446
|
-
* @property {string} [iso3] - Three-letter ISO code representing the country.
|
|
447
|
-
* @property {string[]} [timezones] - List of time zones used in the country
|
|
448
|
-
* (e.g., ["America/New_York", "America/Los_Angeles"]).
|
|
449
|
-
* @property {CountryHierarchy[]} [hierarchy] - Levels within the country (e.g.,
|
|
450
|
-
* states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
|
|
451
|
-
* {"name": "City", "slug": "city"}]).
|
|
452
|
-
* @property {string} [phone_code] - International dialing code for the country
|
|
453
|
-
* (e.g., "+1").
|
|
454
|
-
* @property {string} [latitude] - Geographical latitude of the country (e.g., "37.0902").
|
|
455
|
-
* @property {string} [longitude] - Geographical longitude of the country (e.g.,
|
|
456
|
-
* "-95.7129").
|
|
457
|
-
* @property {CurrencyObject} [currency]
|
|
458
|
-
* @property {string} [type] - Indicates the type of object (e.g., "country").
|
|
459
|
-
* @property {GetCountryFields} [fields]
|
|
460
|
-
*/
|
|
461
|
-
/**
|
|
462
|
-
* @typedef Page
|
|
463
|
-
* @property {number} [item_total] - The total number of items on the page.
|
|
464
|
-
* @property {string} [next_id] - The identifier for the next page.
|
|
465
|
-
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
466
|
-
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
467
|
-
* @property {number} [current] - The current page number.
|
|
468
|
-
* @property {string} type - The type of the page, such as 'PageType'.
|
|
469
|
-
* @property {number} [size] - The number of items per page.
|
|
470
|
-
*/
|
|
471
|
-
/**
|
|
472
|
-
* @typedef Localities
|
|
473
|
-
* @property {string} [id] - A unique identifier for the locality.
|
|
474
|
-
* @property {string} [name] - The actual geographical data, such as country
|
|
475
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
476
|
-
* (Dubai), or local sectors (Deira).
|
|
477
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
478
|
-
* data, which may be more descriptive or formatted differently.
|
|
479
|
-
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
480
|
-
* @property {string} [type] - Specifies the category of the address component,
|
|
481
|
-
* such as pincode, state, city, country, or sector.
|
|
482
|
-
* @property {LocalityParent[]} [localities] - Representing the localities that
|
|
483
|
-
* are associated with or contained within the current locality. It provides
|
|
484
|
-
* detailed information about the parent localities, including their names,
|
|
485
|
-
* identifiers, and hierarchical relationships.
|
|
486
|
-
*/
|
|
487
|
-
/**
|
|
488
|
-
* @typedef LocalityParent
|
|
489
|
-
* @property {string} [id] - A unique identifier for the locality.
|
|
490
|
-
* @property {string} [name] - The actual geographical data, such as country
|
|
491
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
492
|
-
* (Dubai), or local sectors (Deira).
|
|
493
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
494
|
-
* data, which may be more descriptive or formatted differently.
|
|
495
|
-
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
496
|
-
* @property {string} [type] - Specifies the category of the address component,
|
|
497
|
-
* such as pincode, state, city, country, or sector.
|
|
498
|
-
*/
|
|
499
|
-
/**
|
|
500
|
-
* @typedef GetLocalities
|
|
501
|
-
* @property {Localities[]} [items] - List of localities, each containing
|
|
502
|
-
* detailed information about individual locality.
|
|
503
|
-
* @property {Page} [page]
|
|
504
|
-
*/
|
|
505
|
-
/**
|
|
506
|
-
* @typedef GetLocality
|
|
507
|
-
* @property {string} [id] - A unique identifier for the locality.
|
|
508
|
-
* @property {string} [name] - The actual geographical data, such as country
|
|
509
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
510
|
-
* (Dubai), or local sectors (Deira).
|
|
511
|
-
* @property {string} [display_name] - User-friendly version of the geographical
|
|
512
|
-
* data, which may be more descriptive or formatted differently.
|
|
513
|
-
* @property {string[]} [parent_ids] - Identifiers for the parent of the current locality.
|
|
514
|
-
* @property {string} [type] - Specifies the category of the address component,
|
|
515
|
-
* such as pincode, state, city, country, or sector.
|
|
516
|
-
* @property {LocalityParent[]} [localities] - Representing the localities that
|
|
517
|
-
* are associated with or contained within the current locality. It provides
|
|
518
|
-
* detailed information about the parent localities, including their names,
|
|
519
|
-
* identifiers, and hierarchical relationships.
|
|
520
|
-
*/
|
|
521
|
-
/**
|
|
522
|
-
* @typedef ErrorResponse
|
|
523
|
-
* @property {string} [error] - Error code identifying the type of error.
|
|
524
|
-
* @property {string} [message] - User-friendly explanation of what went wrong.
|
|
525
|
-
*/
|
|
526
|
-
declare class LogisticApplicationModel {
|
|
527
|
-
}
|
|
528
|
-
declare namespace LogisticApplicationModel {
|
|
529
|
-
export { GetStoreResponse, StoreItemResponse, ValidateAddressRequest, PincodeParentsResponse, PincodeMetaResponse, PincodeErrorSchemaResponse, CountryMetaResponse, PincodeLatLongData, PincodeDataResponse, PincodeApiResponse, TATCategoryRequest, TATArticlesRequest, TATLocationDetailsRequest, TATViewRequest, TATErrorSchemaResponse, TATTimestampResponse, TATFormattedResponse, TATPromiseResponse, TATArticlesResponse, TATLocationDetailsResponse, TATViewResponse, DP, LogisticsResponse, CountryEntityResponse, CountryListResponse, GetZoneFromPincodeViewRequest, GetZoneFromPincodeViewResponse, ReAssignStoreRequest, ReAssignStoreResponse, CountryHierarchy, CurrencyObject, CountryObject, GetCountries, GetOneOrAllPath, GetOneOrAllQuery, GetOneOrAllParams, GetOneOrAll, LengthValidation, FieldValidationRegex, FieldValidation, GetCountryFieldsAddressValues, GetCountryFieldsAddress, GetCountryFieldsAddressTemplate, GetCountryFields, GetCountry, Page, Localities, LocalityParent, GetLocalities, GetLocality, ErrorResponse };
|
|
530
|
-
}
|
|
531
|
-
/** @returns {GetStoreResponse} */
|
|
532
|
-
declare function GetStoreResponse(): GetStoreResponse;
|
|
533
|
-
type GetStoreResponse = {
|
|
534
|
-
/**
|
|
535
|
-
* - List of locations, each containing
|
|
536
|
-
* detailed information about individual location.
|
|
537
|
-
*/
|
|
538
|
-
items?: StoreItemResponse[];
|
|
539
|
-
page?: Page;
|
|
540
|
-
};
|
|
541
|
-
/** @returns {StoreItemResponse} */
|
|
542
|
-
declare function StoreItemResponse(): StoreItemResponse;
|
|
543
|
-
type StoreItemResponse = {
|
|
544
|
-
/**
|
|
545
|
-
* - A unique identifier for the location.
|
|
546
|
-
*/
|
|
547
|
-
id?: number;
|
|
548
|
-
/**
|
|
549
|
-
* - The type of store, indicating the nature of
|
|
550
|
-
* the store, such as retail or warehouse.
|
|
551
|
-
*/
|
|
552
|
-
store_type?: string;
|
|
553
|
-
/**
|
|
554
|
-
* - The method of fulfillment used by the
|
|
555
|
-
* store, such as shipping, pickup, or delivery.
|
|
556
|
-
*/
|
|
557
|
-
fulfillment_type?: string;
|
|
558
|
-
/**
|
|
559
|
-
* - The average time taken by the store to
|
|
560
|
-
* process orders, measured in minutes.
|
|
561
|
-
*/
|
|
562
|
-
processing_time?: number;
|
|
563
|
-
/**
|
|
564
|
-
* - List of tags associated with the store for
|
|
565
|
-
* categorization and search purposes.
|
|
566
|
-
*/
|
|
567
|
-
tags?: string[];
|
|
568
|
-
/**
|
|
569
|
-
* - The unique identifier of the company that
|
|
570
|
-
* owns the store.
|
|
571
|
-
*/
|
|
572
|
-
company_id?: number;
|
|
573
|
-
/**
|
|
574
|
-
* - The geographical latitude coordinate of the
|
|
575
|
-
* store location.
|
|
576
|
-
*/
|
|
577
|
-
latitude?: number;
|
|
578
|
-
/**
|
|
579
|
-
* - The geographical longitude coordinate of the
|
|
580
|
-
* store location.
|
|
581
|
-
*/
|
|
582
|
-
longitude?: number;
|
|
583
|
-
};
|
|
584
|
-
/** @returns {ValidateAddressRequest} */
|
|
585
|
-
declare function ValidateAddressRequest(): ValidateAddressRequest;
|
|
586
|
-
type ValidateAddressRequest = {
|
|
587
|
-
/**
|
|
588
|
-
* - Complete address, combining address line 1,
|
|
589
|
-
* address line 2, area, landmark, sector, city, state, and pincode.
|
|
590
|
-
*/
|
|
591
|
-
address?: string;
|
|
592
|
-
/**
|
|
593
|
-
* - First line of the address, typically
|
|
594
|
-
* containing street or building information.
|
|
595
|
-
*/
|
|
596
|
-
address1?: string;
|
|
597
|
-
/**
|
|
598
|
-
* - Second line of the address, which can be used
|
|
599
|
-
* for additional address details if needed.
|
|
600
|
-
*/
|
|
601
|
-
address2?: string;
|
|
602
|
-
/**
|
|
603
|
-
* - Locality or area associated with the address.
|
|
604
|
-
*/
|
|
605
|
-
area?: string;
|
|
606
|
-
/**
|
|
607
|
-
* - Prominent nearby landmark that aids in
|
|
608
|
-
* locating the address.
|
|
609
|
-
*/
|
|
610
|
-
landmark?: string;
|
|
611
|
-
/**
|
|
612
|
-
* - Postal code or PIN code of the address area.
|
|
613
|
-
*/
|
|
614
|
-
pincode?: string;
|
|
615
|
-
/**
|
|
616
|
-
* - Specifies the sector or district of the address
|
|
617
|
-
* if applicable.
|
|
618
|
-
*/
|
|
619
|
-
sector?: string;
|
|
620
|
-
/**
|
|
621
|
-
* - Denote the city or municipality of the address.
|
|
622
|
-
*/
|
|
623
|
-
city?: string;
|
|
624
|
-
/**
|
|
625
|
-
* - Indicates the state or province of the address.
|
|
626
|
-
*/
|
|
627
|
-
state?: string;
|
|
628
|
-
/**
|
|
629
|
-
* - Recipient's name associated with the address.
|
|
630
|
-
*/
|
|
631
|
-
name?: string;
|
|
632
|
-
/**
|
|
633
|
-
* - Recipient's contact phone number.
|
|
634
|
-
*/
|
|
635
|
-
phone?: string;
|
|
636
|
-
/**
|
|
637
|
-
* - Recipient's email address.
|
|
638
|
-
*/
|
|
639
|
-
email?: string;
|
|
640
|
-
};
|
|
641
|
-
/** @returns {PincodeParentsResponse} */
|
|
642
|
-
declare function PincodeParentsResponse(): PincodeParentsResponse;
|
|
643
|
-
type PincodeParentsResponse = {
|
|
644
|
-
/**
|
|
645
|
-
* - Specific type of locality hierarchy the
|
|
646
|
-
* pincode belongs to (e.g., city, state, country).
|
|
647
|
-
*/
|
|
648
|
-
sub_type?: string;
|
|
649
|
-
/**
|
|
650
|
-
* - User-friendly version of the geographical
|
|
651
|
-
* data, which may be more descriptive or formatted differently.
|
|
652
|
-
*/
|
|
653
|
-
display_name?: string;
|
|
654
|
-
/**
|
|
655
|
-
* - The actual geographical data, such as country
|
|
656
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
657
|
-
* (Dubai), or local sectors (Deira).
|
|
658
|
-
*/
|
|
659
|
-
name?: string;
|
|
660
|
-
/**
|
|
661
|
-
* - Unique identifier for the locality.
|
|
662
|
-
*/
|
|
663
|
-
uid?: string;
|
|
664
|
-
};
|
|
665
|
-
/** @returns {PincodeMetaResponse} */
|
|
666
|
-
declare function PincodeMetaResponse(): PincodeMetaResponse;
|
|
667
|
-
type PincodeMetaResponse = {
|
|
668
|
-
/**
|
|
669
|
-
* - Geographical region to which the pincode belongs,
|
|
670
|
-
* often used to categorize or group pincodes for regional management or
|
|
671
|
-
* postal purposes.
|
|
672
|
-
*/
|
|
673
|
-
zone?: string;
|
|
674
|
-
/**
|
|
675
|
-
* - A unique identifier used within the
|
|
676
|
-
* system to track or reference the specific zone associated with the pincode.
|
|
677
|
-
*/
|
|
678
|
-
internal_zone_id?: number;
|
|
679
|
-
};
|
|
680
|
-
/** @returns {PincodeErrorSchemaResponse} */
|
|
681
|
-
declare function PincodeErrorSchemaResponse(): PincodeErrorSchemaResponse;
|
|
682
|
-
type PincodeErrorSchemaResponse = {
|
|
683
|
-
/**
|
|
684
|
-
* - A user-readable description of the error,
|
|
685
|
-
* explaining what went wrong.
|
|
686
|
-
*/
|
|
687
|
-
message?: string;
|
|
688
|
-
/**
|
|
689
|
-
* - A specific code or identifier related to the
|
|
690
|
-
* error, used for referencing or categorizing the error.
|
|
691
|
-
*/
|
|
692
|
-
value?: string;
|
|
693
|
-
/**
|
|
694
|
-
* - The classification of the error, indicating the
|
|
695
|
-
* kind of issue.
|
|
696
|
-
*/
|
|
697
|
-
type?: string;
|
|
698
|
-
};
|
|
699
|
-
/** @returns {CountryMetaResponse} */
|
|
700
|
-
declare function CountryMetaResponse(): CountryMetaResponse;
|
|
701
|
-
type CountryMetaResponse = {
|
|
702
|
-
/**
|
|
703
|
-
* - The ISO 3166-1 alpha-2 code representing
|
|
704
|
-
* the country (e.g., "IN" for India, "US" for the United States).
|
|
705
|
-
*/
|
|
706
|
-
country_code?: string;
|
|
707
|
-
/**
|
|
708
|
-
* - The International Subscriber Dialing (ISD)
|
|
709
|
-
* code, also known as the country dialing code, used for making international
|
|
710
|
-
* phone calls to the country (e.g., "+91" for India, "+1" for the United States).
|
|
711
|
-
*/
|
|
712
|
-
isd_code?: string;
|
|
713
|
-
};
|
|
714
|
-
/** @returns {PincodeLatLongData} */
|
|
715
|
-
declare function PincodeLatLongData(): PincodeLatLongData;
|
|
716
|
-
type PincodeLatLongData = {
|
|
717
|
-
/**
|
|
718
|
-
* - Specifies the type of geographical feature or
|
|
719
|
-
* data, typically "Point" for coordinates in geographic data systems.
|
|
720
|
-
*/
|
|
721
|
-
type?: string;
|
|
722
|
-
/**
|
|
723
|
-
* - Contains the latitude and longitude
|
|
724
|
-
* values representing the precise location. The format is usually an array
|
|
725
|
-
* with two values: [longitude, latitude].
|
|
726
|
-
*/
|
|
727
|
-
coordinates?: string[];
|
|
728
|
-
};
|
|
729
|
-
/** @returns {PincodeDataResponse} */
|
|
730
|
-
declare function PincodeDataResponse(): PincodeDataResponse;
|
|
731
|
-
type PincodeDataResponse = {
|
|
732
|
-
/**
|
|
733
|
-
* - List of object representing
|
|
734
|
-
* a collection of geographical locations, each associated with specific
|
|
735
|
-
* hierarchical data such as cities, states, or countries.
|
|
736
|
-
*/
|
|
737
|
-
parents?: PincodeParentsResponse[];
|
|
738
|
-
meta?: PincodeMetaResponse;
|
|
739
|
-
/**
|
|
740
|
-
* - User-friendly version of the geographical
|
|
741
|
-
* data, which may be more descriptive or formatted differently.
|
|
742
|
-
*/
|
|
743
|
-
display_name?: string;
|
|
744
|
-
error: PincodeErrorSchemaResponse;
|
|
745
|
-
meta_code?: CountryMetaResponse;
|
|
746
|
-
lat_long?: PincodeLatLongData;
|
|
747
|
-
/**
|
|
748
|
-
* - Indicates the specific type of locality
|
|
749
|
-
* hierarchy the pincode belongs to (e.g., city, state, country).
|
|
750
|
-
*/
|
|
751
|
-
sub_type?: string;
|
|
752
|
-
/**
|
|
753
|
-
* - The actual geographical data, such as country
|
|
754
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
755
|
-
* (Dubai), or local sectors (Deira).
|
|
756
|
-
*/
|
|
757
|
-
name?: string;
|
|
758
|
-
/**
|
|
759
|
-
* - This field stands for "Unique Identifier," a
|
|
760
|
-
* unique value assigned to each instance to ensure differentiation and reference.
|
|
761
|
-
*/
|
|
762
|
-
uid?: string;
|
|
763
|
-
};
|
|
764
|
-
/** @returns {PincodeApiResponse} */
|
|
765
|
-
declare function PincodeApiResponse(): PincodeApiResponse;
|
|
766
|
-
type PincodeApiResponse = {
|
|
767
|
-
/**
|
|
768
|
-
* - Indicates whether the API request was
|
|
769
|
-
* successful (true) or failed (false).
|
|
770
|
-
*/
|
|
771
|
-
success: boolean;
|
|
772
|
-
/**
|
|
773
|
-
* - Contains the actual response data
|
|
774
|
-
* when the request is successful, providing details like pincode information
|
|
775
|
-
* or related data.
|
|
776
|
-
*/
|
|
777
|
-
data?: PincodeDataResponse[];
|
|
778
|
-
error: PincodeErrorSchemaResponse;
|
|
779
|
-
};
|
|
780
|
-
/** @returns {TATCategoryRequest} */
|
|
781
|
-
declare function TATCategoryRequest(): TATCategoryRequest;
|
|
782
|
-
type TATCategoryRequest = {
|
|
783
|
-
/**
|
|
784
|
-
* - Specifies the hierarchical level of the category
|
|
785
|
-
* (e.g., country, state, city).
|
|
786
|
-
*/
|
|
787
|
-
level?: string;
|
|
788
|
-
/**
|
|
789
|
-
* - Represents the unique identifier for the category
|
|
790
|
-
* at the specified level.
|
|
791
|
-
*/
|
|
792
|
-
id?: number;
|
|
793
|
-
};
|
|
794
|
-
/** @returns {TATArticlesRequest} */
|
|
795
|
-
declare function TATArticlesRequest(): TATArticlesRequest;
|
|
796
|
-
type TATArticlesRequest = {
|
|
797
|
-
category?: TATCategoryRequest;
|
|
798
|
-
/**
|
|
799
|
-
* - The unit of measurement for
|
|
800
|
-
* the manufacturing time, such as hours or days.
|
|
801
|
-
*/
|
|
802
|
-
manufacturing_time_unit?: string;
|
|
803
|
-
/**
|
|
804
|
-
* - The amount of time required to
|
|
805
|
-
* manufacture the article, specified in the unit given by `manufacturing_time_unit`.
|
|
806
|
-
*/
|
|
807
|
-
manufacturing_time?: number;
|
|
808
|
-
};
|
|
809
|
-
/** @returns {TATLocationDetailsRequest} */
|
|
810
|
-
declare function TATLocationDetailsRequest(): TATLocationDetailsRequest;
|
|
811
|
-
type TATLocationDetailsRequest = {
|
|
812
|
-
/**
|
|
813
|
-
* - A unique identifier of the fulfilling location.
|
|
814
|
-
*/
|
|
815
|
-
fulfillment_id?: number;
|
|
816
|
-
/**
|
|
817
|
-
* - The postal code of the location from
|
|
818
|
-
* which the fulfillment originates.
|
|
819
|
-
*/
|
|
820
|
-
from_pincode?: string;
|
|
821
|
-
/**
|
|
822
|
-
* - List of articles included in
|
|
823
|
-
* the fulfillment request, which provides details about the items to be
|
|
824
|
-
* processed or shipped.
|
|
825
|
-
*/
|
|
826
|
-
articles?: TATArticlesRequest[];
|
|
827
|
-
};
|
|
828
|
-
/** @returns {TATViewRequest} */
|
|
829
|
-
declare function TATViewRequest(): TATViewRequest;
|
|
830
|
-
type TATViewRequest = {
|
|
831
|
-
/**
|
|
832
|
-
* - The postal code of the destination location
|
|
833
|
-
* where the fulfillment or shipment is headed.
|
|
834
|
-
*/
|
|
835
|
-
to_pincode?: string;
|
|
836
|
-
/**
|
|
837
|
-
* - The origin or source of the request, indicating
|
|
838
|
-
* where the data or action is coming from.
|
|
839
|
-
*/
|
|
840
|
-
source?: string;
|
|
841
|
-
/**
|
|
842
|
-
* - The specific operation or request being made,
|
|
843
|
-
* such as viewing, updating, or managing data.
|
|
844
|
-
*/
|
|
845
|
-
action?: string;
|
|
846
|
-
/**
|
|
847
|
-
* - A unique ID used to reference or track the
|
|
848
|
-
* specific request or item within the system.
|
|
849
|
-
*/
|
|
850
|
-
identifier?: string;
|
|
851
|
-
/**
|
|
852
|
-
* - Locations
|
|
853
|
-
* involved in the request, including details about both the source and destination.
|
|
854
|
-
*/
|
|
855
|
-
location_details?: TATLocationDetailsRequest[];
|
|
856
|
-
/**
|
|
857
|
-
* - Indicates the direction of the request or
|
|
858
|
-
* shipment. It can either be "forward" (from the source to the destination)
|
|
859
|
-
* or "return" (from the destination back to the source).
|
|
860
|
-
*/
|
|
861
|
-
journey?: string;
|
|
862
|
-
};
|
|
863
|
-
/** @returns {TATErrorSchemaResponse} */
|
|
864
|
-
declare function TATErrorSchemaResponse(): TATErrorSchemaResponse;
|
|
865
|
-
type TATErrorSchemaResponse = {
|
|
866
|
-
/**
|
|
867
|
-
* - A user-readable description of the error,
|
|
868
|
-
* explaining what went wrong.
|
|
869
|
-
*/
|
|
870
|
-
message?: string;
|
|
871
|
-
/**
|
|
872
|
-
* - A specific code or identifier related to the
|
|
873
|
-
* error, used for referencing or categorizing the error.
|
|
874
|
-
*/
|
|
875
|
-
value?: string;
|
|
876
|
-
/**
|
|
877
|
-
* - The classification of the error, indicating the
|
|
878
|
-
* kind of issue.
|
|
879
|
-
*/
|
|
880
|
-
type?: string;
|
|
881
|
-
};
|
|
882
|
-
/** @returns {TATTimestampResponse} */
|
|
883
|
-
declare function TATTimestampResponse(): TATTimestampResponse;
|
|
884
|
-
type TATTimestampResponse = {
|
|
885
|
-
/**
|
|
886
|
-
* - The earliest possible timestamp.
|
|
887
|
-
*/
|
|
888
|
-
min?: number;
|
|
889
|
-
/**
|
|
890
|
-
* - The latest possible timestamp.
|
|
891
|
-
*/
|
|
892
|
-
max?: number;
|
|
893
|
-
};
|
|
894
|
-
/** @returns {TATFormattedResponse} */
|
|
895
|
-
declare function TATFormattedResponse(): TATFormattedResponse;
|
|
896
|
-
type TATFormattedResponse = {
|
|
897
|
-
/**
|
|
898
|
-
* - The earliest possible timestamp.
|
|
899
|
-
*/
|
|
900
|
-
min?: string;
|
|
901
|
-
/**
|
|
902
|
-
* - The latest possible timestamp.
|
|
903
|
-
*/
|
|
904
|
-
max?: string;
|
|
905
|
-
};
|
|
906
|
-
/** @returns {TATPromiseResponse} */
|
|
907
|
-
declare function TATPromiseResponse(): TATPromiseResponse;
|
|
908
|
-
type TATPromiseResponse = {
|
|
909
|
-
timestamp?: TATTimestampResponse;
|
|
910
|
-
formatted?: TATFormattedResponse;
|
|
911
|
-
};
|
|
912
|
-
/** @returns {TATArticlesResponse} */
|
|
913
|
-
declare function TATArticlesResponse(): TATArticlesResponse;
|
|
914
|
-
type TATArticlesResponse = {
|
|
915
|
-
/**
|
|
916
|
-
* - The unit of measurement for
|
|
917
|
-
* the manufacturing time such as hours or days.
|
|
918
|
-
*/
|
|
919
|
-
manufacturing_time_unit?: string;
|
|
920
|
-
error?: TATErrorSchemaResponse;
|
|
921
|
-
/**
|
|
922
|
-
* - Indicates whether Cash on Delivery
|
|
923
|
-
* (COD) is available for the articles.
|
|
924
|
-
*/
|
|
925
|
-
is_cod_available?: boolean;
|
|
926
|
-
promise?: TATPromiseResponse;
|
|
927
|
-
/**
|
|
928
|
-
* - The time required to manufacture
|
|
929
|
-
* the articles, measured in the unit specified by manufacturing_time_unit.
|
|
930
|
-
*/
|
|
931
|
-
manufacturing_time?: number;
|
|
932
|
-
category?: TATCategoryRequest;
|
|
933
|
-
/**
|
|
934
|
-
* - The manufacturing time
|
|
935
|
-
* converted into seconds.
|
|
936
|
-
*/
|
|
937
|
-
_manufacturing_time_seconds?: number;
|
|
938
|
-
};
|
|
939
|
-
/** @returns {TATLocationDetailsResponse} */
|
|
940
|
-
declare function TATLocationDetailsResponse(): TATLocationDetailsResponse;
|
|
941
|
-
type TATLocationDetailsResponse = {
|
|
942
|
-
/**
|
|
943
|
-
* - A unique identifier of the fulfilling location.
|
|
944
|
-
*/
|
|
945
|
-
fulfillment_id?: number;
|
|
946
|
-
/**
|
|
947
|
-
* - The postal code of the location from
|
|
948
|
-
* which the fulfillment originates.
|
|
949
|
-
*/
|
|
950
|
-
from_pincode?: string;
|
|
951
|
-
/**
|
|
952
|
-
* - List of articles included in
|
|
953
|
-
* the fulfillment request, which provides details about the items to be
|
|
954
|
-
* processed or shipped.
|
|
955
|
-
*/
|
|
956
|
-
articles?: TATArticlesResponse[];
|
|
957
|
-
};
|
|
958
|
-
/** @returns {TATViewResponse} */
|
|
959
|
-
declare function TATViewResponse(): TATViewResponse;
|
|
960
|
-
type TATViewResponse = {
|
|
961
|
-
/**
|
|
962
|
-
* - The postal code of the destination location
|
|
963
|
-
* where the fulfillment or shipment is headed.
|
|
964
|
-
*/
|
|
965
|
-
to_pincode?: string;
|
|
966
|
-
/**
|
|
967
|
-
* - A unique identifier for the request.
|
|
968
|
-
*/
|
|
969
|
-
request_uuid?: string;
|
|
970
|
-
/**
|
|
971
|
-
* - The mode of payment used for the transaction.
|
|
972
|
-
*/
|
|
973
|
-
payment_mode?: string;
|
|
974
|
-
/**
|
|
975
|
-
* - Whether the request was successful (true/false).
|
|
976
|
-
*/
|
|
977
|
-
success?: boolean;
|
|
978
|
-
error?: TATErrorSchemaResponse;
|
|
979
|
-
/**
|
|
980
|
-
* - Whether Cash on Delivery (COD) is
|
|
981
|
-
* available for the request.
|
|
982
|
-
*/
|
|
983
|
-
is_cod_available?: boolean;
|
|
984
|
-
/**
|
|
985
|
-
* - The origin or source of the request.
|
|
986
|
-
*/
|
|
987
|
-
source?: string;
|
|
988
|
-
/**
|
|
989
|
-
* - The action performed or requested (e.g.,
|
|
990
|
-
* forward, return).
|
|
991
|
-
*/
|
|
992
|
-
action?: string;
|
|
993
|
-
/**
|
|
994
|
-
* - A unique identifier related to the
|
|
995
|
-
* stormbreaker process.
|
|
996
|
-
*/
|
|
997
|
-
stormbreaker_uuid?: string;
|
|
998
|
-
/**
|
|
999
|
-
* - The city corresponding to the destination pincode.
|
|
1000
|
-
*/
|
|
1001
|
-
to_city?: string;
|
|
1002
|
-
/**
|
|
1003
|
-
* - A unique identifier for the request or transaction.
|
|
1004
|
-
*/
|
|
1005
|
-
identifier?: string;
|
|
1006
|
-
/**
|
|
1007
|
-
* - Location
|
|
1008
|
-
* involved in the request.
|
|
1009
|
-
*/
|
|
1010
|
-
location_details?: TATLocationDetailsResponse[];
|
|
1011
|
-
/**
|
|
1012
|
-
* - Type of journey, either forward or return.
|
|
1013
|
-
*/
|
|
1014
|
-
journey?: string;
|
|
1015
|
-
};
|
|
1016
|
-
/** @returns {DP} */
|
|
1017
|
-
declare function DP(): DP;
|
|
1018
|
-
type DP = {
|
|
1019
|
-
/**
|
|
1020
|
-
* - First Mile Priority; focuses on the initial
|
|
1021
|
-
* segment of the logistics process, from the point of origin to the first
|
|
1022
|
-
* distribution center.
|
|
1023
|
-
*/
|
|
1024
|
-
fm_priority: number;
|
|
1025
|
-
/**
|
|
1026
|
-
* - Last Mile Priority; deals with the final
|
|
1027
|
-
* stage of the delivery process, where goods are delivered from the
|
|
1028
|
-
* distribution center to the final destination.
|
|
1029
|
-
*/
|
|
1030
|
-
lm_priority: number;
|
|
1031
|
-
/**
|
|
1032
|
-
* - Reverse Pickup Priority; pertains to the
|
|
1033
|
-
* process of collecting goods from the customer for return or exchange.
|
|
1034
|
-
*/
|
|
1035
|
-
rvp_priority: number;
|
|
1036
|
-
/**
|
|
1037
|
-
* - The method of payment used for
|
|
1038
|
-
* transactions, such as credit card, debit card, cash on delivery, etc.
|
|
1039
|
-
*/
|
|
1040
|
-
payment_mode: string;
|
|
1041
|
-
/**
|
|
1042
|
-
* - Refers to the various activities and
|
|
1043
|
-
* processes involved in managing and executing the delivery and logistics operations.
|
|
1044
|
-
*/
|
|
1045
|
-
operations: string[];
|
|
1046
|
-
/**
|
|
1047
|
-
* - A code that identifies a specific geographic
|
|
1048
|
-
* area, often used for sorting and routing deliveries.
|
|
1049
|
-
*/
|
|
1050
|
-
area_code?: string;
|
|
1051
|
-
/**
|
|
1052
|
-
* - Indicates whether the delivery
|
|
1053
|
-
* partner (DP) is assigned from stormbreaker service.
|
|
1054
|
-
*/
|
|
1055
|
-
assign_dp_from_sb?: boolean;
|
|
1056
|
-
/**
|
|
1057
|
-
* - An identifier used internally to
|
|
1058
|
-
* track accounts or entities within the organization's system.
|
|
1059
|
-
*/
|
|
1060
|
-
internal_account_id?: string;
|
|
1061
|
-
/**
|
|
1062
|
-
* - An identifier used to reference
|
|
1063
|
-
* accounts or entities outside the organization's system, such as partner accounts.
|
|
1064
|
-
*/
|
|
1065
|
-
external_account_id?: string;
|
|
1066
|
-
/**
|
|
1067
|
-
* - The method of transportation used for
|
|
1068
|
-
* delivering goods, such as road, rail, air, or sea.
|
|
1069
|
-
*/
|
|
1070
|
-
transport_mode?: string;
|
|
1071
|
-
};
|
|
1072
|
-
/** @returns {LogisticsResponse} */
|
|
1073
|
-
declare function LogisticsResponse(): LogisticsResponse;
|
|
1074
|
-
type LogisticsResponse = {
|
|
1075
|
-
/**
|
|
1076
|
-
* - Provide entity responsible for handling the
|
|
1077
|
-
* delivery of goods.
|
|
1078
|
-
*/
|
|
1079
|
-
dp?: any;
|
|
1080
|
-
};
|
|
1081
|
-
/** @returns {CountryEntityResponse} */
|
|
1082
|
-
declare function CountryEntityResponse(): CountryEntityResponse;
|
|
1083
|
-
type CountryEntityResponse = {
|
|
1084
|
-
meta?: CountryMetaResponse;
|
|
1085
|
-
logistics?: LogisticsResponse;
|
|
1086
|
-
/**
|
|
1087
|
-
* - User-friendly version of the geographical
|
|
1088
|
-
* data, which may be more descriptive or formatted differently.
|
|
1089
|
-
*/
|
|
1090
|
-
display_name?: string;
|
|
1091
|
-
/**
|
|
1092
|
-
* - Specifies the type of geographical feature or
|
|
1093
|
-
* data, typically "Point" for coordinates in geographic data systems.
|
|
1094
|
-
*/
|
|
1095
|
-
type?: string;
|
|
1096
|
-
/**
|
|
1097
|
-
* - Whether the country entity is currently
|
|
1098
|
-
* active or not.
|
|
1099
|
-
*/
|
|
1100
|
-
is_active?: boolean;
|
|
1101
|
-
/**
|
|
1102
|
-
* - Identifier for the parent of the current locality.
|
|
1103
|
-
*/
|
|
1104
|
-
parent_id?: string;
|
|
1105
|
-
/**
|
|
1106
|
-
* - Specific type of locality hierarchy the
|
|
1107
|
-
* pincode belongs to (e.g., city, state, country).
|
|
1108
|
-
*/
|
|
1109
|
-
sub_type?: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* - Country name.
|
|
1112
|
-
*/
|
|
1113
|
-
name?: string;
|
|
1114
|
-
/**
|
|
1115
|
-
* - Unique identifier for the country.
|
|
1116
|
-
*/
|
|
1117
|
-
uid?: string;
|
|
1118
|
-
};
|
|
1119
|
-
/** @returns {CountryListResponse} */
|
|
1120
|
-
declare function CountryListResponse(): CountryListResponse;
|
|
1121
|
-
type CountryListResponse = {
|
|
1122
|
-
/**
|
|
1123
|
-
* - A list of country entities,
|
|
1124
|
-
* each containing details about individual countries.
|
|
1125
|
-
*/
|
|
1126
|
-
results?: CountryEntityResponse[];
|
|
1127
|
-
};
|
|
1128
|
-
/** @returns {GetZoneFromPincodeViewRequest} */
|
|
1129
|
-
declare function GetZoneFromPincodeViewRequest(): GetZoneFromPincodeViewRequest;
|
|
1130
|
-
type GetZoneFromPincodeViewRequest = {
|
|
1131
|
-
/**
|
|
1132
|
-
* - The postal code or ZIP code used to pinpoint a
|
|
1133
|
-
* specific geographic area or location.
|
|
1134
|
-
*/
|
|
1135
|
-
pincode: string;
|
|
1136
|
-
/**
|
|
1137
|
-
* - The country where the pincode is located.
|
|
1138
|
-
*/
|
|
1139
|
-
country: string;
|
|
1140
|
-
};
|
|
1141
|
-
/** @returns {GetZoneFromPincodeViewResponse} */
|
|
1142
|
-
declare function GetZoneFromPincodeViewResponse(): GetZoneFromPincodeViewResponse;
|
|
1143
|
-
type GetZoneFromPincodeViewResponse = {
|
|
1144
|
-
/**
|
|
1145
|
-
* - Specifies the type of serviceability
|
|
1146
|
-
* for the given pincode, indicating whether it's deliverable or serviceable
|
|
1147
|
-
* under certain conditions.
|
|
1148
|
-
*/
|
|
1149
|
-
serviceability_type: string;
|
|
1150
|
-
/**
|
|
1151
|
-
* - Lists the zones associated with the pincode,
|
|
1152
|
-
* detailing the geographical or logistical zones for service.
|
|
1153
|
-
*/
|
|
1154
|
-
zones: string[];
|
|
1155
|
-
};
|
|
1156
|
-
/** @returns {ReAssignStoreRequest} */
|
|
1157
|
-
declare function ReAssignStoreRequest(): ReAssignStoreRequest;
|
|
1158
|
-
type ReAssignStoreRequest = {
|
|
1159
|
-
/**
|
|
1160
|
-
* - Specifies the configuration settings or
|
|
1161
|
-
* parameters for the store reassignment.
|
|
1162
|
-
*/
|
|
1163
|
-
configuration: any;
|
|
1164
|
-
/**
|
|
1165
|
-
* - The postal code of the destination location
|
|
1166
|
-
* where the fulfillment or shipment is headed.
|
|
1167
|
-
*/
|
|
1168
|
-
to_pincode: string;
|
|
1169
|
-
/**
|
|
1170
|
-
* - Locations that should be excluded
|
|
1171
|
-
* from the reassignment process.
|
|
1172
|
-
*/
|
|
1173
|
-
ignored_locations: number[];
|
|
1174
|
-
/**
|
|
1175
|
-
* - A unique identifier for the reassignment request.
|
|
1176
|
-
*/
|
|
1177
|
-
identifier: string;
|
|
1178
|
-
/**
|
|
1179
|
-
* - List of articles or items involved in the
|
|
1180
|
-
* store reassignment.
|
|
1181
|
-
*/
|
|
1182
|
-
articles: any[];
|
|
1183
|
-
};
|
|
1184
|
-
/** @returns {ReAssignStoreResponse} */
|
|
1185
|
-
declare function ReAssignStoreResponse(): ReAssignStoreResponse;
|
|
1186
|
-
type ReAssignStoreResponse = {
|
|
1187
|
-
/**
|
|
1188
|
-
* - The postal code of the destination location
|
|
1189
|
-
* where the fulfillment or shipment is headed.
|
|
1190
|
-
*/
|
|
1191
|
-
to_pincode: string;
|
|
1192
|
-
/**
|
|
1193
|
-
* - A unique identifier for tracking the
|
|
1194
|
-
* reassignment operation.
|
|
1195
|
-
*/
|
|
1196
|
-
pystormbreaker_uuid: string;
|
|
1197
|
-
/**
|
|
1198
|
-
* - Whether the reassignment was successful or not.
|
|
1199
|
-
*/
|
|
1200
|
-
success: boolean;
|
|
1201
|
-
/**
|
|
1202
|
-
* - Details about any errors encountered during the
|
|
1203
|
-
* reassignment.
|
|
1204
|
-
*/
|
|
1205
|
-
error: any;
|
|
1206
|
-
/**
|
|
1207
|
-
* - List of stores that have been
|
|
1208
|
-
* successfully reassigned.
|
|
1209
|
-
*/
|
|
1210
|
-
assigned_stores?: any[];
|
|
1211
|
-
};
|
|
1212
|
-
/** @returns {CountryHierarchy} */
|
|
1213
|
-
declare function CountryHierarchy(): CountryHierarchy;
|
|
1214
|
-
type CountryHierarchy = {
|
|
1215
|
-
/**
|
|
1216
|
-
* - It represent a country name.
|
|
1217
|
-
*/
|
|
1218
|
-
name?: string;
|
|
1219
|
-
/**
|
|
1220
|
-
* - A URL-friendly version of the name, often used
|
|
1221
|
-
* for referencing or querying purposes.
|
|
1222
|
-
*/
|
|
1223
|
-
slug?: string;
|
|
1224
|
-
};
|
|
1225
|
-
/** @returns {CurrencyObject} */
|
|
1226
|
-
declare function CurrencyObject(): CurrencyObject;
|
|
1227
|
-
type CurrencyObject = {
|
|
1228
|
-
/**
|
|
1229
|
-
* - The currency code, typically a three-letter ISO
|
|
1230
|
-
* code (e.g., "USD" for US Dollar).
|
|
1231
|
-
*/
|
|
1232
|
-
code?: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* - It represent a country name.
|
|
1235
|
-
*/
|
|
1236
|
-
name?: string;
|
|
1237
|
-
/**
|
|
1238
|
-
* - The symbol used to represent the currency
|
|
1239
|
-
* (e.g., "$" for US Dollar).
|
|
1240
|
-
*/
|
|
1241
|
-
symbol?: string;
|
|
1242
|
-
};
|
|
1243
|
-
/** @returns {CountryObject} */
|
|
1244
|
-
declare function CountryObject(): CountryObject;
|
|
1245
|
-
type CountryObject = {
|
|
1246
|
-
/**
|
|
1247
|
-
* - Unique identifier for the country.
|
|
1248
|
-
*/
|
|
1249
|
-
id?: string;
|
|
1250
|
-
/**
|
|
1251
|
-
* - It represent a country name.
|
|
1252
|
-
*/
|
|
1253
|
-
name?: string;
|
|
1254
|
-
/**
|
|
1255
|
-
* - User-friendly version of the geographical
|
|
1256
|
-
* data, which may be more descriptive or formatted differently.
|
|
1257
|
-
*/
|
|
1258
|
-
display_name?: string;
|
|
1259
|
-
/**
|
|
1260
|
-
* - Two-letter ISO code representing the country.
|
|
1261
|
-
*/
|
|
1262
|
-
iso2?: string;
|
|
1263
|
-
/**
|
|
1264
|
-
* - Three-letter ISO code representing the country.
|
|
1265
|
-
*/
|
|
1266
|
-
iso3?: string;
|
|
1267
|
-
/**
|
|
1268
|
-
* - List of time zones used in the country
|
|
1269
|
-
* (e.g., ["America/New_York", "America/Los_Angeles"]).
|
|
1270
|
-
*/
|
|
1271
|
-
timezones?: string[];
|
|
1272
|
-
/**
|
|
1273
|
-
* - Levels within the country (e.g.,
|
|
1274
|
-
* states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
|
|
1275
|
-
* {"name": "City", "slug": "city"}]).
|
|
1276
|
-
*/
|
|
1277
|
-
hierarchy?: CountryHierarchy[];
|
|
1278
|
-
/**
|
|
1279
|
-
* - International dialing code for the country
|
|
1280
|
-
* (e.g., "+1").
|
|
1281
|
-
*/
|
|
1282
|
-
phone_code?: string;
|
|
1283
|
-
/**
|
|
1284
|
-
* - Geographical latitude of the country (e.g., "37.0902").
|
|
1285
|
-
*/
|
|
1286
|
-
latitude?: string;
|
|
1287
|
-
/**
|
|
1288
|
-
* - Geographical longitude of the country (e.g.,
|
|
1289
|
-
* "-95.7129").
|
|
1290
|
-
*/
|
|
1291
|
-
longitude?: string;
|
|
1292
|
-
currency?: CurrencyObject;
|
|
1293
|
-
/**
|
|
1294
|
-
* - Indicates the type of object (e.g., "country").
|
|
1295
|
-
*/
|
|
1296
|
-
type?: string;
|
|
1297
|
-
};
|
|
1298
|
-
/** @returns {GetCountries} */
|
|
1299
|
-
declare function GetCountries(): GetCountries;
|
|
1300
|
-
type GetCountries = {
|
|
1301
|
-
/**
|
|
1302
|
-
* - List of countries, each containing
|
|
1303
|
-
* detailed information about individual country.
|
|
1304
|
-
*/
|
|
1305
|
-
items?: CountryObject[];
|
|
1306
|
-
page?: Page;
|
|
1307
|
-
};
|
|
1308
|
-
/** @returns {GetOneOrAllPath} */
|
|
1309
|
-
declare function GetOneOrAllPath(): GetOneOrAllPath;
|
|
1310
|
-
type GetOneOrAllPath = {
|
|
1311
|
-
/**
|
|
1312
|
-
* - Specifies the type of locality to be
|
|
1313
|
-
* retrieved, such as city, state, or pincode (e.g., "city", "state", "pincode").
|
|
1314
|
-
*/
|
|
1315
|
-
locality_type?: string;
|
|
1316
|
-
/**
|
|
1317
|
-
* - The specific value of the locality
|
|
1318
|
-
* being queried, such as the name of the city or the pincode (e.g., "Mumbai",
|
|
1319
|
-
* "400093").
|
|
1320
|
-
*/
|
|
1321
|
-
locality_value?: string;
|
|
1322
|
-
};
|
|
1323
|
-
/** @returns {GetOneOrAllQuery} */
|
|
1324
|
-
declare function GetOneOrAllQuery(): GetOneOrAllQuery;
|
|
1325
|
-
type GetOneOrAllQuery = {
|
|
1326
|
-
/**
|
|
1327
|
-
* - The name of the country to filter the results.
|
|
1328
|
-
*/
|
|
1329
|
-
country?: string;
|
|
1330
|
-
/**
|
|
1331
|
-
* - The name of the state within the specified country.
|
|
1332
|
-
*/
|
|
1333
|
-
state?: string;
|
|
1334
|
-
/**
|
|
1335
|
-
* - The name of the city within the specified state.
|
|
1336
|
-
*/
|
|
1337
|
-
city?: string;
|
|
1338
|
-
/**
|
|
1339
|
-
* - The name of the sector or area within the specified city.
|
|
1340
|
-
*/
|
|
1341
|
-
sector?: string;
|
|
1342
|
-
};
|
|
1343
|
-
/** @returns {GetOneOrAllParams} */
|
|
1344
|
-
declare function GetOneOrAllParams(): GetOneOrAllParams;
|
|
1345
|
-
type GetOneOrAllParams = {
|
|
1346
|
-
path?: GetOneOrAllPath;
|
|
1347
|
-
query?: GetOneOrAllQuery;
|
|
1348
|
-
};
|
|
1349
|
-
/** @returns {GetOneOrAll} */
|
|
1350
|
-
declare function GetOneOrAll(): GetOneOrAll;
|
|
1351
|
-
type GetOneOrAll = {
|
|
1352
|
-
/**
|
|
1353
|
-
* - Identifier for the specific operation or
|
|
1354
|
-
* query being performed.
|
|
1355
|
-
*/
|
|
1356
|
-
operation_id?: string;
|
|
1357
|
-
params?: GetOneOrAllParams;
|
|
1358
|
-
};
|
|
1359
|
-
/** @returns {LengthValidation} */
|
|
1360
|
-
declare function LengthValidation(): LengthValidation;
|
|
1361
|
-
type LengthValidation = {
|
|
1362
|
-
/**
|
|
1363
|
-
* - The minimum number of characters or digits allowed.
|
|
1364
|
-
*/
|
|
1365
|
-
min?: number;
|
|
1366
|
-
/**
|
|
1367
|
-
* - The maximum number of characters or digits allowed.
|
|
1368
|
-
*/
|
|
1369
|
-
max?: number;
|
|
1370
|
-
};
|
|
1371
|
-
/** @returns {FieldValidationRegex} */
|
|
1372
|
-
declare function FieldValidationRegex(): FieldValidationRegex;
|
|
1373
|
-
type FieldValidationRegex = {
|
|
1374
|
-
/**
|
|
1375
|
-
* - Regular expression pattern used to validate the field.
|
|
1376
|
-
*/
|
|
1377
|
-
value?: string;
|
|
1378
|
-
length?: LengthValidation;
|
|
1379
|
-
};
|
|
1380
|
-
/** @returns {FieldValidation} */
|
|
1381
|
-
declare function FieldValidation(): FieldValidation;
|
|
1382
|
-
type FieldValidation = {
|
|
1383
|
-
/**
|
|
1384
|
-
* - Specifies the validation method, such as regex
|
|
1385
|
-
* for regular expression validation.
|
|
1386
|
-
*/
|
|
1387
|
-
type?: string;
|
|
1388
|
-
regex?: FieldValidationRegex;
|
|
1389
|
-
};
|
|
1390
|
-
/** @returns {GetCountryFieldsAddressValues} */
|
|
1391
|
-
declare function GetCountryFieldsAddressValues(): GetCountryFieldsAddressValues;
|
|
1392
|
-
type GetCountryFieldsAddressValues = {
|
|
1393
|
-
get_one?: GetOneOrAll;
|
|
1394
|
-
get_all?: GetOneOrAll;
|
|
1395
|
-
};
|
|
1396
|
-
/** @returns {GetCountryFieldsAddress} */
|
|
1397
|
-
declare function GetCountryFieldsAddress(): GetCountryFieldsAddress;
|
|
1398
|
-
type GetCountryFieldsAddress = {
|
|
1399
|
-
/**
|
|
1400
|
-
* - User-friendly version of the geographical
|
|
1401
|
-
* data, which may be more descriptive or formatted differently.
|
|
1402
|
-
*/
|
|
1403
|
-
display_name: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* - URL-friendly version of the name, often used for
|
|
1406
|
-
* referencing or querying purposes.
|
|
1407
|
-
*/
|
|
1408
|
-
slug: string;
|
|
1409
|
-
/**
|
|
1410
|
-
* - Indicates whether the field is mandatory for
|
|
1411
|
-
* the user to fill out.
|
|
1412
|
-
*/
|
|
1413
|
-
required: boolean;
|
|
1414
|
-
/**
|
|
1415
|
-
* - Specifies if the field can be edited by the user.
|
|
1416
|
-
*/
|
|
1417
|
-
edit?: boolean;
|
|
1418
|
-
/**
|
|
1419
|
-
* - Defines the type of input control used for the
|
|
1420
|
-
* field (e.g., textbox).
|
|
1421
|
-
*/
|
|
1422
|
-
input: string;
|
|
1423
|
-
validation?: FieldValidation;
|
|
1424
|
-
values?: GetCountryFieldsAddressValues;
|
|
1425
|
-
/**
|
|
1426
|
-
* - The message shown to the user if the input
|
|
1427
|
-
* does not meet the validation criteria.
|
|
1428
|
-
*/
|
|
1429
|
-
error_text?: string;
|
|
1430
|
-
};
|
|
1431
|
-
/** @returns {GetCountryFieldsAddressTemplate} */
|
|
1432
|
-
declare function GetCountryFieldsAddressTemplate(): GetCountryFieldsAddressTemplate;
|
|
1433
|
-
type GetCountryFieldsAddressTemplate = {
|
|
1434
|
-
/**
|
|
1435
|
-
* - The format used to display or collect
|
|
1436
|
-
* address information during checkout.
|
|
1437
|
-
*/
|
|
1438
|
-
checkout_form: string;
|
|
1439
|
-
/**
|
|
1440
|
-
* - The format used for address entry or
|
|
1441
|
-
* display in the store's operating system.
|
|
1442
|
-
*/
|
|
1443
|
-
store_os_form: string;
|
|
1444
|
-
/**
|
|
1445
|
-
* - The general format for displaying
|
|
1446
|
-
* address information.
|
|
1447
|
-
*/
|
|
1448
|
-
default_display: string;
|
|
1449
|
-
};
|
|
1450
|
-
/** @returns {GetCountryFields} */
|
|
1451
|
-
declare function GetCountryFields(): GetCountryFields;
|
|
1452
|
-
type GetCountryFields = {
|
|
1453
|
-
/**
|
|
1454
|
-
* - Specifies the fields and
|
|
1455
|
-
* attributes related to address information, including display names, input
|
|
1456
|
-
* types, and validation rules. This section defines the details needed for
|
|
1457
|
-
* address collection and formatting.
|
|
1458
|
-
*/
|
|
1459
|
-
address: GetCountryFieldsAddress[];
|
|
1460
|
-
/**
|
|
1461
|
-
* - Lists the specific address
|
|
1462
|
-
* fields used to determine whether a location is serviceable. These fields
|
|
1463
|
-
* are crucial for validating service coverage and availability.
|
|
1464
|
-
*/
|
|
1465
|
-
serviceability_fields: string[];
|
|
1466
|
-
address_template: GetCountryFieldsAddressTemplate;
|
|
1467
|
-
};
|
|
1468
|
-
/** @returns {GetCountry} */
|
|
1469
|
-
declare function GetCountry(): GetCountry;
|
|
1470
|
-
type GetCountry = {
|
|
1471
|
-
/**
|
|
1472
|
-
* - Unique identifier for the country.
|
|
1473
|
-
*/
|
|
1474
|
-
id?: string;
|
|
1475
|
-
/**
|
|
1476
|
-
* - It represent a country name.
|
|
1477
|
-
*/
|
|
1478
|
-
name?: string;
|
|
1479
|
-
/**
|
|
1480
|
-
* - User-friendly version of the geographical
|
|
1481
|
-
* data, which may be more descriptive or formatted differently.
|
|
1482
|
-
*/
|
|
1483
|
-
display_name?: string;
|
|
1484
|
-
/**
|
|
1485
|
-
* - Two-letter ISO code representing the country.
|
|
1486
|
-
*/
|
|
1487
|
-
iso2?: string;
|
|
1488
|
-
/**
|
|
1489
|
-
* - Three-letter ISO code representing the country.
|
|
1490
|
-
*/
|
|
1491
|
-
iso3?: string;
|
|
1492
|
-
/**
|
|
1493
|
-
* - List of time zones used in the country
|
|
1494
|
-
* (e.g., ["America/New_York", "America/Los_Angeles"]).
|
|
1495
|
-
*/
|
|
1496
|
-
timezones?: string[];
|
|
1497
|
-
/**
|
|
1498
|
-
* - Levels within the country (e.g.,
|
|
1499
|
-
* states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"},
|
|
1500
|
-
* {"name": "City", "slug": "city"}]).
|
|
1501
|
-
*/
|
|
1502
|
-
hierarchy?: CountryHierarchy[];
|
|
1503
|
-
/**
|
|
1504
|
-
* - International dialing code for the country
|
|
1505
|
-
* (e.g., "+1").
|
|
1506
|
-
*/
|
|
1507
|
-
phone_code?: string;
|
|
1508
|
-
/**
|
|
1509
|
-
* - Geographical latitude of the country (e.g., "37.0902").
|
|
1510
|
-
*/
|
|
1511
|
-
latitude?: string;
|
|
1512
|
-
/**
|
|
1513
|
-
* - Geographical longitude of the country (e.g.,
|
|
1514
|
-
* "-95.7129").
|
|
1515
|
-
*/
|
|
1516
|
-
longitude?: string;
|
|
1517
|
-
currency?: CurrencyObject;
|
|
1518
|
-
/**
|
|
1519
|
-
* - Indicates the type of object (e.g., "country").
|
|
1520
|
-
*/
|
|
1521
|
-
type?: string;
|
|
1522
|
-
fields?: GetCountryFields;
|
|
1523
|
-
};
|
|
1524
|
-
/** @returns {Page} */
|
|
1525
|
-
declare function Page(): Page;
|
|
1526
|
-
type Page = {
|
|
1527
|
-
/**
|
|
1528
|
-
* - The total number of items on the page.
|
|
1529
|
-
*/
|
|
1530
|
-
item_total?: number;
|
|
1531
|
-
/**
|
|
1532
|
-
* - The identifier for the next page.
|
|
1533
|
-
*/
|
|
1534
|
-
next_id?: string;
|
|
1535
|
-
/**
|
|
1536
|
-
* - Indicates whether there is a previous page.
|
|
1537
|
-
*/
|
|
1538
|
-
has_previous?: boolean;
|
|
1539
|
-
/**
|
|
1540
|
-
* - Indicates whether there is a next page.
|
|
1541
|
-
*/
|
|
1542
|
-
has_next?: boolean;
|
|
1543
|
-
/**
|
|
1544
|
-
* - The current page number.
|
|
1545
|
-
*/
|
|
1546
|
-
current?: number;
|
|
1547
|
-
/**
|
|
1548
|
-
* - The type of the page, such as 'PageType'.
|
|
1549
|
-
*/
|
|
1550
|
-
type: string;
|
|
1551
|
-
/**
|
|
1552
|
-
* - The number of items per page.
|
|
1553
|
-
*/
|
|
1554
|
-
size?: number;
|
|
1555
|
-
};
|
|
1556
|
-
/** @returns {Localities} */
|
|
1557
|
-
declare function Localities(): Localities;
|
|
1558
|
-
type Localities = {
|
|
1559
|
-
/**
|
|
1560
|
-
* - A unique identifier for the locality.
|
|
1561
|
-
*/
|
|
1562
|
-
id?: string;
|
|
1563
|
-
/**
|
|
1564
|
-
* - The actual geographical data, such as country
|
|
1565
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
1566
|
-
* (Dubai), or local sectors (Deira).
|
|
1567
|
-
*/
|
|
1568
|
-
name?: string;
|
|
1569
|
-
/**
|
|
1570
|
-
* - User-friendly version of the geographical
|
|
1571
|
-
* data, which may be more descriptive or formatted differently.
|
|
1572
|
-
*/
|
|
1573
|
-
display_name?: string;
|
|
1574
|
-
/**
|
|
1575
|
-
* - Identifiers for the parent of the current locality.
|
|
1576
|
-
*/
|
|
1577
|
-
parent_ids?: string[];
|
|
1578
|
-
/**
|
|
1579
|
-
* - Specifies the category of the address component,
|
|
1580
|
-
* such as pincode, state, city, country, or sector.
|
|
1581
|
-
*/
|
|
1582
|
-
type?: string;
|
|
1583
|
-
/**
|
|
1584
|
-
* - Representing the localities that
|
|
1585
|
-
* are associated with or contained within the current locality. It provides
|
|
1586
|
-
* detailed information about the parent localities, including their names,
|
|
1587
|
-
* identifiers, and hierarchical relationships.
|
|
1588
|
-
*/
|
|
1589
|
-
localities?: LocalityParent[];
|
|
1590
|
-
};
|
|
1591
|
-
/** @returns {LocalityParent} */
|
|
1592
|
-
declare function LocalityParent(): LocalityParent;
|
|
1593
|
-
type LocalityParent = {
|
|
1594
|
-
/**
|
|
1595
|
-
* - A unique identifier for the locality.
|
|
1596
|
-
*/
|
|
1597
|
-
id?: string;
|
|
1598
|
-
/**
|
|
1599
|
-
* - The actual geographical data, such as country
|
|
1600
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
1601
|
-
* (Dubai), or local sectors (Deira).
|
|
1602
|
-
*/
|
|
1603
|
-
name?: string;
|
|
1604
|
-
/**
|
|
1605
|
-
* - User-friendly version of the geographical
|
|
1606
|
-
* data, which may be more descriptive or formatted differently.
|
|
1607
|
-
*/
|
|
1608
|
-
display_name?: string;
|
|
1609
|
-
/**
|
|
1610
|
-
* - Identifiers for the parent of the current locality.
|
|
1611
|
-
*/
|
|
1612
|
-
parent_ids?: string[];
|
|
1613
|
-
/**
|
|
1614
|
-
* - Specifies the category of the address component,
|
|
1615
|
-
* such as pincode, state, city, country, or sector.
|
|
1616
|
-
*/
|
|
1617
|
-
type?: string;
|
|
1618
|
-
};
|
|
1619
|
-
/** @returns {GetLocalities} */
|
|
1620
|
-
declare function GetLocalities(): GetLocalities;
|
|
1621
|
-
type GetLocalities = {
|
|
1622
|
-
/**
|
|
1623
|
-
* - List of localities, each containing
|
|
1624
|
-
* detailed information about individual locality.
|
|
1625
|
-
*/
|
|
1626
|
-
items?: Localities[];
|
|
1627
|
-
page?: Page;
|
|
1628
|
-
};
|
|
1629
|
-
/** @returns {GetLocality} */
|
|
1630
|
-
declare function GetLocality(): GetLocality;
|
|
1631
|
-
type GetLocality = {
|
|
1632
|
-
/**
|
|
1633
|
-
* - A unique identifier for the locality.
|
|
1634
|
-
*/
|
|
1635
|
-
id?: string;
|
|
1636
|
-
/**
|
|
1637
|
-
* - The actual geographical data, such as country
|
|
1638
|
-
* names (India), state names (Maharashtra), pin codes (400603), city names
|
|
1639
|
-
* (Dubai), or local sectors (Deira).
|
|
1640
|
-
*/
|
|
1641
|
-
name?: string;
|
|
1642
|
-
/**
|
|
1643
|
-
* - User-friendly version of the geographical
|
|
1644
|
-
* data, which may be more descriptive or formatted differently.
|
|
1645
|
-
*/
|
|
1646
|
-
display_name?: string;
|
|
1647
|
-
/**
|
|
1648
|
-
* - Identifiers for the parent of the current locality.
|
|
1649
|
-
*/
|
|
1650
|
-
parent_ids?: string[];
|
|
1651
|
-
/**
|
|
1652
|
-
* - Specifies the category of the address component,
|
|
1653
|
-
* such as pincode, state, city, country, or sector.
|
|
1654
|
-
*/
|
|
1655
|
-
type?: string;
|
|
1656
|
-
/**
|
|
1657
|
-
* - Representing the localities that
|
|
1658
|
-
* are associated with or contained within the current locality. It provides
|
|
1659
|
-
* detailed information about the parent localities, including their names,
|
|
1660
|
-
* identifiers, and hierarchical relationships.
|
|
1661
|
-
*/
|
|
1662
|
-
localities?: LocalityParent[];
|
|
1663
|
-
};
|
|
1664
|
-
/** @returns {ErrorResponse} */
|
|
1665
|
-
declare function ErrorResponse(): ErrorResponse;
|
|
1666
|
-
type ErrorResponse = {
|
|
1667
|
-
/**
|
|
1668
|
-
* - Error code identifying the type of error.
|
|
1669
|
-
*/
|
|
1670
|
-
error?: string;
|
|
1671
|
-
/**
|
|
1672
|
-
* - User-friendly explanation of what went wrong.
|
|
1673
|
-
*/
|
|
1674
|
-
message?: string;
|
|
1675
|
-
};
|