@cavuno/board 1.10.0 → 1.12.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.
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ async function clearSession(storage) {
149
149
  }
150
150
 
151
151
  // src/version.ts
152
- var SDK_VERSION = "1.10.0";
152
+ var SDK_VERSION = "1.12.0";
153
153
 
154
154
  // src/client.ts
155
155
  function isRawBody(body) {
@@ -653,6 +653,27 @@ function jobAlertsNamespace(client) {
653
653
  };
654
654
  }
655
655
 
656
+ // src/namespaces/job-posting.ts
657
+ function jobPostingNamespace(client) {
658
+ return {
659
+ /** List the board's job-posting plans (defaults to the `job_posting` purpose). */
660
+ plans(query, options) {
661
+ return client.fetch("/job-postings/plans", {
662
+ ...options,
663
+ query
664
+ });
665
+ },
666
+ /** Submit a job posting. Returns the status-discriminated outcome. */
667
+ create(input, options) {
668
+ return client.fetch("/job-postings", {
669
+ ...options,
670
+ method: "POST",
671
+ body: input
672
+ });
673
+ }
674
+ };
675
+ }
676
+
656
677
  // src/namespaces/jobs.ts
657
678
  function jobsNamespace(client) {
658
679
  return {
@@ -867,6 +888,20 @@ function salariesNamespace(client) {
867
888
  `/salaries/titles/${encodeURIComponent(categorySlug)}`,
868
889
  { ...options, query }
869
890
  );
891
+ },
892
+ /** The title's salary across locations (cross-axis). */
893
+ locations(categorySlug, query, options) {
894
+ return client.fetch(
895
+ `/salaries/titles/${encodeURIComponent(categorySlug)}/locations`,
896
+ { ...options, query }
897
+ );
898
+ },
899
+ /** The title's salary in one place (cross-axis detail). */
900
+ location(categorySlug, locationSlug, query, options) {
901
+ return client.fetch(
902
+ `/salaries/titles/${encodeURIComponent(categorySlug)}/${encodeURIComponent(locationSlug)}`,
903
+ { ...options, query }
904
+ );
870
905
  }
871
906
  },
872
907
  skills: {
@@ -881,6 +916,20 @@ function salariesNamespace(client) {
881
916
  `/salaries/skills/${encodeURIComponent(skillSlug)}`,
882
917
  { ...options, query }
883
918
  );
919
+ },
920
+ /** The skill's salary across locations (cross-axis). */
921
+ locations(skillSlug, query, options) {
922
+ return client.fetch(
923
+ `/salaries/skills/${encodeURIComponent(skillSlug)}/locations`,
924
+ { ...options, query }
925
+ );
926
+ },
927
+ /** The skill's salary in one place (cross-axis detail). */
928
+ location(skillSlug, locationSlug, query, options) {
929
+ return client.fetch(
930
+ `/salaries/skills/${encodeURIComponent(skillSlug)}/${encodeURIComponent(locationSlug)}`,
931
+ { ...options, query }
932
+ );
884
933
  }
885
934
  },
886
935
  locations: {
@@ -896,6 +945,20 @@ function salariesNamespace(client) {
896
945
  `/salaries/locations/${encodeURIComponent(locationSlug)}`,
897
946
  { ...options, query }
898
947
  );
948
+ },
949
+ /** The titles with salary data in one place (cross-axis). */
950
+ titles(locationSlug, query, options) {
951
+ return client.fetch(
952
+ `/salaries/locations/${encodeURIComponent(locationSlug)}/titles`,
953
+ { ...options, query }
954
+ );
955
+ },
956
+ /** The skills with salary data in one place (cross-axis). */
957
+ skills(locationSlug, query, options) {
958
+ return client.fetch(
959
+ `/salaries/locations/${encodeURIComponent(locationSlug)}/skills`,
960
+ { ...options, query }
961
+ );
899
962
  }
900
963
  }
901
964
  };
@@ -986,6 +1049,7 @@ function createBoardClient(options) {
986
1049
  taxonomy: taxonomyNamespace(client),
987
1050
  redirects: redirectsNamespace(client),
988
1051
  jobAlerts: jobAlertsNamespace(client),
1052
+ jobPosting: jobPostingNamespace(client),
989
1053
  salaries: salariesNamespace(client)
990
1054
  };
991
1055
  }
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ async function clearSession(storage) {
109
109
  }
110
110
 
111
111
  // src/version.ts
112
- var SDK_VERSION = "1.10.0";
112
+ var SDK_VERSION = "1.12.0";
113
113
 
114
114
  // src/client.ts
115
115
  function isRawBody(body) {
@@ -613,6 +613,27 @@ function jobAlertsNamespace(client) {
613
613
  };
614
614
  }
615
615
 
616
+ // src/namespaces/job-posting.ts
617
+ function jobPostingNamespace(client) {
618
+ return {
619
+ /** List the board's job-posting plans (defaults to the `job_posting` purpose). */
620
+ plans(query, options) {
621
+ return client.fetch("/job-postings/plans", {
622
+ ...options,
623
+ query
624
+ });
625
+ },
626
+ /** Submit a job posting. Returns the status-discriminated outcome. */
627
+ create(input, options) {
628
+ return client.fetch("/job-postings", {
629
+ ...options,
630
+ method: "POST",
631
+ body: input
632
+ });
633
+ }
634
+ };
635
+ }
636
+
616
637
  // src/namespaces/jobs.ts
617
638
  function jobsNamespace(client) {
618
639
  return {
@@ -827,6 +848,20 @@ function salariesNamespace(client) {
827
848
  `/salaries/titles/${encodeURIComponent(categorySlug)}`,
828
849
  { ...options, query }
829
850
  );
851
+ },
852
+ /** The title's salary across locations (cross-axis). */
853
+ locations(categorySlug, query, options) {
854
+ return client.fetch(
855
+ `/salaries/titles/${encodeURIComponent(categorySlug)}/locations`,
856
+ { ...options, query }
857
+ );
858
+ },
859
+ /** The title's salary in one place (cross-axis detail). */
860
+ location(categorySlug, locationSlug, query, options) {
861
+ return client.fetch(
862
+ `/salaries/titles/${encodeURIComponent(categorySlug)}/${encodeURIComponent(locationSlug)}`,
863
+ { ...options, query }
864
+ );
830
865
  }
831
866
  },
832
867
  skills: {
@@ -841,6 +876,20 @@ function salariesNamespace(client) {
841
876
  `/salaries/skills/${encodeURIComponent(skillSlug)}`,
842
877
  { ...options, query }
843
878
  );
879
+ },
880
+ /** The skill's salary across locations (cross-axis). */
881
+ locations(skillSlug, query, options) {
882
+ return client.fetch(
883
+ `/salaries/skills/${encodeURIComponent(skillSlug)}/locations`,
884
+ { ...options, query }
885
+ );
886
+ },
887
+ /** The skill's salary in one place (cross-axis detail). */
888
+ location(skillSlug, locationSlug, query, options) {
889
+ return client.fetch(
890
+ `/salaries/skills/${encodeURIComponent(skillSlug)}/${encodeURIComponent(locationSlug)}`,
891
+ { ...options, query }
892
+ );
844
893
  }
845
894
  },
846
895
  locations: {
@@ -856,6 +905,20 @@ function salariesNamespace(client) {
856
905
  `/salaries/locations/${encodeURIComponent(locationSlug)}`,
857
906
  { ...options, query }
858
907
  );
908
+ },
909
+ /** The titles with salary data in one place (cross-axis). */
910
+ titles(locationSlug, query, options) {
911
+ return client.fetch(
912
+ `/salaries/locations/${encodeURIComponent(locationSlug)}/titles`,
913
+ { ...options, query }
914
+ );
915
+ },
916
+ /** The skills with salary data in one place (cross-axis). */
917
+ skills(locationSlug, query, options) {
918
+ return client.fetch(
919
+ `/salaries/locations/${encodeURIComponent(locationSlug)}/skills`,
920
+ { ...options, query }
921
+ );
859
922
  }
860
923
  }
861
924
  };
@@ -946,6 +1009,7 @@ function createBoardClient(options) {
946
1009
  taxonomy: taxonomyNamespace(client),
947
1010
  redirects: redirectsNamespace(client),
948
1011
  jobAlerts: jobAlertsNamespace(client),
1012
+ jobPosting: jobPostingNamespace(client),
949
1013
  salaries: salariesNamespace(client)
950
1014
  };
951
1015
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "Typed isomorphic client for the Cavuno Board API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.0",
2
+ "version": "1.12.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-auth",