@webx-ui/module-vacancies 0.1.9 → 0.2.1
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/VacancyEditorPage.d.ts +2 -2
- package/dist/api.d.ts +2 -1
- package/dist/index.js +610 -593
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +4 -4
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* card `module-seo` patches on and the history — so a project adds its own field with a patch
|
|
7
7
|
* rather than a fork of this file. Saving is by autosave into the draft, and the draft carries
|
|
8
8
|
* the categories, the form and "closed" too: the site changes, all of it at once, only on
|
|
9
|
-
* "Publish". Edits are guarded by a revision: a save over somebody else's is refused with a 409
|
|
10
|
-
* and
|
|
9
|
+
* "Publish". Edits are guarded by a revision: a save over somebody else's is refused with a 409,
|
|
10
|
+
* merged with theirs, and asked about only where both changed the same place.
|
|
11
11
|
*
|
|
12
12
|
* The two dates are calendar days, not moments (decision 13): the pickers hold `YYYY-MM-DD` as
|
|
13
13
|
* written, and the head prints them from their parts (`days.ts`), so no zone moves them.
|
package/dist/api.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export interface VacanciesApi {
|
|
|
20
20
|
* The answer is the copy's form, so the editor can open it straight away.
|
|
21
21
|
*/
|
|
22
22
|
duplicate(id: number): Promise<VacancyDetail>;
|
|
23
|
-
|
|
23
|
+
/** `revision` is what the editor held: a draft that moved on since is answered 409, not published. */
|
|
24
|
+
publish(id: number, revision?: string): Promise<VacancyRow>;
|
|
24
25
|
unpublish(id: number): Promise<VacancyRow>;
|
|
25
26
|
/**
|
|
26
27
|
* The hiring is over, before its last day — or it is on again. A publication of its own on the
|