@nomalism-com/types 0.45.30 → 0.45.32
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.
|
@@ -8,7 +8,7 @@ interface IMainPersona extends Persona {
|
|
|
8
8
|
country: Country | null;
|
|
9
9
|
reason_for_exemption: ReasonForExemption | null;
|
|
10
10
|
}
|
|
11
|
-
interface IStoreOperator extends Pick<StoreOperator, 'id' | '
|
|
11
|
+
interface IStoreOperator extends Pick<StoreOperator, 'id' | 'superuser'> {
|
|
12
12
|
main_persona: Pick<Persona, 'name' | 'email'>;
|
|
13
13
|
theme: Pick<Theme, 'colors'> | null;
|
|
14
14
|
system_modules: SystemModuleEnum[];
|
|
@@ -40,9 +40,8 @@ export type WithUserstamps = WithCreatedBy & WithUpdatedBy;
|
|
|
40
40
|
export type WithoutUserstamps<T> = Omit<T, CreatedBy | UpdatedBy>;
|
|
41
41
|
export interface IUserToken {
|
|
42
42
|
id: string;
|
|
43
|
-
|
|
44
|
-
system_modules
|
|
45
|
-
superuser: boolean;
|
|
43
|
+
superuser?: boolean;
|
|
44
|
+
system_modules?: SystemModuleEnum[];
|
|
46
45
|
}
|
|
47
46
|
export type IEntityWithUserToken<T> = {
|
|
48
47
|
[K in keyof T]: T[K] extends (...params: infer U) => any ? (...params: [...U, IUserToken]) => ReturnType<T[K]> : T[K];
|
|
@@ -192,7 +191,6 @@ export type IBrokerTopicPayload = {
|
|
|
192
191
|
google_sheet_id: string;
|
|
193
192
|
original_document_header_id?: string;
|
|
194
193
|
user_id: string;
|
|
195
|
-
location_id: string;
|
|
196
194
|
};
|
|
197
195
|
[IBrokerTopic.user_send_email_password]: {
|
|
198
196
|
token: string;
|
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.45.
|
|
4
|
+
"version": "0.45.32",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|