@wise-old-man/utils 3.2.4 → 3.3.1
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/cjs/index.cjs +6 -0
- package/dist/es/index.js +6 -0
- package/dist/es/index.mjs +6 -0
- package/dist/index.d.ts +12 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1017,6 +1017,9 @@ const Country = {
|
|
|
1017
1017
|
FR: 'FR',
|
|
1018
1018
|
GA: 'GA',
|
|
1019
1019
|
GB: 'GB',
|
|
1020
|
+
GB_NIR: 'GB_NIR',
|
|
1021
|
+
GB_SCT: 'GB_SCT',
|
|
1022
|
+
GB_WLS: 'GB_WLS',
|
|
1020
1023
|
GD: 'GD',
|
|
1021
1024
|
GE: 'GE',
|
|
1022
1025
|
GF: 'GF',
|
|
@@ -1304,6 +1307,9 @@ const CountryProps = {
|
|
|
1304
1307
|
[Country.FR]: { code: 'FR', name: 'France' },
|
|
1305
1308
|
[Country.GA]: { code: 'GA', name: 'Gabon' },
|
|
1306
1309
|
[Country.GB]: { code: 'GB', name: 'United Kingdom' },
|
|
1310
|
+
[Country.GB_NIR]: { code: 'GB_NIR', name: 'Northen Ireland' },
|
|
1311
|
+
[Country.GB_SCT]: { code: 'GB_SCT', name: 'Scotland' },
|
|
1312
|
+
[Country.GB_WLS]: { code: 'GB_WLS', name: 'Wales' },
|
|
1307
1313
|
[Country.GD]: { code: 'GD', name: 'Grenada' },
|
|
1308
1314
|
[Country.GE]: { code: 'GE', name: 'Georgia' },
|
|
1309
1315
|
[Country.GF]: { code: 'GF', name: 'French Guiana' },
|
package/dist/es/index.js
CHANGED
|
@@ -1015,6 +1015,9 @@ const Country = {
|
|
|
1015
1015
|
FR: 'FR',
|
|
1016
1016
|
GA: 'GA',
|
|
1017
1017
|
GB: 'GB',
|
|
1018
|
+
GB_NIR: 'GB_NIR',
|
|
1019
|
+
GB_SCT: 'GB_SCT',
|
|
1020
|
+
GB_WLS: 'GB_WLS',
|
|
1018
1021
|
GD: 'GD',
|
|
1019
1022
|
GE: 'GE',
|
|
1020
1023
|
GF: 'GF',
|
|
@@ -1302,6 +1305,9 @@ const CountryProps = {
|
|
|
1302
1305
|
[Country.FR]: { code: 'FR', name: 'France' },
|
|
1303
1306
|
[Country.GA]: { code: 'GA', name: 'Gabon' },
|
|
1304
1307
|
[Country.GB]: { code: 'GB', name: 'United Kingdom' },
|
|
1308
|
+
[Country.GB_NIR]: { code: 'GB_NIR', name: 'Northen Ireland' },
|
|
1309
|
+
[Country.GB_SCT]: { code: 'GB_SCT', name: 'Scotland' },
|
|
1310
|
+
[Country.GB_WLS]: { code: 'GB_WLS', name: 'Wales' },
|
|
1305
1311
|
[Country.GD]: { code: 'GD', name: 'Grenada' },
|
|
1306
1312
|
[Country.GE]: { code: 'GE', name: 'Georgia' },
|
|
1307
1313
|
[Country.GF]: { code: 'GF', name: 'French Guiana' },
|
package/dist/es/index.mjs
CHANGED
|
@@ -1015,6 +1015,9 @@ const Country = {
|
|
|
1015
1015
|
FR: 'FR',
|
|
1016
1016
|
GA: 'GA',
|
|
1017
1017
|
GB: 'GB',
|
|
1018
|
+
GB_NIR: 'GB_NIR',
|
|
1019
|
+
GB_SCT: 'GB_SCT',
|
|
1020
|
+
GB_WLS: 'GB_WLS',
|
|
1018
1021
|
GD: 'GD',
|
|
1019
1022
|
GE: 'GE',
|
|
1020
1023
|
GF: 'GF',
|
|
@@ -1302,6 +1305,9 @@ const CountryProps = {
|
|
|
1302
1305
|
[Country.FR]: { code: 'FR', name: 'France' },
|
|
1303
1306
|
[Country.GA]: { code: 'GA', name: 'Gabon' },
|
|
1304
1307
|
[Country.GB]: { code: 'GB', name: 'United Kingdom' },
|
|
1308
|
+
[Country.GB_NIR]: { code: 'GB_NIR', name: 'Northen Ireland' },
|
|
1309
|
+
[Country.GB_SCT]: { code: 'GB_SCT', name: 'Scotland' },
|
|
1310
|
+
[Country.GB_WLS]: { code: 'GB_WLS', name: 'Wales' },
|
|
1305
1311
|
[Country.GD]: { code: 'GD', name: 'Grenada' },
|
|
1306
1312
|
[Country.GE]: { code: 'GE', name: 'Georgia' },
|
|
1307
1313
|
[Country.GF]: { code: 'GF', name: 'French Guiana' },
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,11 @@ export type Group = {
|
|
|
65
65
|
updatedAt: Date;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
export type GroupRoleOrder = {
|
|
69
|
+
role: GroupRole;
|
|
70
|
+
index: number;
|
|
71
|
+
};
|
|
72
|
+
|
|
68
73
|
type Participation = {
|
|
69
74
|
playerId: number;
|
|
70
75
|
competitionId: number;
|
|
@@ -982,6 +987,9 @@ declare const Country: {
|
|
|
982
987
|
readonly FR: "FR";
|
|
983
988
|
readonly GA: "GA";
|
|
984
989
|
readonly GB: "GB";
|
|
990
|
+
readonly GB_NIR: "GB_NIR";
|
|
991
|
+
readonly GB_SCT: "GB_SCT";
|
|
992
|
+
readonly GB_WLS: "GB_WLS";
|
|
985
993
|
readonly GD: "GD";
|
|
986
994
|
readonly GE: "GE";
|
|
987
995
|
readonly GF: "GF";
|
|
@@ -1322,8 +1330,9 @@ interface GroupListItem extends Omit<Group, 'verificationHash'> {
|
|
|
1322
1330
|
memberCount: number;
|
|
1323
1331
|
}
|
|
1324
1332
|
interface GroupDetails extends GroupListItem {
|
|
1325
|
-
socialLinks
|
|
1333
|
+
socialLinks: GroupSocialLinks;
|
|
1326
1334
|
memberships: MembershipWithPlayer[];
|
|
1335
|
+
roleOrders: GroupRoleOrder[];
|
|
1327
1336
|
}
|
|
1328
1337
|
interface MembershipWithGroup extends Membership {
|
|
1329
1338
|
group: GroupListItem;
|
|
@@ -1565,7 +1574,7 @@ interface CountryDetails {
|
|
|
1565
1574
|
name: string;
|
|
1566
1575
|
}
|
|
1567
1576
|
declare const CountryProps: MapOf<Country, CountryDetails>;
|
|
1568
|
-
declare const COUNTRY_CODES: ("AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW")[];
|
|
1577
|
+
declare const COUNTRY_CODES: ("AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GB_NIR" | "GB_SCT" | "GB_WLS" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW")[];
|
|
1569
1578
|
declare function isCountry(countryCodeString: string): countryCodeString is Country;
|
|
1570
1579
|
declare function findCountry(countryIdentifier: string): CountryDetails | undefined;
|
|
1571
1580
|
declare function findCountryByName(countryName: string): CountryDetails | undefined;
|
|
@@ -1827,6 +1836,7 @@ type EditGroupPayload = Partial<CreateGroupPayload> & {
|
|
|
1827
1836
|
bannerImage?: string;
|
|
1828
1837
|
profileImage?: string;
|
|
1829
1838
|
socialLinks?: Partial<GroupSocialLinks>;
|
|
1839
|
+
roleOrders?: Array<GroupRoleOrder>;
|
|
1830
1840
|
};
|
|
1831
1841
|
interface CreateGroupResponse {
|
|
1832
1842
|
group: GroupDetails;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|