@nomalism-com/types 0.49.9 → 0.49.10
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 +41 -5
- package/dist/index.js +41 -5
- package/dist/modules/integration/emailLog/interfaces.d.ts +5 -0
- package/dist/modules/integration/eupago/interfaces.d.ts +10 -5
- package/dist/modules/integration/googleSheets/interfaces.d.ts +2 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +2 -1
- package/dist/modules/llm/llm/interfaces.d.ts +5 -0
- package/dist/modules/print/printer/interfaces.d.ts +1 -1
- package/dist/modules/tickets/channel/interfaces.d.ts +4 -3
- package/dist/modules/tickets/clt/interfaces.d.ts +4 -3
- package/dist/modules/tickets/language/interfaces.d.ts +4 -3
- package/dist/modules/user/clients/interface.d.ts +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +8 -8
- package/dist/modules/user/swift/interface.d.ts +1 -1
- package/dist/modules/view/adminPanel/interfaces.d.ts +37 -0
- package/dist/shared/interface.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1783,9 +1783,45 @@ var Route141 = "vehicles";
|
|
|
1783
1783
|
// src/modules/view/adminPanel/interfaces.ts
|
|
1784
1784
|
var interfaces_exports71 = {};
|
|
1785
1785
|
__export(interfaces_exports71, {
|
|
1786
|
-
|
|
1786
|
+
IDataTypeEnum: () => IDataTypeEnum,
|
|
1787
|
+
IServerEnum: () => IServerEnum,
|
|
1788
|
+
IServiceEnum: () => IServiceEnum,
|
|
1789
|
+
Route: () => Route142,
|
|
1790
|
+
adminPanelServers: () => adminPanelServers,
|
|
1791
|
+
adminPanelServices: () => adminPanelServices,
|
|
1792
|
+
dataTypes: () => dataTypes
|
|
1787
1793
|
});
|
|
1788
1794
|
var Route142 = "admin_panel";
|
|
1795
|
+
var IDataTypeEnum = {
|
|
1796
|
+
server: "server",
|
|
1797
|
+
googleSheets: "googleSheets",
|
|
1798
|
+
services: "services",
|
|
1799
|
+
all: "all"
|
|
1800
|
+
};
|
|
1801
|
+
var dataTypes = Object.keys(IDataTypeEnum);
|
|
1802
|
+
var IServiceEnum = {
|
|
1803
|
+
prints: "prints",
|
|
1804
|
+
eventstores: "eventstores",
|
|
1805
|
+
moloniRequests: "moloniRequests",
|
|
1806
|
+
moloniErrors: "moloniErrors",
|
|
1807
|
+
projectInfos: "projectInfos",
|
|
1808
|
+
multimedias: "multimedias",
|
|
1809
|
+
multimediaSummary: "multimediaSummary",
|
|
1810
|
+
crons: "crons",
|
|
1811
|
+
emails: "emails",
|
|
1812
|
+
errors: "errors",
|
|
1813
|
+
chats: "chats",
|
|
1814
|
+
kafka: "kafka"
|
|
1815
|
+
};
|
|
1816
|
+
var adminPanelServices = Object.keys(IServiceEnum);
|
|
1817
|
+
var IServerEnum = {
|
|
1818
|
+
services: "services",
|
|
1819
|
+
logs: "logs",
|
|
1820
|
+
certificates: "certificates",
|
|
1821
|
+
filesystem: "filesystem",
|
|
1822
|
+
backups: "backups"
|
|
1823
|
+
};
|
|
1824
|
+
var adminPanelServers = Object.keys(IServerEnum);
|
|
1789
1825
|
|
|
1790
1826
|
// src/modules/view/errorLog/interfaces.ts
|
|
1791
1827
|
var interfaces_exports72 = {};
|
|
@@ -2280,12 +2316,12 @@ var viewErrors_default = {
|
|
|
2280
2316
|
var interface_exports72 = {};
|
|
2281
2317
|
__export(interface_exports72, {
|
|
2282
2318
|
IBrokerTopic: () => IBrokerTopic,
|
|
2283
|
-
IDataTypeEnum: () =>
|
|
2319
|
+
IDataTypeEnum: () => IDataTypeEnum2,
|
|
2284
2320
|
IUserSendEmailDocumentTemplateEnum: () => IUserSendEmailDocumentTemplateEnum,
|
|
2285
2321
|
IUserSendEmailDocumentTemplateTypes: () => IUserSendEmailDocumentTemplateTypes,
|
|
2286
|
-
dataTypes: () =>
|
|
2322
|
+
dataTypes: () => dataTypes2
|
|
2287
2323
|
});
|
|
2288
|
-
var
|
|
2324
|
+
var IDataTypeEnum2 = {
|
|
2289
2325
|
date: "date",
|
|
2290
2326
|
datetime: "datetime",
|
|
2291
2327
|
text: "text",
|
|
@@ -2304,7 +2340,7 @@ var IDataTypeEnum = {
|
|
|
2304
2340
|
json: "json",
|
|
2305
2341
|
userstamp: "userstamp"
|
|
2306
2342
|
};
|
|
2307
|
-
var
|
|
2343
|
+
var dataTypes2 = Object.keys(IDataTypeEnum2);
|
|
2308
2344
|
var IUserSendEmailDocumentTemplateEnum = {
|
|
2309
2345
|
generic: "generic",
|
|
2310
2346
|
provider_payment_order: "provider_payment_order"
|
package/dist/index.js
CHANGED
|
@@ -1613,9 +1613,45 @@ var Route141 = "vehicles";
|
|
|
1613
1613
|
// src/modules/view/adminPanel/interfaces.ts
|
|
1614
1614
|
var interfaces_exports71 = {};
|
|
1615
1615
|
__export(interfaces_exports71, {
|
|
1616
|
-
|
|
1616
|
+
IDataTypeEnum: () => IDataTypeEnum,
|
|
1617
|
+
IServerEnum: () => IServerEnum,
|
|
1618
|
+
IServiceEnum: () => IServiceEnum,
|
|
1619
|
+
Route: () => Route142,
|
|
1620
|
+
adminPanelServers: () => adminPanelServers,
|
|
1621
|
+
adminPanelServices: () => adminPanelServices,
|
|
1622
|
+
dataTypes: () => dataTypes
|
|
1617
1623
|
});
|
|
1618
1624
|
var Route142 = "admin_panel";
|
|
1625
|
+
var IDataTypeEnum = {
|
|
1626
|
+
server: "server",
|
|
1627
|
+
googleSheets: "googleSheets",
|
|
1628
|
+
services: "services",
|
|
1629
|
+
all: "all"
|
|
1630
|
+
};
|
|
1631
|
+
var dataTypes = Object.keys(IDataTypeEnum);
|
|
1632
|
+
var IServiceEnum = {
|
|
1633
|
+
prints: "prints",
|
|
1634
|
+
eventstores: "eventstores",
|
|
1635
|
+
moloniRequests: "moloniRequests",
|
|
1636
|
+
moloniErrors: "moloniErrors",
|
|
1637
|
+
projectInfos: "projectInfos",
|
|
1638
|
+
multimedias: "multimedias",
|
|
1639
|
+
multimediaSummary: "multimediaSummary",
|
|
1640
|
+
crons: "crons",
|
|
1641
|
+
emails: "emails",
|
|
1642
|
+
errors: "errors",
|
|
1643
|
+
chats: "chats",
|
|
1644
|
+
kafka: "kafka"
|
|
1645
|
+
};
|
|
1646
|
+
var adminPanelServices = Object.keys(IServiceEnum);
|
|
1647
|
+
var IServerEnum = {
|
|
1648
|
+
services: "services",
|
|
1649
|
+
logs: "logs",
|
|
1650
|
+
certificates: "certificates",
|
|
1651
|
+
filesystem: "filesystem",
|
|
1652
|
+
backups: "backups"
|
|
1653
|
+
};
|
|
1654
|
+
var adminPanelServers = Object.keys(IServerEnum);
|
|
1619
1655
|
|
|
1620
1656
|
// src/modules/view/errorLog/interfaces.ts
|
|
1621
1657
|
var interfaces_exports72 = {};
|
|
@@ -2110,12 +2146,12 @@ var viewErrors_default = {
|
|
|
2110
2146
|
var interface_exports72 = {};
|
|
2111
2147
|
__export(interface_exports72, {
|
|
2112
2148
|
IBrokerTopic: () => IBrokerTopic,
|
|
2113
|
-
IDataTypeEnum: () =>
|
|
2149
|
+
IDataTypeEnum: () => IDataTypeEnum2,
|
|
2114
2150
|
IUserSendEmailDocumentTemplateEnum: () => IUserSendEmailDocumentTemplateEnum,
|
|
2115
2151
|
IUserSendEmailDocumentTemplateTypes: () => IUserSendEmailDocumentTemplateTypes,
|
|
2116
|
-
dataTypes: () =>
|
|
2152
|
+
dataTypes: () => dataTypes2
|
|
2117
2153
|
});
|
|
2118
|
-
var
|
|
2154
|
+
var IDataTypeEnum2 = {
|
|
2119
2155
|
date: "date",
|
|
2120
2156
|
datetime: "datetime",
|
|
2121
2157
|
text: "text",
|
|
@@ -2134,7 +2170,7 @@ var IDataTypeEnum = {
|
|
|
2134
2170
|
json: "json",
|
|
2135
2171
|
userstamp: "userstamp"
|
|
2136
2172
|
};
|
|
2137
|
-
var
|
|
2173
|
+
var dataTypes2 = Object.keys(IDataTypeEnum2);
|
|
2138
2174
|
var IUserSendEmailDocumentTemplateEnum = {
|
|
2139
2175
|
generic: "generic",
|
|
2140
2176
|
provider_payment_order: "provider_payment_order"
|
|
@@ -49,6 +49,11 @@ export interface ISendGridCallbacks {
|
|
|
49
49
|
url: string | null;
|
|
50
50
|
attempt: number | null;
|
|
51
51
|
}
|
|
52
|
+
export interface ISendGridWebhookEvent {
|
|
53
|
+
event: ISendGridCallbackEvent;
|
|
54
|
+
sg_message_id: string;
|
|
55
|
+
email: string;
|
|
56
|
+
}
|
|
52
57
|
export interface IFindByIdResponse {
|
|
53
58
|
id: string;
|
|
54
59
|
owner_id: string | null;
|
|
@@ -22,23 +22,28 @@ export interface ICreatePendingPaymentRequest {
|
|
|
22
22
|
amount: number;
|
|
23
23
|
}
|
|
24
24
|
export interface IWebhookTransaction {
|
|
25
|
-
entity?:
|
|
26
|
-
reference?:
|
|
25
|
+
entity?: string;
|
|
26
|
+
reference?: string;
|
|
27
27
|
identifier: string;
|
|
28
28
|
method: string;
|
|
29
29
|
amount: {
|
|
30
30
|
value: number;
|
|
31
31
|
currency?: string;
|
|
32
32
|
};
|
|
33
|
-
trid:
|
|
33
|
+
trid: string;
|
|
34
34
|
status: string;
|
|
35
35
|
}
|
|
36
36
|
export interface IWebhookBody {
|
|
37
|
-
|
|
37
|
+
transaction: IWebhookTransaction;
|
|
38
38
|
channel?: {
|
|
39
|
-
|
|
39
|
+
account?: string;
|
|
40
|
+
name?: string;
|
|
40
41
|
};
|
|
41
42
|
}
|
|
43
|
+
export interface IMultibancoReferenceResponse {
|
|
44
|
+
referencia?: string;
|
|
45
|
+
entidade?: string;
|
|
46
|
+
}
|
|
42
47
|
export interface IFindResponse extends Entity {
|
|
43
48
|
document_link?: string;
|
|
44
49
|
}
|
|
@@ -14,10 +14,10 @@ export interface IGetUserData extends Pick<DocumentHeader, "document_number" | "
|
|
|
14
14
|
}
|
|
15
15
|
export interface IUpdateRequest {
|
|
16
16
|
document_name: string;
|
|
17
|
-
client_data?: IGetUserData
|
|
17
|
+
client_data?: Partial<IGetUserData>;
|
|
18
18
|
}
|
|
19
19
|
export interface ICloneRequest {
|
|
20
|
-
document_name
|
|
20
|
+
document_name?: string | null;
|
|
21
21
|
}
|
|
22
22
|
export interface ICloneResponse {
|
|
23
23
|
spreadsheetId: string;
|
|
@@ -18,9 +18,10 @@ export type IBudgetOptionsType = {
|
|
|
18
18
|
};
|
|
19
19
|
export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
|
|
20
20
|
export declare const projectInfoTypes: string[];
|
|
21
|
-
export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id"> {
|
|
21
|
+
export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id" | "address"> {
|
|
22
22
|
persona_id?: string;
|
|
23
23
|
client_id?: string;
|
|
24
|
+
address?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface ICreateResponse {
|
|
26
27
|
document_header_id: string;
|
|
@@ -24,6 +24,11 @@ export interface IIdentifyAndTranslateResponse {
|
|
|
24
24
|
language: string;
|
|
25
25
|
translation: string | null;
|
|
26
26
|
}
|
|
27
|
+
export interface IOllamaChatResponse {
|
|
28
|
+
message?: {
|
|
29
|
+
content?: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
27
32
|
export interface IRepository {
|
|
28
33
|
prompt: (data: IPromptRequest, response: IPromptResponse) => IPromptAbortController;
|
|
29
34
|
translate(data: ITranslateRequest): Promise<string>;
|
|
@@ -6,7 +6,7 @@ export type IFindDetailedResponse = Entity & {
|
|
|
6
6
|
npc: Pick<Entity, "name">;
|
|
7
7
|
};
|
|
8
8
|
export type IPrinterData = Omit<Printer, "id" | "npc_id" | "created_at" | "updated_at">;
|
|
9
|
-
export type IUpdateRequest = Omit<Printer, "connected" | "device_os_name" | "npc_id" | "id"
|
|
9
|
+
export type IUpdateRequest = IShared.WithoutStamps<Omit<Printer, "connected" | "device_os_name" | "npc_id" | "id">>;
|
|
10
10
|
export interface IGetOrSetPrintersResponse {
|
|
11
11
|
printers_a4: IPrinterData[];
|
|
12
12
|
printers_pos: IPrinterData[];
|
|
@@ -14,10 +14,11 @@ export interface IChannel {
|
|
|
14
14
|
export interface IFindMinifiedRequest {
|
|
15
15
|
value?: string;
|
|
16
16
|
}
|
|
17
|
-
export type ICreateRequest = Omit<Entity, "id"
|
|
18
|
-
export type IUpdateRequest = ICreateRequest
|
|
17
|
+
export type ICreateRequest = IShared.WithoutStamps<Omit<Entity, "id">>;
|
|
18
|
+
export type IUpdateRequest = Partial<ICreateRequest>;
|
|
19
|
+
export type ICreateData = ICreateRequest & Pick<Entity, "created_by">;
|
|
19
20
|
export interface IRepository {
|
|
20
|
-
create(data:
|
|
21
|
+
create(data: ICreateData): Promise<Entity>;
|
|
21
22
|
find(): Promise<Entity[]>;
|
|
22
23
|
findById(id: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
23
24
|
findMinified(params?: IFindMinifiedRequest): Promise<Entity[]>;
|
|
@@ -2,13 +2,14 @@ import { CLT } from "../../../shared/entities/tickets";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = CLT;
|
|
4
4
|
export declare const Route = "clt";
|
|
5
|
-
export type ICreateRequest = Omit<Entity, "id"
|
|
6
|
-
export type IUpdateRequest = ICreateRequest
|
|
5
|
+
export type ICreateRequest = IShared.WithoutStamps<Omit<Entity, "id">>;
|
|
6
|
+
export type IUpdateRequest = Partial<ICreateRequest>;
|
|
7
|
+
export type ICreateData = ICreateRequest & Pick<Entity, "created_by">;
|
|
7
8
|
export interface IFindMinifiedRequest {
|
|
8
9
|
value?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface IRepository {
|
|
11
|
-
create(data:
|
|
12
|
+
create(data: ICreateData): Promise<Entity>;
|
|
12
13
|
find(): Promise<Entity[]>;
|
|
13
14
|
findById(id: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
14
15
|
findMinified(params?: IFindMinifiedRequest): Promise<Entity[]>;
|
|
@@ -2,13 +2,14 @@ import { Language } from "../../../shared/entities/tickets";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Language;
|
|
4
4
|
export declare const Route = "tickets_language";
|
|
5
|
-
export type ICreateRequest = Omit<Entity, "id"
|
|
6
|
-
export type IUpdateRequest = ICreateRequest
|
|
5
|
+
export type ICreateRequest = IShared.WithoutStamps<Omit<Entity, "id">>;
|
|
6
|
+
export type IUpdateRequest = Partial<ICreateRequest>;
|
|
7
|
+
export type ICreateData = ICreateRequest & Pick<Entity, "created_by">;
|
|
7
8
|
export interface IFindMinifiedRequest {
|
|
8
9
|
value?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface IRepository {
|
|
11
|
-
create(data:
|
|
12
|
+
create(data: ICreateData): Promise<Entity>;
|
|
12
13
|
find(): Promise<Entity[]>;
|
|
13
14
|
findById(id: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
14
15
|
findMinified(params?: IFindMinifiedRequest): Promise<Entity[]>;
|
|
@@ -30,7 +30,7 @@ export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFind
|
|
|
30
30
|
export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telephone">;
|
|
31
31
|
export interface ICreateRequest {
|
|
32
32
|
user_id?: string;
|
|
33
|
-
main_persona: ICreateMainPersona
|
|
33
|
+
main_persona: Partial<ICreateMainPersona>;
|
|
34
34
|
deferred_payment?: boolean;
|
|
35
35
|
is_donation_eligible?: boolean;
|
|
36
36
|
default_discount?: number;
|
|
@@ -27,7 +27,7 @@ export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telep
|
|
|
27
27
|
export interface ICreateRequest {
|
|
28
28
|
user_id: string;
|
|
29
29
|
default_percentage?: number;
|
|
30
|
-
main_persona: ICreateMainPersona
|
|
30
|
+
main_persona: Partial<ICreateMainPersona>;
|
|
31
31
|
country_id?: string | null;
|
|
32
32
|
language_id?: string | null;
|
|
33
33
|
default_payment_method_id?: string | null;
|
|
@@ -36,7 +36,7 @@ export interface ICreateRequest {
|
|
|
36
36
|
default_discount?: number;
|
|
37
37
|
exemption_reason_id?: string | null;
|
|
38
38
|
default_account_code?: string | null;
|
|
39
|
-
main_persona: ICreateMainPersona
|
|
39
|
+
main_persona: Partial<ICreateMainPersona>;
|
|
40
40
|
provider_type_id?: string | null;
|
|
41
41
|
country_id?: string | null;
|
|
42
42
|
language_id?: string | null;
|
|
@@ -45,7 +45,7 @@ export interface ICreateRequest {
|
|
|
45
45
|
default_maturity_date_id?: string | null;
|
|
46
46
|
default_delivery_method_id?: string | null;
|
|
47
47
|
default_vehicle_id?: string | null;
|
|
48
|
-
personas?: ICreateMainPersona[];
|
|
48
|
+
personas?: Partial<ICreateMainPersona>[];
|
|
49
49
|
}
|
|
50
50
|
export interface IUpdateRequest {
|
|
51
51
|
manufacturer?: boolean;
|
|
@@ -53,13 +53,13 @@ export interface IUpdateRequest {
|
|
|
53
53
|
default_discount?: number;
|
|
54
54
|
main_persona_id?: string;
|
|
55
55
|
contact_persona_id?: string;
|
|
56
|
-
country_id?: string;
|
|
57
|
-
language_id?: string;
|
|
56
|
+
country_id?: string | null;
|
|
57
|
+
language_id?: string | null;
|
|
58
58
|
support_language_id?: string | null;
|
|
59
|
-
provider_type_id?: string;
|
|
60
|
-
default_payment_method_id?: string;
|
|
61
|
-
default_maturity_date_id?: string;
|
|
62
|
-
default_delivery_method_id?: string;
|
|
59
|
+
provider_type_id?: string | null;
|
|
60
|
+
default_payment_method_id?: string | null;
|
|
61
|
+
default_maturity_date_id?: string | null;
|
|
62
|
+
default_delivery_method_id?: string | null;
|
|
63
63
|
default_vehicle_id?: string | null;
|
|
64
64
|
exemption_reason_id?: string | null;
|
|
65
65
|
default_account_code?: string | null;
|
|
@@ -113,8 +113,45 @@ export interface IKafka extends ICalendar {
|
|
|
113
113
|
count: number;
|
|
114
114
|
error_count: number;
|
|
115
115
|
}
|
|
116
|
+
export declare const IDataTypeEnum: {
|
|
117
|
+
server: "server";
|
|
118
|
+
googleSheets: "googleSheets";
|
|
119
|
+
services: "services";
|
|
120
|
+
all: "all";
|
|
121
|
+
};
|
|
122
|
+
export type IDataType = (typeof IDataTypeEnum)[keyof typeof IDataTypeEnum];
|
|
123
|
+
export declare const dataTypes: string[];
|
|
124
|
+
export declare const IServiceEnum: {
|
|
125
|
+
prints: "prints";
|
|
126
|
+
eventstores: "eventstores";
|
|
127
|
+
moloniRequests: "moloniRequests";
|
|
128
|
+
moloniErrors: "moloniErrors";
|
|
129
|
+
projectInfos: "projectInfos";
|
|
130
|
+
multimedias: "multimedias";
|
|
131
|
+
multimediaSummary: "multimediaSummary";
|
|
132
|
+
crons: "crons";
|
|
133
|
+
emails: "emails";
|
|
134
|
+
errors: "errors";
|
|
135
|
+
chats: "chats";
|
|
136
|
+
kafka: "kafka";
|
|
137
|
+
};
|
|
138
|
+
export type IService = (typeof IServiceEnum)[keyof typeof IServiceEnum];
|
|
139
|
+
export declare const adminPanelServices: string[];
|
|
140
|
+
export declare const IServerEnum: {
|
|
141
|
+
services: "services";
|
|
142
|
+
logs: "logs";
|
|
143
|
+
certificates: "certificates";
|
|
144
|
+
filesystem: "filesystem";
|
|
145
|
+
backups: "backups";
|
|
146
|
+
};
|
|
147
|
+
export type IServer = (typeof IServerEnum)[keyof typeof IServerEnum];
|
|
148
|
+
export declare const adminPanelServers: string[];
|
|
116
149
|
export interface IGetDataRequest {
|
|
117
150
|
token: string;
|
|
151
|
+
dataType: IDataType;
|
|
152
|
+
services?: IService;
|
|
153
|
+
server?: IServer;
|
|
154
|
+
logName?: string;
|
|
118
155
|
}
|
|
119
156
|
export interface IGetDataResponse {
|
|
120
157
|
server: {
|
|
@@ -419,6 +419,7 @@ export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
|
419
419
|
export type Nullable<T> = {
|
|
420
420
|
[K in keyof T]: T[K] | null;
|
|
421
421
|
};
|
|
422
|
+
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
422
423
|
export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
423
424
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
424
425
|
}[Keys];
|
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.49.
|
|
4
|
+
"version": "0.49.10",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
37
37
|
"globals": "^17.12.0",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^17.5.
|
|
39
|
+
"lint-staged": "^17.5.1",
|
|
40
40
|
"prettier": "^3.9.6",
|
|
41
41
|
"tsup": "^8.5.1",
|
|
42
42
|
"typescript-eslint": "^8.70.0"
|