@acm-uiuc/js-shared 2.2.0 → 2.4.0

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.
@@ -1,3 +1,3 @@
1
- export declare const MembershipPriceCents = 2000;
1
+ export declare const MembershipPriceCents = 3000;
2
2
  export declare const MembershipPriceString: string;
3
- export declare const MembershipPriceIdStripe = "price_1MUGIRDiGOXU9RuSChPYK6wZ";
3
+ export declare const MembershipPriceIdStripe = "price_1SBNJlDiGOXU9RuSjHO7cwMX";
package/dist/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- export const MembershipPriceCents = 2000;
1
+ export const MembershipPriceCents = 3000;
2
2
  export const MembershipPriceString = (MembershipPriceCents / 100).toLocaleString("en-US", { style: "currency", currency: "USD" });
3
- export const MembershipPriceIdStripe = "price_1MUGIRDiGOXU9RuSChPYK6wZ";
3
+ export const MembershipPriceIdStripe = "price_1SBNJlDiGOXU9RuSjHO7cwMX";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./orgs";
2
2
  export * from "./constants";
3
+ export * from "./util";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./orgs";
2
2
  export * from "./constants";
3
+ export * from "./util";
package/dist/orgs.d.ts CHANGED
@@ -3,3 +3,33 @@ export declare const CommitteeCoreList: [string, ...string[]];
3
3
  export declare const CommitteePartnerList: string[];
4
4
  export declare const CoreOrganizationList: [string, ...string[]];
5
5
  export declare const AllOrganizationList: [string, ...string[]];
6
+ export type ACMOrganization = typeof AllOrganizationList[number];
7
+ export declare const OrganizationShortIdentifierMapping: {
8
+ readonly ACM: "acm";
9
+ readonly SIGPwny: "sigpwny";
10
+ readonly SIGCHI: "sigchi";
11
+ readonly GameBuilders: "gamebuilders";
12
+ readonly SIGAIDA: "sigaida";
13
+ readonly SIGGRAPH: "siggraph";
14
+ readonly ICPC: "icpc";
15
+ readonly SIGMobile: "sigmobile";
16
+ readonly SIGMusic: "sigmusic";
17
+ readonly GLUG: "glug";
18
+ readonly SIGNLL: "signll";
19
+ readonly SIGma: "sigma";
20
+ readonly SIGQuantum: "sigquantum";
21
+ readonly SIGecom: "sigecom";
22
+ readonly SIGPLAN: "sigplan";
23
+ readonly SIGPolicy: "sigpolicy";
24
+ readonly SIGARCH: "sigarch";
25
+ readonly SIGRobotics: "sigrobotics";
26
+ readonly SIGtricity: "sigtricity";
27
+ readonly "Infrastructure Committee": "infra";
28
+ readonly "Social Committee": "social";
29
+ readonly "Mentorship Committee": "mentorship";
30
+ readonly "Academic Committee": "academic";
31
+ readonly "Corporate Committee": "corporate";
32
+ readonly "Marketing Committee": "marketing";
33
+ readonly "Reflections | Projections": "reflproj";
34
+ readonly HackIllinois: "hackillinois";
35
+ };
package/dist/orgs.js CHANGED
@@ -29,3 +29,32 @@ export const CommitteeCoreList = [
29
29
  export const CommitteePartnerList = ["Reflections | Projections", "HackIllinois"];
30
30
  export const CoreOrganizationList = ["ACM", ...SIGList, ...CommitteeCoreList];
31
31
  export const AllOrganizationList = [...CoreOrganizationList, ...CommitteePartnerList];
32
+ export const OrganizationShortIdentifierMapping = {
33
+ "ACM": "acm",
34
+ "SIGPwny": "sigpwny",
35
+ "SIGCHI": "sigchi",
36
+ "GameBuilders": "gamebuilders",
37
+ "SIGAIDA": "sigaida",
38
+ "SIGGRAPH": "siggraph",
39
+ "ICPC": "icpc",
40
+ "SIGMobile": "sigmobile",
41
+ "SIGMusic": "sigmusic",
42
+ "GLUG": "glug",
43
+ "SIGNLL": "signll",
44
+ "SIGma": "sigma",
45
+ "SIGQuantum": "sigquantum",
46
+ "SIGecom": "sigecom",
47
+ "SIGPLAN": "sigplan",
48
+ "SIGPolicy": "sigpolicy",
49
+ "SIGARCH": "sigarch",
50
+ "SIGRobotics": "sigrobotics",
51
+ "SIGtricity": "sigtricity",
52
+ "Infrastructure Committee": "infra",
53
+ "Social Committee": "social",
54
+ "Mentorship Committee": "mentorship",
55
+ "Academic Committee": "academic",
56
+ "Corporate Committee": "corporate",
57
+ "Marketing Committee": "marketing",
58
+ "Reflections | Projections": "reflproj",
59
+ "HackIllinois": "hackillinois",
60
+ };
package/dist/util.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ type ValueOf<T> = T[keyof T];
2
+ export type EnsureUniqueValues<T extends Record<string, string>> = {
3
+ [K in keyof T]: ValueOf<T> extends T[K] ? T[K] extends ValueOf<Omit<T, K>> ? never : T[K] : T[K];
4
+ };
5
+ export {};
package/dist/util.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acm-uiuc/js-shared",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "ACM UIUC Shared JS code",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",