@prodigio-io/sdk 1.0.2 → 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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +12 -0
- package/dist/index.mjs +12 -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,7 @@ declare class Prodigio {
|
|
|
95
102
|
readonly applications: {
|
|
96
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
97
104
|
};
|
|
105
|
+
static badge(poweredBy: PoweredBy): BadgeProps;
|
|
98
106
|
}
|
|
99
107
|
|
|
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 };
|
|
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
|
@@ -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,7 @@ declare class Prodigio {
|
|
|
95
102
|
readonly applications: {
|
|
96
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
97
104
|
};
|
|
105
|
+
static badge(poweredBy: PoweredBy): BadgeProps;
|
|
98
106
|
}
|
|
99
107
|
|
|
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 };
|
|
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 {
|