shutro-erp 0.3.2 → 0.3.3
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/account_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +29 -1
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +29 -1
- package/dist/assistant/index.js +1 -1
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +29 -1
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +29 -1
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +29 -4
- package/dist/l10n_in/module.d.ts +0 -62
- package/dist/l10n_in/module.js +2 -4
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +30 -2
- package/dist/payment/bkash.d.ts +28 -0
- package/dist/payment/bkash.js +169 -0
- package/dist/payment/index.d.ts +4 -0
- package/dist/payment/index.js +80 -24
- package/dist/payment/module.d.ts +7 -4
- package/dist/payment/module.js +3 -0
- package/dist/payment/money.d.ts +7 -0
- package/dist/payment/money.js +37 -0
- package/dist/payment/providers.d.ts +13 -2
- package/dist/payment/razorpay.d.ts +12 -0
- package/dist/payment/razorpay.js +149 -0
- package/dist/payment/sslcommerz.js +1 -1
- package/dist/payment/stripe.d.ts +15 -0
- package/dist/payment/stripe.js +182 -0
- package/dist/permissions/admin.d.ts +3 -0
- package/dist/permissions/admin.js +108 -10
- package/dist/permissions/index.d.ts +1 -0
- package/dist/permissions/index.js +3 -0
- package/dist/permissions/roles.d.ts +2 -0
- package/dist/permissions/roles.js +236 -0
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +29 -1
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +29 -1
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +29 -1
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +29 -1
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +29 -1
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +29 -1
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +29 -1
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +29 -1
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +29 -1
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +29 -1
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +29 -1
- package/dist/server/auth/base.js +22 -0
- package/dist/server/auth/routes.d.ts +3 -0
- package/dist/server/auth/routes.js +29 -0
- package/dist/server/auth/service.d.ts +52 -0
- package/dist/server/auth/service.js +168 -3
- package/dist/server/identity.d.ts +2 -0
- package/dist/server/index.d.ts +1 -1
- package/dist/server/server.js +11 -3
- package/dist/settings/company.d.ts +34 -0
- package/dist/settings/company.js +187 -0
- package/dist/settings/index.d.ts +10 -10
- package/dist/settings/index.js +159 -30
- package/dist/settings/people.d.ts +16 -0
- package/dist/settings/people.js +505 -0
- package/dist/settings/security.d.ts +13 -0
- package/dist/settings/security.js +158 -0
- package/dist/settings/web/AuditPage.d.ts +8 -0
- package/dist/settings/web/AuditPage.js +74 -0
- package/dist/settings/web/CompaniesPage.d.ts +8 -0
- package/dist/settings/web/CompaniesPage.js +52 -0
- package/dist/settings/web/CompanyPage.d.ts +9 -0
- package/dist/settings/web/CompanyPage.js +94 -0
- package/dist/settings/web/OverviewPage.d.ts +9 -0
- package/dist/settings/web/OverviewPage.js +66 -0
- package/dist/settings/web/PeoplePage.d.ts +9 -0
- package/dist/settings/web/PeoplePage.js +163 -0
- package/dist/settings/web/ProfilePage.d.ts +14 -0
- package/dist/settings/web/ProfilePage.js +194 -0
- package/dist/settings/web/RolesEditor.d.ts +35 -0
- package/dist/settings/web/RolesEditor.js +49 -0
- package/dist/settings/web/RolesPage.d.ts +9 -0
- package/dist/settings/web/RolesPage.js +296 -0
- package/dist/settings/web/SecurityPage.d.ts +8 -0
- package/dist/settings/web/SecurityPage.js +81 -0
- package/dist/settings/web/index.d.ts +9 -0
- package/dist/settings/web/index.js +26 -1
- package/dist/settings/web/messages.js +566 -0
- package/dist/ui/api.d.ts +4 -0
- package/dist/ui/app.d.ts +5 -0
- package/dist/ui/app.js +108 -31
- package/dist/ui/components/primitives.d.ts +9 -1
- package/dist/ui/components/primitives.js +12 -4
- package/dist/ui/context.d.ts +10 -1
- package/dist/ui/context.js +60 -2
- package/dist/ui/i18n/messages.d.ts +46 -0
- package/dist/ui/i18n/messages.js +92 -0
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +2 -1
- package/dist/ui/lib/accent.d.ts +13 -0
- package/dist/ui/lib/accent.js +36 -0
- package/dist/ui/shell/Activate.d.ts +6 -0
- package/dist/ui/shell/Activate.js +39 -0
- package/dist/ui/shell/CommandPalette.d.ts +7 -1
- package/dist/ui/shell/CommandPalette.js +16 -2
- package/dist/ui/shell/Sidebar.d.ts +27 -0
- package/dist/ui/shell/Sidebar.js +84 -0
- package/dist/ui/shell/TwoFactorSetup.d.ts +5 -0
- package/dist/ui/shell/TwoFactorSetup.js +32 -0
- package/dist/ui/shell/shortcuts.d.ts +3 -0
- package/dist/ui/shell/shortcuts.js +13 -4
- package/dist/ui/styles.css +70 -28
- package/dist/ui/views/DateField.d.ts +10 -0
- package/dist/ui/views/DateField.js +129 -0
- package/dist/ui/views/FormView.js +161 -21
- package/dist/ui/views/ListView.d.ts +2 -0
- package/dist/ui/views/ListView.js +8 -3
- package/dist/ui/views/StatusChip.d.ts +10 -0
- package/dist/ui/views/StatusChip.js +22 -0
- package/dist/ui/views/widgets.d.ts +3 -0
- package/dist/ui/views/widgets.js +26 -8
- package/dist/views/types.d.ts +7 -0
- package/dist/views/validate.js +4 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: f41721dc1c51ba8a
|
|
2
2
|
// Schema view of module `portal` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -7,6 +7,7 @@ export interface SchemaView {
|
|
|
7
7
|
readonly 'audit.event': AuditEvent;
|
|
8
8
|
readonly 'auth.api_key': AuthApiKey;
|
|
9
9
|
readonly 'auth.credential': AuthCredential;
|
|
10
|
+
readonly 'auth.policy': AuthPolicy;
|
|
10
11
|
readonly 'auth.session': AuthSession;
|
|
11
12
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
12
13
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -97,6 +98,26 @@ export interface AuthCredential {
|
|
|
97
98
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
/** `auth.policy` (owner: base). */
|
|
102
|
+
export interface AuthPolicy {
|
|
103
|
+
readonly name: 'auth.policy';
|
|
104
|
+
readonly fields: {
|
|
105
|
+
readonly id: F.Id<'auth.policy'>;
|
|
106
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
107
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
108
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
109
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
110
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
111
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
112
|
+
readonly sessionDays: F.Integer;
|
|
113
|
+
};
|
|
114
|
+
readonly methods: AuthPolicyMethods;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
118
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
119
|
+
}
|
|
120
|
+
|
|
100
121
|
/** `auth.session` (owner: base). */
|
|
101
122
|
export interface AuthSession {
|
|
102
123
|
readonly name: 'auth.session';
|
|
@@ -278,6 +299,13 @@ export interface ResCompany {
|
|
|
278
299
|
readonly name: F.Char<{ readonly required: true }>;
|
|
279
300
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
280
301
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
302
|
+
readonly accentColor: F.Char;
|
|
303
|
+
readonly street: F.Char;
|
|
304
|
+
readonly city: F.Char;
|
|
305
|
+
readonly zip: F.Char;
|
|
306
|
+
readonly email: F.Char;
|
|
307
|
+
readonly phone: F.Char;
|
|
308
|
+
readonly website: F.Char;
|
|
281
309
|
};
|
|
282
310
|
readonly methods: ResCompanyMethods;
|
|
283
311
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2544d3673d343d73
|
|
2
2
|
// Bindings of module `product`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2544d3673d343d73
|
|
2
2
|
// Schema view of module `product` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@ export interface SchemaView {
|
|
|
8
8
|
readonly 'audit.event': AuditEvent;
|
|
9
9
|
readonly 'auth.api_key': AuthApiKey;
|
|
10
10
|
readonly 'auth.credential': AuthCredential;
|
|
11
|
+
readonly 'auth.policy': AuthPolicy;
|
|
11
12
|
readonly 'auth.session': AuthSession;
|
|
12
13
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
13
14
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -125,6 +126,26 @@ export interface AuthCredential {
|
|
|
125
126
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
/** `auth.policy` (owner: base). */
|
|
130
|
+
export interface AuthPolicy {
|
|
131
|
+
readonly name: 'auth.policy';
|
|
132
|
+
readonly fields: {
|
|
133
|
+
readonly id: F.Id<'auth.policy'>;
|
|
134
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
135
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
136
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
137
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
138
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
139
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
140
|
+
readonly sessionDays: F.Integer;
|
|
141
|
+
};
|
|
142
|
+
readonly methods: AuthPolicyMethods;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
146
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
147
|
+
}
|
|
148
|
+
|
|
128
149
|
/** `auth.session` (owner: base). */
|
|
129
150
|
export interface AuthSession {
|
|
130
151
|
readonly name: 'auth.session';
|
|
@@ -288,6 +309,13 @@ export interface ResCompany {
|
|
|
288
309
|
readonly name: F.Char<{ readonly required: true }>;
|
|
289
310
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
290
311
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
312
|
+
readonly accentColor: F.Char;
|
|
313
|
+
readonly street: F.Char;
|
|
314
|
+
readonly city: F.Char;
|
|
315
|
+
readonly zip: F.Char;
|
|
316
|
+
readonly email: F.Char;
|
|
317
|
+
readonly phone: F.Char;
|
|
318
|
+
readonly website: F.Char;
|
|
291
319
|
};
|
|
292
320
|
readonly methods: ResCompanyMethods;
|
|
293
321
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 25d6271e4bd2aa40
|
|
2
2
|
// Bindings of module `project`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 25d6271e4bd2aa40
|
|
2
2
|
// Schema view of module `project` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -7,6 +7,7 @@ export interface SchemaView {
|
|
|
7
7
|
readonly 'audit.event': AuditEvent;
|
|
8
8
|
readonly 'auth.api_key': AuthApiKey;
|
|
9
9
|
readonly 'auth.credential': AuthCredential;
|
|
10
|
+
readonly 'auth.policy': AuthPolicy;
|
|
10
11
|
readonly 'auth.session': AuthSession;
|
|
11
12
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
12
13
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -106,6 +107,26 @@ export interface AuthCredential {
|
|
|
106
107
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
/** `auth.policy` (owner: base). */
|
|
111
|
+
export interface AuthPolicy {
|
|
112
|
+
readonly name: 'auth.policy';
|
|
113
|
+
readonly fields: {
|
|
114
|
+
readonly id: F.Id<'auth.policy'>;
|
|
115
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
116
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
117
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
118
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
119
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
120
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
121
|
+
readonly sessionDays: F.Integer;
|
|
122
|
+
};
|
|
123
|
+
readonly methods: AuthPolicyMethods;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
127
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
128
|
+
}
|
|
129
|
+
|
|
109
130
|
/** `auth.session` (owner: base). */
|
|
110
131
|
export interface AuthSession {
|
|
111
132
|
readonly name: 'auth.session';
|
|
@@ -503,6 +524,13 @@ export interface ResCompany {
|
|
|
503
524
|
readonly name: F.Char<{ readonly required: true }>;
|
|
504
525
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
505
526
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
527
|
+
readonly accentColor: F.Char;
|
|
528
|
+
readonly street: F.Char;
|
|
529
|
+
readonly city: F.Char;
|
|
530
|
+
readonly zip: F.Char;
|
|
531
|
+
readonly email: F.Char;
|
|
532
|
+
readonly phone: F.Char;
|
|
533
|
+
readonly website: F.Char;
|
|
506
534
|
};
|
|
507
535
|
readonly methods: ResCompanyMethods;
|
|
508
536
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 99c699d27d0e98db
|
|
2
2
|
// Bindings of module `project_portal`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 99c699d27d0e98db
|
|
2
2
|
// Schema view of module `project_portal` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -7,6 +7,7 @@ export interface SchemaView {
|
|
|
7
7
|
readonly 'audit.event': AuditEvent;
|
|
8
8
|
readonly 'auth.api_key': AuthApiKey;
|
|
9
9
|
readonly 'auth.credential': AuthCredential;
|
|
10
|
+
readonly 'auth.policy': AuthPolicy;
|
|
10
11
|
readonly 'auth.session': AuthSession;
|
|
11
12
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
12
13
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -109,6 +110,26 @@ export interface AuthCredential {
|
|
|
109
110
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
/** `auth.policy` (owner: base). */
|
|
114
|
+
export interface AuthPolicy {
|
|
115
|
+
readonly name: 'auth.policy';
|
|
116
|
+
readonly fields: {
|
|
117
|
+
readonly id: F.Id<'auth.policy'>;
|
|
118
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
119
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
120
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
121
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
122
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
123
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
124
|
+
readonly sessionDays: F.Integer;
|
|
125
|
+
};
|
|
126
|
+
readonly methods: AuthPolicyMethods;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
130
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
131
|
+
}
|
|
132
|
+
|
|
112
133
|
/** `auth.session` (owner: base). */
|
|
113
134
|
export interface AuthSession {
|
|
114
135
|
readonly name: 'auth.session';
|
|
@@ -578,6 +599,13 @@ export interface ResCompany {
|
|
|
578
599
|
readonly name: F.Char<{ readonly required: true }>;
|
|
579
600
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
580
601
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
602
|
+
readonly accentColor: F.Char;
|
|
603
|
+
readonly street: F.Char;
|
|
604
|
+
readonly city: F.Char;
|
|
605
|
+
readonly zip: F.Char;
|
|
606
|
+
readonly email: F.Char;
|
|
607
|
+
readonly phone: F.Char;
|
|
608
|
+
readonly website: F.Char;
|
|
581
609
|
};
|
|
582
610
|
readonly methods: ResCompanyMethods;
|
|
583
611
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 96928facddb91996
|
|
2
2
|
// Bindings of module `purchase`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 96928facddb91996
|
|
2
2
|
// Schema view of module `purchase` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ export interface SchemaView {
|
|
|
11
11
|
readonly 'audit.event': AuditEvent;
|
|
12
12
|
readonly 'auth.api_key': AuthApiKey;
|
|
13
13
|
readonly 'auth.credential': AuthCredential;
|
|
14
|
+
readonly 'auth.policy': AuthPolicy;
|
|
14
15
|
readonly 'auth.session': AuthSession;
|
|
15
16
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
16
17
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -219,6 +220,26 @@ export interface AuthCredential {
|
|
|
219
220
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
220
221
|
}
|
|
221
222
|
|
|
223
|
+
/** `auth.policy` (owner: base). */
|
|
224
|
+
export interface AuthPolicy {
|
|
225
|
+
readonly name: 'auth.policy';
|
|
226
|
+
readonly fields: {
|
|
227
|
+
readonly id: F.Id<'auth.policy'>;
|
|
228
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
229
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
230
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
231
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
232
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
233
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
234
|
+
readonly sessionDays: F.Integer;
|
|
235
|
+
};
|
|
236
|
+
readonly methods: AuthPolicyMethods;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
240
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
241
|
+
}
|
|
242
|
+
|
|
222
243
|
/** `auth.session` (owner: base). */
|
|
223
244
|
export interface AuthSession {
|
|
224
245
|
readonly name: 'auth.session';
|
|
@@ -631,6 +652,13 @@ export interface ResCompany {
|
|
|
631
652
|
readonly name: F.Char<{ readonly required: true }>;
|
|
632
653
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
633
654
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
655
|
+
readonly accentColor: F.Char;
|
|
656
|
+
readonly street: F.Char;
|
|
657
|
+
readonly city: F.Char;
|
|
658
|
+
readonly zip: F.Char;
|
|
659
|
+
readonly email: F.Char;
|
|
660
|
+
readonly phone: F.Char;
|
|
661
|
+
readonly website: F.Char;
|
|
634
662
|
};
|
|
635
663
|
readonly methods: ResCompanyMethods;
|
|
636
664
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 637dfa1606a303a1
|
|
2
2
|
// Bindings of module `purchase_account`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 637dfa1606a303a1
|
|
2
2
|
// Schema view of module `purchase_account` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -24,6 +24,7 @@ export interface SchemaView {
|
|
|
24
24
|
readonly 'audit.event': AuditEvent;
|
|
25
25
|
readonly 'auth.api_key': AuthApiKey;
|
|
26
26
|
readonly 'auth.credential': AuthCredential;
|
|
27
|
+
readonly 'auth.policy': AuthPolicy;
|
|
27
28
|
readonly 'auth.session': AuthSession;
|
|
28
29
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
29
30
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -634,6 +635,26 @@ export interface AuthCredential {
|
|
|
634
635
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
635
636
|
}
|
|
636
637
|
|
|
638
|
+
/** `auth.policy` (owner: base). */
|
|
639
|
+
export interface AuthPolicy {
|
|
640
|
+
readonly name: 'auth.policy';
|
|
641
|
+
readonly fields: {
|
|
642
|
+
readonly id: F.Id<'auth.policy'>;
|
|
643
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
644
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
645
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
646
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
647
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
648
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
649
|
+
readonly sessionDays: F.Integer;
|
|
650
|
+
};
|
|
651
|
+
readonly methods: AuthPolicyMethods;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
655
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
656
|
+
}
|
|
657
|
+
|
|
637
658
|
/** `auth.session` (owner: base). */
|
|
638
659
|
export interface AuthSession {
|
|
639
660
|
readonly name: 'auth.session';
|
|
@@ -1202,6 +1223,13 @@ export interface ResCompany {
|
|
|
1202
1223
|
readonly name: F.Char<{ readonly required: true }>;
|
|
1203
1224
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1204
1225
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
1226
|
+
readonly accentColor: F.Char;
|
|
1227
|
+
readonly street: F.Char;
|
|
1228
|
+
readonly city: F.Char;
|
|
1229
|
+
readonly zip: F.Char;
|
|
1230
|
+
readonly email: F.Char;
|
|
1231
|
+
readonly phone: F.Char;
|
|
1232
|
+
readonly website: F.Char;
|
|
1205
1233
|
readonly fiscalYearStart: F.Integer<{ readonly required: true; readonly default: true }>; // accounting
|
|
1206
1234
|
readonly chartTemplate: F.Char; // accounting
|
|
1207
1235
|
readonly country: F.Char; // accounting
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2bbbe12acf870fd9
|
|
2
2
|
// Bindings of module `purchase_portal`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2bbbe12acf870fd9
|
|
2
2
|
// Schema view of module `purchase_portal` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ export interface SchemaView {
|
|
|
11
11
|
readonly 'audit.event': AuditEvent;
|
|
12
12
|
readonly 'auth.api_key': AuthApiKey;
|
|
13
13
|
readonly 'auth.credential': AuthCredential;
|
|
14
|
+
readonly 'auth.policy': AuthPolicy;
|
|
14
15
|
readonly 'auth.session': AuthSession;
|
|
15
16
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
16
17
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -222,6 +223,26 @@ export interface AuthCredential {
|
|
|
222
223
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
223
224
|
}
|
|
224
225
|
|
|
226
|
+
/** `auth.policy` (owner: base). */
|
|
227
|
+
export interface AuthPolicy {
|
|
228
|
+
readonly name: 'auth.policy';
|
|
229
|
+
readonly fields: {
|
|
230
|
+
readonly id: F.Id<'auth.policy'>;
|
|
231
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
232
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
233
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
234
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
235
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
236
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
237
|
+
readonly sessionDays: F.Integer;
|
|
238
|
+
};
|
|
239
|
+
readonly methods: AuthPolicyMethods;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
243
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
244
|
+
}
|
|
245
|
+
|
|
225
246
|
/** `auth.session` (owner: base). */
|
|
226
247
|
export interface AuthSession {
|
|
227
248
|
readonly name: 'auth.session';
|
|
@@ -706,6 +727,13 @@ export interface ResCompany {
|
|
|
706
727
|
readonly name: F.Char<{ readonly required: true }>;
|
|
707
728
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
708
729
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
730
|
+
readonly accentColor: F.Char;
|
|
731
|
+
readonly street: F.Char;
|
|
732
|
+
readonly city: F.Char;
|
|
733
|
+
readonly zip: F.Char;
|
|
734
|
+
readonly email: F.Char;
|
|
735
|
+
readonly phone: F.Char;
|
|
736
|
+
readonly website: F.Char;
|
|
709
737
|
};
|
|
710
738
|
readonly methods: ResCompanyMethods;
|
|
711
739
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: b268ad86cd210c36
|
|
2
2
|
// Bindings of module `sale_account`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: b268ad86cd210c36
|
|
2
2
|
// Schema view of module `sale_account` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -24,6 +24,7 @@ export interface SchemaView {
|
|
|
24
24
|
readonly 'audit.event': AuditEvent;
|
|
25
25
|
readonly 'auth.api_key': AuthApiKey;
|
|
26
26
|
readonly 'auth.credential': AuthCredential;
|
|
27
|
+
readonly 'auth.policy': AuthPolicy;
|
|
27
28
|
readonly 'auth.session': AuthSession;
|
|
28
29
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
29
30
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -634,6 +635,26 @@ export interface AuthCredential {
|
|
|
634
635
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
635
636
|
}
|
|
636
637
|
|
|
638
|
+
/** `auth.policy` (owner: base). */
|
|
639
|
+
export interface AuthPolicy {
|
|
640
|
+
readonly name: 'auth.policy';
|
|
641
|
+
readonly fields: {
|
|
642
|
+
readonly id: F.Id<'auth.policy'>;
|
|
643
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
644
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
645
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
646
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
647
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
648
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
649
|
+
readonly sessionDays: F.Integer;
|
|
650
|
+
};
|
|
651
|
+
readonly methods: AuthPolicyMethods;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
655
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
656
|
+
}
|
|
657
|
+
|
|
637
658
|
/** `auth.session` (owner: base). */
|
|
638
659
|
export interface AuthSession {
|
|
639
660
|
readonly name: 'auth.session';
|
|
@@ -1128,6 +1149,13 @@ export interface ResCompany {
|
|
|
1128
1149
|
readonly name: F.Char<{ readonly required: true }>;
|
|
1129
1150
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1130
1151
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
1152
|
+
readonly accentColor: F.Char;
|
|
1153
|
+
readonly street: F.Char;
|
|
1154
|
+
readonly city: F.Char;
|
|
1155
|
+
readonly zip: F.Char;
|
|
1156
|
+
readonly email: F.Char;
|
|
1157
|
+
readonly phone: F.Char;
|
|
1158
|
+
readonly website: F.Char;
|
|
1131
1159
|
readonly fiscalYearStart: F.Integer<{ readonly required: true; readonly default: true }>; // accounting
|
|
1132
1160
|
readonly chartTemplate: F.Char; // accounting
|
|
1133
1161
|
readonly country: F.Char; // accounting
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2377e830cd00a651
|
|
2
2
|
// Bindings of module `sale_portal`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2377e830cd00a651
|
|
2
2
|
// Schema view of module `sale_portal` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@ export interface SchemaView {
|
|
|
8
8
|
readonly 'audit.event': AuditEvent;
|
|
9
9
|
readonly 'auth.api_key': AuthApiKey;
|
|
10
10
|
readonly 'auth.credential': AuthCredential;
|
|
11
|
+
readonly 'auth.policy': AuthPolicy;
|
|
11
12
|
readonly 'auth.session': AuthSession;
|
|
12
13
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
13
14
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -139,6 +140,26 @@ export interface AuthCredential {
|
|
|
139
140
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
/** `auth.policy` (owner: base). */
|
|
144
|
+
export interface AuthPolicy {
|
|
145
|
+
readonly name: 'auth.policy';
|
|
146
|
+
readonly fields: {
|
|
147
|
+
readonly id: F.Id<'auth.policy'>;
|
|
148
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
149
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
150
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
151
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
152
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
153
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
154
|
+
readonly sessionDays: F.Integer;
|
|
155
|
+
};
|
|
156
|
+
readonly methods: AuthPolicyMethods;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
160
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
161
|
+
}
|
|
162
|
+
|
|
142
163
|
/** `auth.session` (owner: base). */
|
|
143
164
|
export interface AuthSession {
|
|
144
165
|
readonly name: 'auth.session';
|
|
@@ -552,6 +573,13 @@ export interface ResCompany {
|
|
|
552
573
|
readonly name: F.Char<{ readonly required: true }>;
|
|
553
574
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
554
575
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
576
|
+
readonly accentColor: F.Char;
|
|
577
|
+
readonly street: F.Char;
|
|
578
|
+
readonly city: F.Char;
|
|
579
|
+
readonly zip: F.Char;
|
|
580
|
+
readonly email: F.Char;
|
|
581
|
+
readonly phone: F.Char;
|
|
582
|
+
readonly website: F.Char;
|
|
555
583
|
};
|
|
556
584
|
readonly methods: ResCompanyMethods;
|
|
557
585
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: b044bca835096ac0
|
|
2
2
|
// Bindings of module `sale_project`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: b044bca835096ac0
|
|
2
2
|
// Schema view of module `sale_project` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@ export interface SchemaView {
|
|
|
8
8
|
readonly 'audit.event': AuditEvent;
|
|
9
9
|
readonly 'auth.api_key': AuthApiKey;
|
|
10
10
|
readonly 'auth.credential': AuthCredential;
|
|
11
|
+
readonly 'auth.policy': AuthPolicy;
|
|
11
12
|
readonly 'auth.session': AuthSession;
|
|
12
13
|
readonly 'auth.user_grant': AuthUserGrant;
|
|
13
14
|
readonly 'auth.user_group': AuthUserGroup;
|
|
@@ -140,6 +141,26 @@ export interface AuthCredential {
|
|
|
140
141
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
141
142
|
}
|
|
142
143
|
|
|
144
|
+
/** `auth.policy` (owner: base). */
|
|
145
|
+
export interface AuthPolicy {
|
|
146
|
+
readonly name: 'auth.policy';
|
|
147
|
+
readonly fields: {
|
|
148
|
+
readonly id: F.Id<'auth.policy'>;
|
|
149
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
150
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
151
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
152
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
153
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
154
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
155
|
+
readonly sessionDays: F.Integer;
|
|
156
|
+
};
|
|
157
|
+
readonly methods: AuthPolicyMethods;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
161
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
162
|
+
}
|
|
163
|
+
|
|
143
164
|
/** `auth.session` (owner: base). */
|
|
144
165
|
export interface AuthSession {
|
|
145
166
|
readonly name: 'auth.session';
|
|
@@ -596,6 +617,13 @@ export interface ResCompany {
|
|
|
596
617
|
readonly name: F.Char<{ readonly required: true }>;
|
|
597
618
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
598
619
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
620
|
+
readonly accentColor: F.Char;
|
|
621
|
+
readonly street: F.Char;
|
|
622
|
+
readonly city: F.Char;
|
|
623
|
+
readonly zip: F.Char;
|
|
624
|
+
readonly email: F.Char;
|
|
625
|
+
readonly phone: F.Char;
|
|
626
|
+
readonly website: F.Char;
|
|
599
627
|
};
|
|
600
628
|
readonly methods: ResCompanyMethods;
|
|
601
629
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 2d9d91e59673d178
|
|
2
2
|
// Bindings of module `sales`: import the definition API from here to get types scoped to what it can see.
|
|
3
3
|
export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
|
|
4
4
|
import { definitions } from '../../server/orm.js';
|