@myrjfa/state 1.0.5 → 1.0.7
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/dist/lib/data/countryStates.d.ts +12 -0
- package/dist/lib/data/countryStates.d.ts.map +1 -1
- package/dist/lib/data/countryStates.js +533 -250
- package/dist/lib/models/application.d.ts +1 -0
- package/dist/lib/models/application.d.ts.map +1 -1
- package/dist/lib/models/blog.d.ts +4 -4
- package/dist/lib/models/opportunities/freelance.d.ts +499 -0
- package/dist/lib/models/opportunities/freelance.d.ts.map +1 -0
- package/dist/lib/models/opportunities/freelance.js +12 -0
- package/dist/lib/models/opportunities/internship.d.ts +476 -0
- package/dist/lib/models/opportunities/internship.d.ts.map +1 -0
- package/dist/lib/models/opportunities/internship.js +7 -0
- package/dist/lib/models/opportunities/job.d.ts +612 -0
- package/dist/lib/models/opportunities/job.d.ts.map +1 -0
- package/dist/lib/models/opportunities/job.js +26 -0
- package/dist/lib/models/opportunities/opportunity.d.ts +582 -0
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -0
- package/dist/lib/models/opportunities/opportunity.js +227 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts +453 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -0
- package/dist/lib/models/opportunities/volunteerJob.js +5 -0
- package/dist/lib/models/portfolio.d.ts +2 -2
- package/dist/lib/models/tile.d.ts +3 -0
- package/dist/lib/models/tile.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export interface Country {
|
|
|
3
3
|
phoneCode: string;
|
|
4
4
|
iso: string;
|
|
5
5
|
states: string[];
|
|
6
|
+
currency: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const COUNTRIES: Country[];
|
|
8
9
|
export declare const COUNTRIES_BY_CODE: Record<string, Country>;
|
|
@@ -16,4 +17,15 @@ export declare function getCountriesWithPhoneCodes(): string[];
|
|
|
16
17
|
export declare function getCountryByName(name: string): Country | undefined;
|
|
17
18
|
export declare function searchCountries(query: string): Country[];
|
|
18
19
|
export declare function searchStatesOfCountry(countryName: string, query: string): string[];
|
|
20
|
+
export declare function getCurrencies(): string[];
|
|
21
|
+
export declare function getCurrency(countryName: string): string | null;
|
|
22
|
+
export declare function getCountiesByCurrency(currencyName: string): string[];
|
|
23
|
+
/**
|
|
24
|
+
* Converts a price from one currency to another.
|
|
25
|
+
* @param amount - The amount to convert
|
|
26
|
+
* @param fromCurrency - The source currency code
|
|
27
|
+
* @param toCurrency - The target currency code
|
|
28
|
+
* @returns The converted amount
|
|
29
|
+
*/
|
|
30
|
+
export declare function convertCurrency(amount: number, fromCurrency: string, toCurrency: string | undefined): number;
|
|
19
31
|
//# sourceMappingURL=countryStates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countryStates.d.ts","sourceRoot":"","sources":["../../../src/lib/data/countryStates.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"countryStates.d.ts","sourceRoot":"","sources":["../../../src/lib/data/countryStates.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,EAo4N9B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGrB,CAAC;AAElC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,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