@randstad-uca/aws-sns-publisher 1.0.21 → 1.0.22
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/build/constants.d.ts
CHANGED
|
@@ -38,4 +38,12 @@ export declare const validEventTypes: {
|
|
|
38
38
|
mail: string;
|
|
39
39
|
push: string;
|
|
40
40
|
};
|
|
41
|
-
export declare const validDocumentStatus:
|
|
41
|
+
export declare const validDocumentStatus: {
|
|
42
|
+
enviado: string;
|
|
43
|
+
rechazado: string;
|
|
44
|
+
firmado: string;
|
|
45
|
+
anulado: string;
|
|
46
|
+
pendienteEnvio: string;
|
|
47
|
+
incompleto: string;
|
|
48
|
+
pendienteFirma: string;
|
|
49
|
+
};
|
package/build/constants.js
CHANGED
|
@@ -41,12 +41,12 @@ exports.validEventTypes = {
|
|
|
41
41
|
mail: 'mail',
|
|
42
42
|
push: 'push',
|
|
43
43
|
};
|
|
44
|
-
exports.validDocumentStatus =
|
|
45
|
-
'enviado',
|
|
46
|
-
'rechazado',
|
|
47
|
-
'firmado',
|
|
48
|
-
'anulado',
|
|
49
|
-
'pendiente envio',
|
|
50
|
-
'incompleto',
|
|
51
|
-
'pendiente firma'
|
|
52
|
-
|
|
44
|
+
exports.validDocumentStatus = {
|
|
45
|
+
enviado: 'enviado',
|
|
46
|
+
rechazado: 'rechazado',
|
|
47
|
+
firmado: 'firmado',
|
|
48
|
+
anulado: 'anulado',
|
|
49
|
+
pendienteEnvio: 'pendiente envio',
|
|
50
|
+
incompleto: 'incompleto',
|
|
51
|
+
pendienteFirma: 'pendiente firma'
|
|
52
|
+
};
|
|
@@ -6,10 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SetDocumentStatusSchema = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
|
+
const statusValues = Object.values(constants_1.validDocumentStatus);
|
|
9
10
|
exports.SetDocumentStatusSchema = joi_1.default.object({
|
|
10
11
|
CanCod: joi_1.default.number().integer().required(),
|
|
11
12
|
estado: joi_1.default.string()
|
|
12
|
-
.valid(...
|
|
13
|
+
.valid(...statusValues)
|
|
13
14
|
.required(),
|
|
14
15
|
})
|
|
15
16
|
.unknown(false)
|