@prodigio-io/sdk 1.0.2 → 1.0.4
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +17 -0
- package/dist/index.mjs +17 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -72,6 +72,13 @@ interface ListJobsParams {
|
|
|
72
72
|
status?: 'active' | 'all';
|
|
73
73
|
department?: string;
|
|
74
74
|
}
|
|
75
|
+
interface BadgeProps {
|
|
76
|
+
href: string;
|
|
77
|
+
'data-prodigio-badge': string;
|
|
78
|
+
target: string;
|
|
79
|
+
rel: string;
|
|
80
|
+
text: string;
|
|
81
|
+
}
|
|
75
82
|
declare class ProdigioError extends Error {
|
|
76
83
|
readonly status: number;
|
|
77
84
|
readonly code?: string | undefined;
|
|
@@ -95,6 +102,11 @@ declare class Prodigio {
|
|
|
95
102
|
readonly applications: {
|
|
96
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
97
104
|
};
|
|
105
|
+
static badge(poweredBy: PoweredBy): BadgeProps;
|
|
106
|
+
static meta(): {
|
|
107
|
+
name: string;
|
|
108
|
+
content: string;
|
|
109
|
+
};
|
|
98
110
|
}
|
|
99
111
|
|
|
100
|
-
export { type Achievement, 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 };
|
|
112
|
+
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
|
@@ -72,6 +72,13 @@ interface ListJobsParams {
|
|
|
72
72
|
status?: 'active' | 'all';
|
|
73
73
|
department?: string;
|
|
74
74
|
}
|
|
75
|
+
interface BadgeProps {
|
|
76
|
+
href: string;
|
|
77
|
+
'data-prodigio-badge': string;
|
|
78
|
+
target: string;
|
|
79
|
+
rel: string;
|
|
80
|
+
text: string;
|
|
81
|
+
}
|
|
75
82
|
declare class ProdigioError extends Error {
|
|
76
83
|
readonly status: number;
|
|
77
84
|
readonly code?: string | undefined;
|
|
@@ -95,6 +102,11 @@ declare class Prodigio {
|
|
|
95
102
|
readonly applications: {
|
|
96
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
97
104
|
};
|
|
105
|
+
static badge(poweredBy: PoweredBy): BadgeProps;
|
|
106
|
+
static meta(): {
|
|
107
|
+
name: string;
|
|
108
|
+
content: string;
|
|
109
|
+
};
|
|
98
110
|
}
|
|
99
111
|
|
|
100
|
-
export { type Achievement, 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 };
|
|
112
|
+
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,23 @@ var Prodigio = class {
|
|
|
122
122
|
}
|
|
123
123
|
return res.json();
|
|
124
124
|
}
|
|
125
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
126
|
+
// Returns props to spread onto your <a> element.
|
|
127
|
+
static badge(poweredBy) {
|
|
128
|
+
return {
|
|
129
|
+
href: poweredBy.url,
|
|
130
|
+
"data-prodigio-badge": "true",
|
|
131
|
+
target: "_blank",
|
|
132
|
+
rel: "noopener noreferrer",
|
|
133
|
+
text: poweredBy.text
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
137
|
+
// Add to your page <head> — this is the most reliable detection method.
|
|
138
|
+
// Next.js: export const metadata = { other: { 'prodigio-badge': 'true' } }
|
|
139
|
+
static meta() {
|
|
140
|
+
return { name: "prodigio-badge", content: "true" };
|
|
141
|
+
}
|
|
125
142
|
};
|
|
126
143
|
var index_default = Prodigio;
|
|
127
144
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -96,6 +96,23 @@ var Prodigio = class {
|
|
|
96
96
|
}
|
|
97
97
|
return res.json();
|
|
98
98
|
}
|
|
99
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
100
|
+
// Returns props to spread onto your <a> element.
|
|
101
|
+
static badge(poweredBy) {
|
|
102
|
+
return {
|
|
103
|
+
href: poweredBy.url,
|
|
104
|
+
"data-prodigio-badge": "true",
|
|
105
|
+
target: "_blank",
|
|
106
|
+
rel: "noopener noreferrer",
|
|
107
|
+
text: poweredBy.text
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
111
|
+
// Add to your page <head> — this is the most reliable detection method.
|
|
112
|
+
// Next.js: export const metadata = { other: { 'prodigio-badge': 'true' } }
|
|
113
|
+
static meta() {
|
|
114
|
+
return { name: "prodigio-badge", content: "true" };
|
|
115
|
+
}
|
|
99
116
|
};
|
|
100
117
|
var index_default = Prodigio;
|
|
101
118
|
export {
|