@prodigio-io/sdk 1.0.3 → 1.0.5
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +18 -6
- package/dist/index.mjs +18 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -102,7 +102,12 @@ declare class Prodigio {
|
|
|
102
102
|
readonly applications: {
|
|
103
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
104
104
|
};
|
|
105
|
-
static
|
|
105
|
+
static readonly POWERED_BY: PoweredBy;
|
|
106
|
+
static badge(poweredBy?: PoweredBy): BadgeProps;
|
|
107
|
+
static meta(): {
|
|
108
|
+
name: string;
|
|
109
|
+
content: string;
|
|
110
|
+
};
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
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
|
@@ -102,7 +102,12 @@ declare class Prodigio {
|
|
|
102
102
|
readonly applications: {
|
|
103
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
104
104
|
};
|
|
105
|
-
static
|
|
105
|
+
static readonly POWERED_BY: PoweredBy;
|
|
106
|
+
static badge(poweredBy?: PoweredBy): BadgeProps;
|
|
107
|
+
static meta(): {
|
|
108
|
+
name: string;
|
|
109
|
+
content: string;
|
|
110
|
+
};
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
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
|
@@ -34,7 +34,7 @@ var ProdigioError = class extends Error {
|
|
|
34
34
|
this.name = "ProdigioError";
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
var
|
|
37
|
+
var _Prodigio = class _Prodigio {
|
|
38
38
|
constructor(config) {
|
|
39
39
|
// ── Jobs ──────────────────────────────────────────────────────────────────
|
|
40
40
|
this.jobs = {
|
|
@@ -122,19 +122,31 @@ 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
125
|
static badge(poweredBy) {
|
|
126
|
+
const pb = poweredBy != null ? poweredBy : _Prodigio.POWERED_BY;
|
|
129
127
|
return {
|
|
130
|
-
href:
|
|
128
|
+
href: pb.url,
|
|
131
129
|
"data-prodigio-badge": "true",
|
|
132
130
|
target: "_blank",
|
|
133
131
|
rel: "noopener noreferrer",
|
|
134
|
-
text:
|
|
132
|
+
text: pb.text
|
|
135
133
|
};
|
|
136
134
|
}
|
|
135
|
+
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
136
|
+
// Add to your page <head> — this is the most reliable detection method.
|
|
137
|
+
// Next.js: export const metadata = { other: { 'prodigio-badge': 'true' } }
|
|
138
|
+
static meta() {
|
|
139
|
+
return { name: "prodigio-badge", content: "true" };
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
143
|
+
// Returns props to spread onto your <a> element.
|
|
144
|
+
// poweredBy is optional — defaults to Prodigio's built-in attribution.
|
|
145
|
+
_Prodigio.POWERED_BY = {
|
|
146
|
+
text: "Hiring powered by Prodigio",
|
|
147
|
+
url: "https://prodigio.io"
|
|
137
148
|
};
|
|
149
|
+
var Prodigio = _Prodigio;
|
|
138
150
|
var index_default = Prodigio;
|
|
139
151
|
// Annotate the CommonJS export names for ESM import in node:
|
|
140
152
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var ProdigioError = class extends Error {
|
|
|
8
8
|
this.name = "ProdigioError";
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var _Prodigio = class _Prodigio {
|
|
12
12
|
constructor(config) {
|
|
13
13
|
// ── Jobs ──────────────────────────────────────────────────────────────────
|
|
14
14
|
this.jobs = {
|
|
@@ -96,19 +96,31 @@ 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
99
|
static badge(poweredBy) {
|
|
100
|
+
const pb = poweredBy != null ? poweredBy : _Prodigio.POWERED_BY;
|
|
103
101
|
return {
|
|
104
|
-
href:
|
|
102
|
+
href: pb.url,
|
|
105
103
|
"data-prodigio-badge": "true",
|
|
106
104
|
target: "_blank",
|
|
107
105
|
rel: "noopener noreferrer",
|
|
108
|
-
text:
|
|
106
|
+
text: pb.text
|
|
109
107
|
};
|
|
110
108
|
}
|
|
109
|
+
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
110
|
+
// Add to your page <head> — this is the most reliable detection method.
|
|
111
|
+
// Next.js: export const metadata = { other: { 'prodigio-badge': 'true' } }
|
|
112
|
+
static meta() {
|
|
113
|
+
return { name: "prodigio-badge", content: "true" };
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
117
|
+
// Returns props to spread onto your <a> element.
|
|
118
|
+
// poweredBy is optional — defaults to Prodigio's built-in attribution.
|
|
119
|
+
_Prodigio.POWERED_BY = {
|
|
120
|
+
text: "Hiring powered by Prodigio",
|
|
121
|
+
url: "https://prodigio.io"
|
|
111
122
|
};
|
|
123
|
+
var Prodigio = _Prodigio;
|
|
112
124
|
var index_default = Prodigio;
|
|
113
125
|
export {
|
|
114
126
|
Prodigio,
|