@smartytalent/api-client 0.8.12 → 0.8.13
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.
|
@@ -51,11 +51,62 @@ export interface FormAttributesSchema {
|
|
|
51
51
|
*/
|
|
52
52
|
shortCode?: string;
|
|
53
53
|
/**
|
|
54
|
+
* The field schema, JSON-encoded: a flat map of `fieldId -> field`.
|
|
55
|
+
* A field carries `label` and `description` as locale maps, a
|
|
56
|
+
* `type` (text, textarea, select, checkbox, file, email, phone,
|
|
57
|
+
* date, number), `required`, and for a select an `options` list of
|
|
58
|
+
* `{value, label}` - the candidate submits `value`, never the
|
|
59
|
+
* localized label.
|
|
54
60
|
*
|
|
61
|
+
* A knockout field adds `knockout: true`, `verifies` (the criterion
|
|
62
|
+
* it gates on) and `expectedAnswer` (the PASSING answer, matching
|
|
63
|
+
* one of the option values for a select). The submission gate
|
|
64
|
+
* rejects a candidate on a failed knockout without any AI spend, so
|
|
65
|
+
* a knockout missing `expectedAnswer` is refused: the gate would
|
|
66
|
+
* skip it and admit everyone. A knockout on a checkbox is refused
|
|
67
|
+
* too - a required checkbox renders as must-tick, so "No" cannot be
|
|
68
|
+
* expressed and the gate could never fire.
|
|
69
|
+
*
|
|
70
|
+
* An apply form (`kind: candidateSubmission`) must keep the
|
|
71
|
+
* `fullName`, `email`, `phone` and `cv` fields: the apply page maps
|
|
72
|
+
* them onto first-class submission slots.
|
|
73
|
+
*
|
|
74
|
+
* Rejections come back as one error object per violation, each with
|
|
75
|
+
* a `source.pointer` at the offending field. Limit: 131072 bytes.
|
|
55
76
|
* @type {string}
|
|
56
77
|
* @memberof FormAttributesSchema
|
|
57
78
|
*/
|
|
58
79
|
content?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Publish transition. `true` mirrors `content` to the CDN and flips
|
|
82
|
+
* the form to `active`, the state guest submission intake requires.
|
|
83
|
+
* Send it on the same PATCH that carries the edit, or on its own to
|
|
84
|
+
* republish what is already stored. Needs the recruiting tier or
|
|
85
|
+
* above; publishing a form with no content is a 400.
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof FormAttributesSchema
|
|
88
|
+
*/
|
|
89
|
+
publish?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Optimistic-concurrency token, bumped atomically on every write.
|
|
92
|
+
* Send it back as `If-Match: "<revision>"` on PATCH to make the
|
|
93
|
+
* write conditional; a mismatch is a 409 `SM_FORM_STALE`, meaning
|
|
94
|
+
* someone else saved since your read. Without the header the write
|
|
95
|
+
* is unconditional and the last writer wins - which for a form
|
|
96
|
+
* means silently replacing the whole field schema.
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof FormAttributesSchema
|
|
99
|
+
*/
|
|
100
|
+
readonly revision?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Where the published document lives. Server-managed: the server
|
|
103
|
+
* owns the key it wrote, so never compose this URL client-side - a
|
|
104
|
+
* URL built from the wrong tenant shortCode is indistinguishable
|
|
105
|
+
* from a correct one.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof FormAttributesSchema
|
|
108
|
+
*/
|
|
109
|
+
readonly publishedUrl?: string;
|
|
59
110
|
/**
|
|
60
111
|
*
|
|
61
112
|
* @type {string}
|
|
@@ -92,5 +143,5 @@ export declare function instanceOfFormAttributesSchema(value: object): value is
|
|
|
92
143
|
export declare function FormAttributesSchemaFromJSON(json: any): FormAttributesSchema;
|
|
93
144
|
export declare function FormAttributesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormAttributesSchema;
|
|
94
145
|
export declare function FormAttributesSchemaToJSON(json: any): FormAttributesSchema;
|
|
95
|
-
export declare function FormAttributesSchemaToJSONTyped(value?: FormAttributesSchema | null, ignoreDiscriminator?: boolean): any;
|
|
146
|
+
export declare function FormAttributesSchemaToJSONTyped(value?: Omit<FormAttributesSchema, 'revision' | 'publishedUrl'> | null, ignoreDiscriminator?: boolean): any;
|
|
96
147
|
//# sourceMappingURL=FormAttributesSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/FormAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"FormAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/FormAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACzC;AAGD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAG1H;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAkB/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAC,cAAc,CAAC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB/J"}
|
|
@@ -50,6 +50,9 @@ function FormAttributesSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
51
51
|
'shortCode': json['shortCode'] == null ? undefined : json['shortCode'],
|
|
52
52
|
'content': json['content'] == null ? undefined : json['content'],
|
|
53
|
+
'publish': json['publish'] == null ? undefined : json['publish'],
|
|
54
|
+
'revision': json['revision'] == null ? undefined : json['revision'],
|
|
55
|
+
'publishedUrl': json['publishedUrl'] == null ? undefined : json['publishedUrl'],
|
|
53
56
|
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
54
57
|
'source': json['source'] == null ? undefined : json['source'],
|
|
55
58
|
'timestamps': json['timestamps'] == null ? undefined : (0, ResourceTimestampsSchema_1.ResourceTimestampsSchemaFromJSON)(json['timestamps']),
|
|
@@ -68,6 +71,7 @@ function FormAttributesSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
71
|
'kind': value['kind'],
|
|
69
72
|
'shortCode': value['shortCode'],
|
|
70
73
|
'content': value['content'],
|
|
74
|
+
'publish': value['publish'],
|
|
71
75
|
'ttl': value['ttl'],
|
|
72
76
|
'source': value['source'],
|
|
73
77
|
'timestamps': (0, ResourceTimestampsSchema_1.ResourceTimestampsSchemaToJSON)(value['timestamps']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttributesSchema.js","sourceRoot":"","sources":["../../src/models/FormAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"FormAttributesSchema.js","sourceRoot":"","sources":["../../src/models/FormAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAgJH,wEAGC;AAED,oEAEC;AAED,8EAkBC;AAED,gEAEC;AAED,0EAiBC;AA9LD,yEAKoC;AAwHpC;;GAEG;AACU,QAAA,4BAA4B,GAAG;IACxC,QAAQ,EAAE,UAAU;IACpB,mBAAmB,EAAE,qBAAqB;IAC1C,gBAAgB,EAAE,kBAAkB;IACpC,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI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