@nomalism-com/types 0.43.49 → 0.43.51
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/dist/index.cjs
CHANGED
|
@@ -4301,6 +4301,7 @@ var createBodyKeys51 = {
|
|
|
4301
4301
|
commissioner_id: joi75.string().uuid().allow(null, ""),
|
|
4302
4302
|
store_operator_id: joi75.string().uuid().allow(null, ""),
|
|
4303
4303
|
reason_for_exemption_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4304
|
+
language_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4304
4305
|
main: joi75.boolean().default(false).optional(),
|
|
4305
4306
|
contact: joi75.boolean().default(false).optional()
|
|
4306
4307
|
};
|
|
@@ -4317,6 +4318,7 @@ var updateBodyKeys48 = {
|
|
|
4317
4318
|
email: emailSchema.optional(),
|
|
4318
4319
|
observations: joi75.string().allow(null, "").optional(),
|
|
4319
4320
|
reason_for_exemption_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4321
|
+
language_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4320
4322
|
main: joi75.boolean().optional(),
|
|
4321
4323
|
contact: joi75.boolean().optional()
|
|
4322
4324
|
};
|
package/dist/index.js
CHANGED
|
@@ -4301,6 +4301,7 @@ var createBodyKeys51 = {
|
|
|
4301
4301
|
commissioner_id: joi75.string().uuid().allow(null, ""),
|
|
4302
4302
|
store_operator_id: joi75.string().uuid().allow(null, ""),
|
|
4303
4303
|
reason_for_exemption_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4304
|
+
language_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4304
4305
|
main: joi75.boolean().default(false).optional(),
|
|
4305
4306
|
contact: joi75.boolean().default(false).optional()
|
|
4306
4307
|
};
|
|
@@ -4317,6 +4318,7 @@ var updateBodyKeys48 = {
|
|
|
4317
4318
|
email: emailSchema.optional(),
|
|
4318
4319
|
observations: joi75.string().allow(null, "").optional(),
|
|
4319
4320
|
reason_for_exemption_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4321
|
+
language_id: joi75.string().uuid().allow(null, "").optional(),
|
|
4320
4322
|
main: joi75.boolean().optional(),
|
|
4321
4323
|
contact: joi75.boolean().optional()
|
|
4322
4324
|
};
|
|
@@ -13,20 +13,23 @@ export interface IFindRequest {
|
|
|
13
13
|
chat_document_header_id: string;
|
|
14
14
|
}
|
|
15
15
|
export type IFindByOwnerResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | 'chat_document_header_id'>;
|
|
16
|
-
export interface IFindChatSubscriberPersona extends Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone'> {
|
|
17
|
-
contact: boolean;
|
|
18
|
-
}
|
|
19
16
|
export interface IFindByIdResponse extends IFindByOwnerResponse {
|
|
20
17
|
subscriptions: {
|
|
21
18
|
id: string;
|
|
22
19
|
chat_document_header_id: string;
|
|
23
20
|
}[];
|
|
21
|
+
}
|
|
22
|
+
export interface IFindChatSubscriberPersona extends Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone'> {
|
|
23
|
+
contact: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface IFindChatSubscriberResponse {
|
|
24
26
|
personas: IFindChatSubscriberPersona[];
|
|
25
27
|
}
|
|
26
28
|
export interface IRepository {
|
|
27
29
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<string>;
|
|
28
30
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
29
31
|
findByOwner(selector: IFindRequest): Promise<IFindByOwnerResponse[]>;
|
|
32
|
+
publicFindByOwner(selector: IFindRequest): Promise<IFindChatSubscriberResponse>;
|
|
30
33
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
31
34
|
}
|
|
32
35
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -29,6 +29,7 @@ export interface ICreateRequest {
|
|
|
29
29
|
commissioner_id: string | null;
|
|
30
30
|
store_operator_id: string | null;
|
|
31
31
|
reason_for_exemption_id: string | null;
|
|
32
|
+
language_id: string | null;
|
|
32
33
|
main?: boolean;
|
|
33
34
|
contact?: boolean;
|
|
34
35
|
}
|
|
@@ -44,6 +45,7 @@ export interface IUpdateRequest {
|
|
|
44
45
|
email?: string | null;
|
|
45
46
|
observations?: string | null;
|
|
46
47
|
reason_for_exemption_id?: string | null;
|
|
48
|
+
language_id?: string | null;
|
|
47
49
|
main?: boolean;
|
|
48
50
|
contact?: boolean;
|
|
49
51
|
}
|
|
@@ -472,6 +472,7 @@ export type Persona = {
|
|
|
472
472
|
locality: string | null;
|
|
473
473
|
country_id: string | null;
|
|
474
474
|
reason_for_exemption_id: string | null;
|
|
475
|
+
language_id: string | null;
|
|
475
476
|
provider_id: string | null;
|
|
476
477
|
client_id: string | null;
|
|
477
478
|
commissioner_id: string | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.43.
|
|
4
|
+
"version": "0.43.51",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"prepack": "npm run lint && npm run build"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"joi": "^18.
|
|
29
|
+
"joi": "^18.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@swc/core": "^1.15.
|
|
32
|
+
"@swc/core": "^1.15.21",
|
|
33
33
|
"@types/node": "^24.12.0",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.57.
|
|
35
|
-
"@typescript-eslint/parser": "^8.57.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
35
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|