tango-app-api-client 3.0.22-dev → 3.0.23-dev
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/package.json +1 -1
- package/src/dtos/client.dtos.js +8 -3
package/package.json
CHANGED
package/src/dtos/client.dtos.js
CHANGED
|
@@ -33,7 +33,7 @@ export const billingDetailsSchemaBody = joi.object( {
|
|
|
33
33
|
tradeName: joi.string().optional(),
|
|
34
34
|
gstNumber: joi.string().optional(),
|
|
35
35
|
authorityName: joi.string().optional(),
|
|
36
|
-
authorityEmail: joi.string().optional(),
|
|
36
|
+
authorityEmail: joi.string().email().optional(),
|
|
37
37
|
billingAddress: joi.string().optional(),
|
|
38
38
|
gstCertificate: joi.string().optional().allow( '' ),
|
|
39
39
|
} );
|
|
@@ -50,7 +50,10 @@ export const billingDetailsValid = {
|
|
|
50
50
|
export const signatoryDetailsSchemaBody = joi.object( {
|
|
51
51
|
name: joi.string().optional(),
|
|
52
52
|
email: joi.string().email().optional(),
|
|
53
|
-
number: joi.string()
|
|
53
|
+
number: joi.string()
|
|
54
|
+
.pattern( /^\d{4,12}$/ )
|
|
55
|
+
.message( 'Enter a valid mobile number' )
|
|
56
|
+
.optional(),
|
|
54
57
|
designation: joi.string().optional(),
|
|
55
58
|
} );
|
|
56
59
|
|
|
@@ -119,7 +122,9 @@ export const featureConfigurationValid = {
|
|
|
119
122
|
|
|
120
123
|
export const domainDetailsSchemaBody = joi.object(
|
|
121
124
|
{
|
|
122
|
-
domainName: joi.array().items( joi.string()
|
|
125
|
+
domainName: joi.array().items( joi.string()
|
|
126
|
+
.pattern( /\..*/ )
|
|
127
|
+
.message( 'Enter a valid domain' ) ).optional(),
|
|
123
128
|
isEnable: joi.boolean().optional(),
|
|
124
129
|
},
|
|
125
130
|
);
|