@sumaris-net/ngx-components 2.4.84 → 2.4.85
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/esm2020/src/app/core/graphql/graphql.service.mjs +3 -1
- package/esm2020/src/app/core/services/errors.mjs +2 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +3 -0
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +3 -0
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/errors.d.ts +1 -0
|
@@ -12845,6 +12845,7 @@ const ServerErrorCodes = {
|
|
|
12845
12845
|
DATA_LOCKED: 520,
|
|
12846
12846
|
BAD_UPDATE_DATE: 521,
|
|
12847
12847
|
DENY_DELETION: 522,
|
|
12848
|
+
DATA_NOT_UNIQUE: 523,
|
|
12848
12849
|
// sumaris-server errors
|
|
12849
12850
|
INVALID_EMAIL_CONFIRMATION: 550,
|
|
12850
12851
|
INVALID_QUERY_VARIABLES: 551,
|
|
@@ -16988,6 +16989,8 @@ class GraphqlService extends StartableService {
|
|
|
16988
16989
|
return 'ERROR.DATA_LOCKED';
|
|
16989
16990
|
case ServerErrorCodes.BAD_APP_VERSION:
|
|
16990
16991
|
return 'ERROR.BAD_APP_VERSION';
|
|
16992
|
+
case ServerErrorCodes.DATA_NOT_UNIQUE:
|
|
16993
|
+
return 'ERROR.DATA_NOT_UNIQUE';
|
|
16991
16994
|
}
|
|
16992
16995
|
return undefined;
|
|
16993
16996
|
}
|