@prodigio-io/sdk 1.0.1 → 1.0.3

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.d.mts CHANGED
@@ -25,7 +25,9 @@ interface Job {
25
25
  eligibilityCriteria?: string;
26
26
  salaryRange: SalaryRange | null;
27
27
  applicationDeadline: string | null;
28
+ /** ISO 8601 date string e.g. "2026-04-01T09:00:00.000Z" — use new Date(createdAt) to convert */
28
29
  createdAt: string;
30
+ /** ISO 8601 date string e.g. "2026-04-01T09:00:00.000Z" — use new Date(updatedAt) to convert */
29
31
  updatedAt: string;
30
32
  poweredBy: PoweredBy;
31
33
  }
@@ -43,12 +45,16 @@ interface CVInfo {
43
45
  mimeType: string;
44
46
  path?: string;
45
47
  }
48
+ interface Achievement {
49
+ description: string;
50
+ attachment?: UploadResult | null;
51
+ }
46
52
  interface SubmitApplicationParams {
47
53
  jobId: string;
48
54
  applicant: Applicant;
49
55
  cv: CVInfo;
50
56
  coverLetter?: string;
51
- achievements?: string[];
57
+ achievements?: Achievement[];
52
58
  }
53
59
  interface ApplicationResult {
54
60
  id: string;
@@ -66,6 +72,13 @@ interface ListJobsParams {
66
72
  status?: 'active' | 'all';
67
73
  department?: string;
68
74
  }
75
+ interface BadgeProps {
76
+ href: string;
77
+ 'data-prodigio-badge': string;
78
+ target: string;
79
+ rel: string;
80
+ text: string;
81
+ }
69
82
  declare class ProdigioError extends Error {
70
83
  readonly status: number;
71
84
  readonly code?: string | undefined;
@@ -89,6 +102,7 @@ declare class Prodigio {
89
102
  readonly applications: {
90
103
  submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
91
104
  };
105
+ static badge(poweredBy: PoweredBy): BadgeProps;
92
106
  }
93
107
 
94
- export { type Applicant, type ApplicationResult, type CVInfo, type Job, type ListJobsParams, type PoweredBy, Prodigio, type ProdigioConfig, ProdigioError, type SalaryRange, type SubmitApplicationParams, type UploadResult, Prodigio as default };
108
+ export { type Achievement, type Applicant, type ApplicationResult, type BadgeProps, type CVInfo, type Job, type ListJobsParams, type PoweredBy, Prodigio, type ProdigioConfig, ProdigioError, type SalaryRange, type SubmitApplicationParams, type UploadResult, Prodigio as default };
package/dist/index.d.ts CHANGED
@@ -25,7 +25,9 @@ interface Job {
25
25
  eligibilityCriteria?: string;
26
26
  salaryRange: SalaryRange | null;
27
27
  applicationDeadline: string | null;
28
+ /** ISO 8601 date string e.g. "2026-04-01T09:00:00.000Z" — use new Date(createdAt) to convert */
28
29
  createdAt: string;
30
+ /** ISO 8601 date string e.g. "2026-04-01T09:00:00.000Z" — use new Date(updatedAt) to convert */
29
31
  updatedAt: string;
30
32
  poweredBy: PoweredBy;
31
33
  }
@@ -43,12 +45,16 @@ interface CVInfo {
43
45
  mimeType: string;
44
46
  path?: string;
45
47
  }
48
+ interface Achievement {
49
+ description: string;
50
+ attachment?: UploadResult | null;
51
+ }
46
52
  interface SubmitApplicationParams {
47
53
  jobId: string;
48
54
  applicant: Applicant;
49
55
  cv: CVInfo;
50
56
  coverLetter?: string;
51
- achievements?: string[];
57
+ achievements?: Achievement[];
52
58
  }
53
59
  interface ApplicationResult {
54
60
  id: string;
@@ -66,6 +72,13 @@ interface ListJobsParams {
66
72
  status?: 'active' | 'all';
67
73
  department?: string;
68
74
  }
75
+ interface BadgeProps {
76
+ href: string;
77
+ 'data-prodigio-badge': string;
78
+ target: string;
79
+ rel: string;
80
+ text: string;
81
+ }
69
82
  declare class ProdigioError extends Error {
70
83
  readonly status: number;
71
84
  readonly code?: string | undefined;
@@ -89,6 +102,7 @@ declare class Prodigio {
89
102
  readonly applications: {
90
103
  submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
91
104
  };
105
+ static badge(poweredBy: PoweredBy): BadgeProps;
92
106
  }
93
107
 
94
- export { type Applicant, type ApplicationResult, type CVInfo, type Job, type ListJobsParams, type PoweredBy, Prodigio, type ProdigioConfig, ProdigioError, type SalaryRange, type SubmitApplicationParams, type UploadResult, Prodigio as default };
108
+ export { type Achievement, type Applicant, type ApplicationResult, type BadgeProps, type CVInfo, type Job, type ListJobsParams, type PoweredBy, Prodigio, type ProdigioConfig, ProdigioError, type SalaryRange, type SubmitApplicationParams, type UploadResult, Prodigio as default };
package/dist/index.js CHANGED
@@ -122,6 +122,18 @@ var Prodigio = class {
122
122
  }
123
123
  return res.json();
124
124
  }
125
+ // ── Badge ─────────────────────────────────────────────────────────────────
126
+ // Returns props to spread onto your <a> element. The data-prodigio-badge
127
+ // attribute is required for compliance detection.
128
+ static badge(poweredBy) {
129
+ return {
130
+ href: poweredBy.url,
131
+ "data-prodigio-badge": "true",
132
+ target: "_blank",
133
+ rel: "noopener noreferrer",
134
+ text: poweredBy.text
135
+ };
136
+ }
125
137
  };
126
138
  var index_default = Prodigio;
127
139
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -96,6 +96,18 @@ var Prodigio = class {
96
96
  }
97
97
  return res.json();
98
98
  }
99
+ // ── Badge ─────────────────────────────────────────────────────────────────
100
+ // Returns props to spread onto your <a> element. The data-prodigio-badge
101
+ // attribute is required for compliance detection.
102
+ static badge(poweredBy) {
103
+ return {
104
+ href: poweredBy.url,
105
+ "data-prodigio-badge": "true",
106
+ target: "_blank",
107
+ rel: "noopener noreferrer",
108
+ text: poweredBy.text
109
+ };
110
+ }
99
111
  };
100
112
  var index_default = Prodigio;
101
113
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prodigio-io/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Official JavaScript SDK for the Prodigio hiring API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",