File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ declare interface Marketplace {
2
+ code : string ;
3
+ id : string ;
4
+ name : string ;
5
+ region : string ;
6
+ domain ?: string ;
7
+ mwsDomain ?: string ;
8
+ advertisingApiDomain ?: string ;
9
+ imagesDomain ?: string ;
10
+ vendorId ?: string ;
11
+ }
12
+
13
+ /**
14
+ * Get a marketplace by its id
15
+ * @param id The marketplace's id
16
+ * @returns The marketplace
17
+ */
18
+ declare function getMarketplaceById ( id : string ) : Marketplace | undefined
19
+
20
+ /**
21
+ * Get a marketplace by its code
22
+ * @param code The marketplace's code
23
+ * @returns The markerplace
24
+ */
25
+ declare function getMarketplaceByCode ( code : string ) : Marketplace | undefined
26
+
27
+ /**
28
+ * Get a marketplace by its domain
29
+ * @param domain The marketplace's domain
30
+ * @returns The marketplace
31
+ */
32
+ declare function getMarketplaceByDomain ( domain : string ) : Marketplace | undefined
33
+
34
+ /**
35
+ * Get several marketplaces by a MWS domain
36
+ * @param domain The MWS domain
37
+ * @returns The marketplaces
38
+ */
39
+ declare function getMarketplacesByMwsDomain ( domain : string ) : Marketplace [ ]
40
+
41
+ /**
42
+ * Get several marketplaces by a MWS region
43
+ * @param mwsRegion The MWS region
44
+ * @returns The marketplaces
45
+ */
46
+ declare function getMarketplacesByMwsRegion ( mwsRegion : string ) : Marketplace [ ]
Original file line number Diff line number Diff line change 11
11
},
12
12
"files" : [
13
13
" index.js" ,
14
+ " index.d.ts" ,
14
15
" marketplaces.json"
15
16
],
17
+ "types" : " index.d.ts" ,
16
18
"dependencies" : {
17
19
"memoizee" : " ^0.4.14"
18
20
},
You can’t perform that action at this time.
0 commit comments