@smartytalent/api-client 0.1.33-dev.45 → 0.1.33-dev.46
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.
|
@@ -10,23 +10,31 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* File reference for upload-type answers
|
|
13
|
+
* File reference for upload-type answers (file-upload /
|
|
14
|
+
* video-recording question types). The candidate UI obtains
|
|
15
|
+
* `fileKey` from POST /v1/guest/attempts/uploads, PUTs the file
|
|
16
|
+
* to S3 via the presigned URL returned alongside it, then
|
|
17
|
+
* includes a reference like `{fileKey, fileName, contentType,
|
|
18
|
+
* size}` here on the guest PATCH submission. Wire field names
|
|
19
|
+
* match what file:process and the eval Lambda's
|
|
20
|
+
* _enrich_answers_with_file_content expect (fileKey, not
|
|
21
|
+
* fileUrl - the S3 path is server-side only).
|
|
14
22
|
* @export
|
|
15
23
|
* @interface AnswerFileSchema
|
|
16
24
|
*/
|
|
17
25
|
export interface AnswerFileSchema {
|
|
18
26
|
/**
|
|
19
|
-
* S3
|
|
27
|
+
* S3 key in the attempt bucket. Returned by POST /v1/guest/attempts/uploads as data.attributes.fileKey; FE echoes it here.
|
|
20
28
|
* @type {string}
|
|
21
29
|
* @memberof AnswerFileSchema
|
|
22
30
|
*/
|
|
23
|
-
|
|
31
|
+
fileKey?: string;
|
|
24
32
|
/**
|
|
25
|
-
*
|
|
33
|
+
* Candidate-supplied original file name (display + audit trail).
|
|
26
34
|
* @type {string}
|
|
27
35
|
* @memberof AnswerFileSchema
|
|
28
36
|
*/
|
|
29
|
-
|
|
37
|
+
fileName?: string;
|
|
30
38
|
/**
|
|
31
39
|
*
|
|
32
40
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnswerFileSchema.d.ts","sourceRoot":"","sources":["../../src/models/AnswerFileSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH
|
|
1
|
+
{"version":3,"file":"AnswerFileSchema.d.ts","sourceRoot":"","sources":["../../src/models/AnswerFileSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAEnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAWvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYtH"}
|
|
@@ -32,8 +32,8 @@ function AnswerFileSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'
|
|
36
|
-
'
|
|
35
|
+
'fileKey': json['fileKey'] == null ? undefined : json['fileKey'],
|
|
36
|
+
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
|
37
37
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
38
38
|
'size': json['size'] == null ? undefined : json['size'],
|
|
39
39
|
};
|
|
@@ -46,8 +46,8 @@ function AnswerFileSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
50
|
-
'
|
|
49
|
+
'fileKey': value['fileKey'],
|
|
50
|
+
'fileName': value['fileName'],
|
|
51
51
|
'contentType': value['contentType'],
|
|
52
52
|
'size': value['size'],
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnswerFileSchema.js","sourceRoot":"","sources":["../../src/models/AnswerFileSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;
|
|
1
|
+
{"version":3,"file":"AnswerFileSchema.js","sourceRoot":"","sources":["../../src/models/AnswerFileSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,gEAEC;AAED,4DAEC;AAED,sEAWC;AAED,wDAEC;AAED,kEAYC;AAxCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,C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