shutro-erp 0.3.2 → 0.3.4
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 +156 -1
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +156 -1
- package/dist/assistant/index.js +1 -1
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +156 -1
- package/dist/integrations/index.js +12 -0
- package/dist/integrations/web/OAuthAppsPage.d.ts +9 -0
- package/dist/integrations/web/OAuthAppsPage.js +79 -0
- package/dist/integrations/web/index.d.ts +1 -0
- package/dist/integrations/web/index.js +3 -0
- package/dist/integrations/web/messages.js +58 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +156 -1
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +156 -4
- package/dist/l10n_in/module.d.ts +0 -62
- package/dist/l10n_in/module.js +2 -4
- package/dist/messaging/web/index.js +1 -1
- package/dist/notify/web/index.js +1 -1
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +157 -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 +156 -1
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +156 -1
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +156 -1
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +156 -1
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +156 -1
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +156 -1
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +156 -1
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +156 -1
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +156 -1
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +156 -1
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +156 -1
- package/dist/server/auth/base.js +98 -0
- package/dist/server/auth/oauth.d.ts +21 -0
- package/dist/server/auth/oauth.js +579 -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 +56 -0
- package/dist/server/auth/service.js +185 -3
- package/dist/server/identity.d.ts +4 -0
- package/dist/server/images.d.ts +12 -0
- package/dist/server/images.js +139 -0
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +1 -0
- package/dist/server/server.d.ts +4 -0
- package/dist/server/server.js +20 -4
- package/dist/settings/company.d.ts +34 -0
- package/dist/settings/company.js +189 -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 +507 -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 +105 -0
- package/dist/settings/web/ConnectedAppsPage.d.ts +7 -0
- package/dist/settings/web/ConnectedAppsPage.js +33 -0
- package/dist/settings/web/OverviewPage.d.ts +9 -0
- package/dist/settings/web/OverviewPage.js +77 -0
- package/dist/settings/web/PeoplePage.d.ts +9 -0
- package/dist/settings/web/PeoplePage.js +154 -0
- package/dist/settings/web/ProfilePage.d.ts +14 -0
- package/dist/settings/web/ProfilePage.js +196 -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 +10 -0
- package/dist/settings/web/index.js +31 -1
- package/dist/settings/web/messages.js +594 -0
- package/dist/ui/api.d.ts +8 -0
- package/dist/ui/app.d.ts +5 -0
- package/dist/ui/app.js +143 -33
- package/dist/ui/components/AppIcon.js +11 -1
- package/dist/ui/components/Avatar.d.ts +21 -0
- package/dist/ui/components/Avatar.js +71 -0
- 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 +76 -0
- package/dist/ui/i18n/messages.js +152 -0
- package/dist/ui/index.d.ts +3 -1
- package/dist/ui/index.js +3 -1
- package/dist/ui/lib/accent.d.ts +13 -0
- package/dist/ui/lib/accent.js +36 -0
- package/dist/ui/registry.d.ts +7 -1
- package/dist/ui/registry.js +10 -1
- package/dist/ui/search/ViewTabs.d.ts +14 -0
- package/dist/ui/search/ViewTabs.js +42 -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/Consent.d.ts +5 -0
- package/dist/ui/shell/Consent.js +35 -0
- package/dist/ui/shell/Home.js +85 -16
- package/dist/ui/shell/Sidebar.d.ts +27 -0
- package/dist/ui/shell/Sidebar.js +77 -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 +57 -25
- 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: 7bb9639b7268e2ef
|
|
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,9 +7,11 @@ 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;
|
|
14
|
+
readonly 'kosh.image': KoshImage;
|
|
13
15
|
readonly 'kosh.saved_view': KoshSavedView;
|
|
14
16
|
readonly 'mail.activity': MailActivity;
|
|
15
17
|
readonly 'mail.activity.type': MailActivityType;
|
|
@@ -18,6 +20,10 @@ export interface SchemaView {
|
|
|
18
20
|
readonly 'mail.follower': MailFollower;
|
|
19
21
|
readonly 'mail.message': MailMessage;
|
|
20
22
|
readonly 'mail.message.reaction': MailMessageReaction;
|
|
23
|
+
readonly 'oauth.app': OauthApp;
|
|
24
|
+
readonly 'oauth.code': OauthCode;
|
|
25
|
+
readonly 'oauth.grant': OauthGrant;
|
|
26
|
+
readonly 'oauth.token': OauthToken;
|
|
21
27
|
readonly 'portal.announcement': PortalAnnouncement;
|
|
22
28
|
readonly 'portal.invitation': PortalInvitation;
|
|
23
29
|
readonly 'portal.signature': PortalSignature;
|
|
@@ -109,6 +115,26 @@ export interface AuthCredential {
|
|
|
109
115
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
110
116
|
}
|
|
111
117
|
|
|
118
|
+
/** `auth.policy` (owner: base). */
|
|
119
|
+
export interface AuthPolicy {
|
|
120
|
+
readonly name: 'auth.policy';
|
|
121
|
+
readonly fields: {
|
|
122
|
+
readonly id: F.Id<'auth.policy'>;
|
|
123
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
124
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
125
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
126
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
127
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
128
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
129
|
+
readonly sessionDays: F.Integer;
|
|
130
|
+
};
|
|
131
|
+
readonly methods: AuthPolicyMethods;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
135
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
136
|
+
}
|
|
137
|
+
|
|
112
138
|
/** `auth.session` (owner: base). */
|
|
113
139
|
export interface AuthSession {
|
|
114
140
|
readonly name: 'auth.session';
|
|
@@ -181,6 +207,29 @@ export interface AuthUserGroup {
|
|
|
181
207
|
export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
|
|
182
208
|
}
|
|
183
209
|
|
|
210
|
+
/** `kosh.image` (owner: base). */
|
|
211
|
+
export interface KoshImage {
|
|
212
|
+
readonly name: 'kosh.image';
|
|
213
|
+
readonly fields: {
|
|
214
|
+
readonly id: F.Id<'kosh.image'>;
|
|
215
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
216
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
217
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
218
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
219
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
220
|
+
readonly ownerModel: F.Char<{ readonly required: true }>;
|
|
221
|
+
readonly ownerId: F.Integer<{ readonly required: true }>;
|
|
222
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
223
|
+
readonly data: F.Text<{ readonly required: true }>;
|
|
224
|
+
readonly hash: F.Char<{ readonly required: true }>;
|
|
225
|
+
};
|
|
226
|
+
readonly methods: KoshImageMethods;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** Methods of `kosh.image`: declared ones and transitions. */
|
|
230
|
+
export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
|
|
231
|
+
}
|
|
232
|
+
|
|
184
233
|
/** `kosh.saved_view` (owner: base). */
|
|
185
234
|
export interface KoshSavedView {
|
|
186
235
|
readonly name: 'kosh.saved_view';
|
|
@@ -383,6 +432,105 @@ export interface MailMessageReaction {
|
|
|
383
432
|
export interface MailMessageReactionMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.message.reaction'> {
|
|
384
433
|
}
|
|
385
434
|
|
|
435
|
+
/** `oauth.app` (owner: base). */
|
|
436
|
+
export interface OauthApp {
|
|
437
|
+
readonly name: 'oauth.app';
|
|
438
|
+
readonly fields: {
|
|
439
|
+
readonly id: F.Id<'oauth.app'>;
|
|
440
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
441
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
442
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
443
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
444
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
445
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
446
|
+
readonly clientId: F.Char<{ readonly required: true }>;
|
|
447
|
+
readonly secretHash: F.Char;
|
|
448
|
+
readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
449
|
+
readonly redirectUris: F.Text<{ readonly required: true }>;
|
|
450
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
451
|
+
readonly homepage: F.Char;
|
|
452
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
453
|
+
readonly owner: F.Many2one<'res.users'>;
|
|
454
|
+
};
|
|
455
|
+
readonly methods: OauthAppMethods;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** Methods of `oauth.app`: declared ones and transitions. */
|
|
459
|
+
export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** `oauth.code` (owner: base). */
|
|
463
|
+
export interface OauthCode {
|
|
464
|
+
readonly name: 'oauth.code';
|
|
465
|
+
readonly fields: {
|
|
466
|
+
readonly id: F.Id<'oauth.code'>;
|
|
467
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
468
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
469
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
470
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
471
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
472
|
+
readonly codeHash: F.Char<{ readonly required: true }>;
|
|
473
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
474
|
+
readonly redirectUri: F.Char<{ readonly required: true }>;
|
|
475
|
+
readonly challenge: F.Char;
|
|
476
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
477
|
+
readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
478
|
+
};
|
|
479
|
+
readonly methods: OauthCodeMethods;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/** Methods of `oauth.code`: declared ones and transitions. */
|
|
483
|
+
export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** `oauth.grant` (owner: base). */
|
|
487
|
+
export interface OauthGrant {
|
|
488
|
+
readonly name: 'oauth.grant';
|
|
489
|
+
readonly fields: {
|
|
490
|
+
readonly id: F.Id<'oauth.grant'>;
|
|
491
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
492
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
493
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
494
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
495
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
496
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
497
|
+
readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
|
|
498
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
499
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
500
|
+
readonly lastUsedAt: F.Datetime;
|
|
501
|
+
};
|
|
502
|
+
readonly methods: OauthGrantMethods;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/** Methods of `oauth.grant`: declared ones and transitions. */
|
|
506
|
+
export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** `oauth.token` (owner: base). */
|
|
510
|
+
export interface OauthToken {
|
|
511
|
+
readonly name: 'oauth.token';
|
|
512
|
+
readonly fields: {
|
|
513
|
+
readonly id: F.Id<'oauth.token'>;
|
|
514
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
515
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
516
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
517
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
518
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
519
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
520
|
+
readonly accessHash: F.Char<{ readonly required: true }>;
|
|
521
|
+
readonly refreshHash: F.Char<{ readonly required: true }>;
|
|
522
|
+
readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
523
|
+
readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
524
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
525
|
+
readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
526
|
+
};
|
|
527
|
+
readonly methods: OauthTokenMethods;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/** Methods of `oauth.token`: declared ones and transitions. */
|
|
531
|
+
export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
|
|
532
|
+
}
|
|
533
|
+
|
|
386
534
|
/** `portal.announcement` (owner: portal). */
|
|
387
535
|
export interface PortalAnnouncement {
|
|
388
536
|
readonly name: 'portal.announcement';
|
|
@@ -578,6 +726,13 @@ export interface ResCompany {
|
|
|
578
726
|
readonly name: F.Char<{ readonly required: true }>;
|
|
579
727
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
580
728
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
729
|
+
readonly accentColor: F.Char;
|
|
730
|
+
readonly street: F.Char;
|
|
731
|
+
readonly city: F.Char;
|
|
732
|
+
readonly zip: F.Char;
|
|
733
|
+
readonly email: F.Char;
|
|
734
|
+
readonly phone: F.Char;
|
|
735
|
+
readonly website: F.Char;
|
|
581
736
|
};
|
|
582
737
|
readonly methods: ResCompanyMethods;
|
|
583
738
|
}
|
|
@@ -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: f0906f628180e9a5
|
|
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: f0906f628180e9a5
|
|
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,9 +11,11 @@ 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;
|
|
18
|
+
readonly 'kosh.image': KoshImage;
|
|
17
19
|
readonly 'kosh.saved_view': KoshSavedView;
|
|
18
20
|
readonly 'mail.activity': MailActivity;
|
|
19
21
|
readonly 'mail.activity.type': MailActivityType;
|
|
@@ -22,6 +24,10 @@ export interface SchemaView {
|
|
|
22
24
|
readonly 'mail.follower': MailFollower;
|
|
23
25
|
readonly 'mail.message': MailMessage;
|
|
24
26
|
readonly 'mail.message.reaction': MailMessageReaction;
|
|
27
|
+
readonly 'oauth.app': OauthApp;
|
|
28
|
+
readonly 'oauth.code': OauthCode;
|
|
29
|
+
readonly 'oauth.grant': OauthGrant;
|
|
30
|
+
readonly 'oauth.token': OauthToken;
|
|
25
31
|
readonly 'product.category': ProductCategory;
|
|
26
32
|
readonly 'product.product': ProductProduct;
|
|
27
33
|
readonly 'purchase.order': PurchaseOrder;
|
|
@@ -219,6 +225,26 @@ export interface AuthCredential {
|
|
|
219
225
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
220
226
|
}
|
|
221
227
|
|
|
228
|
+
/** `auth.policy` (owner: base). */
|
|
229
|
+
export interface AuthPolicy {
|
|
230
|
+
readonly name: 'auth.policy';
|
|
231
|
+
readonly fields: {
|
|
232
|
+
readonly id: F.Id<'auth.policy'>;
|
|
233
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
234
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
235
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
236
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
237
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
238
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
239
|
+
readonly sessionDays: F.Integer;
|
|
240
|
+
};
|
|
241
|
+
readonly methods: AuthPolicyMethods;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
245
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
246
|
+
}
|
|
247
|
+
|
|
222
248
|
/** `auth.session` (owner: base). */
|
|
223
249
|
export interface AuthSession {
|
|
224
250
|
readonly name: 'auth.session';
|
|
@@ -291,6 +317,29 @@ export interface AuthUserGroup {
|
|
|
291
317
|
export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
|
|
292
318
|
}
|
|
293
319
|
|
|
320
|
+
/** `kosh.image` (owner: base). */
|
|
321
|
+
export interface KoshImage {
|
|
322
|
+
readonly name: 'kosh.image';
|
|
323
|
+
readonly fields: {
|
|
324
|
+
readonly id: F.Id<'kosh.image'>;
|
|
325
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
326
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
327
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
328
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
329
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
330
|
+
readonly ownerModel: F.Char<{ readonly required: true }>;
|
|
331
|
+
readonly ownerId: F.Integer<{ readonly required: true }>;
|
|
332
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
333
|
+
readonly data: F.Text<{ readonly required: true }>;
|
|
334
|
+
readonly hash: F.Char<{ readonly required: true }>;
|
|
335
|
+
};
|
|
336
|
+
readonly methods: KoshImageMethods;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/** Methods of `kosh.image`: declared ones and transitions. */
|
|
340
|
+
export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
|
|
341
|
+
}
|
|
342
|
+
|
|
294
343
|
/** `kosh.saved_view` (owner: base). */
|
|
295
344
|
export interface KoshSavedView {
|
|
296
345
|
readonly name: 'kosh.saved_view';
|
|
@@ -493,6 +542,105 @@ export interface MailMessageReaction {
|
|
|
493
542
|
export interface MailMessageReactionMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.message.reaction'> {
|
|
494
543
|
}
|
|
495
544
|
|
|
545
|
+
/** `oauth.app` (owner: base). */
|
|
546
|
+
export interface OauthApp {
|
|
547
|
+
readonly name: 'oauth.app';
|
|
548
|
+
readonly fields: {
|
|
549
|
+
readonly id: F.Id<'oauth.app'>;
|
|
550
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
551
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
552
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
553
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
554
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
555
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
556
|
+
readonly clientId: F.Char<{ readonly required: true }>;
|
|
557
|
+
readonly secretHash: F.Char;
|
|
558
|
+
readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
559
|
+
readonly redirectUris: F.Text<{ readonly required: true }>;
|
|
560
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
561
|
+
readonly homepage: F.Char;
|
|
562
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
563
|
+
readonly owner: F.Many2one<'res.users'>;
|
|
564
|
+
};
|
|
565
|
+
readonly methods: OauthAppMethods;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/** Methods of `oauth.app`: declared ones and transitions. */
|
|
569
|
+
export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/** `oauth.code` (owner: base). */
|
|
573
|
+
export interface OauthCode {
|
|
574
|
+
readonly name: 'oauth.code';
|
|
575
|
+
readonly fields: {
|
|
576
|
+
readonly id: F.Id<'oauth.code'>;
|
|
577
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
578
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
579
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
580
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
581
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
582
|
+
readonly codeHash: F.Char<{ readonly required: true }>;
|
|
583
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
584
|
+
readonly redirectUri: F.Char<{ readonly required: true }>;
|
|
585
|
+
readonly challenge: F.Char;
|
|
586
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
587
|
+
readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
588
|
+
};
|
|
589
|
+
readonly methods: OauthCodeMethods;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/** Methods of `oauth.code`: declared ones and transitions. */
|
|
593
|
+
export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/** `oauth.grant` (owner: base). */
|
|
597
|
+
export interface OauthGrant {
|
|
598
|
+
readonly name: 'oauth.grant';
|
|
599
|
+
readonly fields: {
|
|
600
|
+
readonly id: F.Id<'oauth.grant'>;
|
|
601
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
602
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
603
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
604
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
605
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
606
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
607
|
+
readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
|
|
608
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
609
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
610
|
+
readonly lastUsedAt: F.Datetime;
|
|
611
|
+
};
|
|
612
|
+
readonly methods: OauthGrantMethods;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/** Methods of `oauth.grant`: declared ones and transitions. */
|
|
616
|
+
export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** `oauth.token` (owner: base). */
|
|
620
|
+
export interface OauthToken {
|
|
621
|
+
readonly name: 'oauth.token';
|
|
622
|
+
readonly fields: {
|
|
623
|
+
readonly id: F.Id<'oauth.token'>;
|
|
624
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
625
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
626
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
627
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
628
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
629
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
630
|
+
readonly accessHash: F.Char<{ readonly required: true }>;
|
|
631
|
+
readonly refreshHash: F.Char<{ readonly required: true }>;
|
|
632
|
+
readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
633
|
+
readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
634
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
635
|
+
readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
636
|
+
};
|
|
637
|
+
readonly methods: OauthTokenMethods;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/** Methods of `oauth.token`: declared ones and transitions. */
|
|
641
|
+
export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
|
|
642
|
+
}
|
|
643
|
+
|
|
496
644
|
/** `product.category` (owner: product). */
|
|
497
645
|
export interface ProductCategory {
|
|
498
646
|
readonly name: 'product.category';
|
|
@@ -631,6 +779,13 @@ export interface ResCompany {
|
|
|
631
779
|
readonly name: F.Char<{ readonly required: true }>;
|
|
632
780
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
633
781
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
782
|
+
readonly accentColor: F.Char;
|
|
783
|
+
readonly street: F.Char;
|
|
784
|
+
readonly city: F.Char;
|
|
785
|
+
readonly zip: F.Char;
|
|
786
|
+
readonly email: F.Char;
|
|
787
|
+
readonly phone: F.Char;
|
|
788
|
+
readonly website: F.Char;
|
|
634
789
|
};
|
|
635
790
|
readonly methods: ResCompanyMethods;
|
|
636
791
|
}
|
|
@@ -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: 44c407ac55365894
|
|
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: 44c407ac55365894
|
|
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,9 +24,11 @@ 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;
|
|
31
|
+
readonly 'kosh.image': KoshImage;
|
|
30
32
|
readonly 'kosh.saved_view': KoshSavedView;
|
|
31
33
|
readonly 'mail.activity': MailActivity;
|
|
32
34
|
readonly 'mail.activity.type': MailActivityType;
|
|
@@ -35,6 +37,10 @@ export interface SchemaView {
|
|
|
35
37
|
readonly 'mail.follower': MailFollower;
|
|
36
38
|
readonly 'mail.message': MailMessage;
|
|
37
39
|
readonly 'mail.message.reaction': MailMessageReaction;
|
|
40
|
+
readonly 'oauth.app': OauthApp;
|
|
41
|
+
readonly 'oauth.code': OauthCode;
|
|
42
|
+
readonly 'oauth.grant': OauthGrant;
|
|
43
|
+
readonly 'oauth.token': OauthToken;
|
|
38
44
|
readonly 'product.category': ProductCategory;
|
|
39
45
|
readonly 'product.product': ProductProduct;
|
|
40
46
|
readonly 'purchase.order': PurchaseOrder;
|
|
@@ -634,6 +640,26 @@ export interface AuthCredential {
|
|
|
634
640
|
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
635
641
|
}
|
|
636
642
|
|
|
643
|
+
/** `auth.policy` (owner: base). */
|
|
644
|
+
export interface AuthPolicy {
|
|
645
|
+
readonly name: 'auth.policy';
|
|
646
|
+
readonly fields: {
|
|
647
|
+
readonly id: F.Id<'auth.policy'>;
|
|
648
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
649
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
650
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
651
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
652
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
653
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
654
|
+
readonly sessionDays: F.Integer;
|
|
655
|
+
};
|
|
656
|
+
readonly methods: AuthPolicyMethods;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
660
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
661
|
+
}
|
|
662
|
+
|
|
637
663
|
/** `auth.session` (owner: base). */
|
|
638
664
|
export interface AuthSession {
|
|
639
665
|
readonly name: 'auth.session';
|
|
@@ -706,6 +732,29 @@ export interface AuthUserGroup {
|
|
|
706
732
|
export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
|
|
707
733
|
}
|
|
708
734
|
|
|
735
|
+
/** `kosh.image` (owner: base). */
|
|
736
|
+
export interface KoshImage {
|
|
737
|
+
readonly name: 'kosh.image';
|
|
738
|
+
readonly fields: {
|
|
739
|
+
readonly id: F.Id<'kosh.image'>;
|
|
740
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
741
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
742
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
743
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
744
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
745
|
+
readonly ownerModel: F.Char<{ readonly required: true }>;
|
|
746
|
+
readonly ownerId: F.Integer<{ readonly required: true }>;
|
|
747
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
748
|
+
readonly data: F.Text<{ readonly required: true }>;
|
|
749
|
+
readonly hash: F.Char<{ readonly required: true }>;
|
|
750
|
+
};
|
|
751
|
+
readonly methods: KoshImageMethods;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** Methods of `kosh.image`: declared ones and transitions. */
|
|
755
|
+
export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
|
|
756
|
+
}
|
|
757
|
+
|
|
709
758
|
/** `kosh.saved_view` (owner: base). */
|
|
710
759
|
export interface KoshSavedView {
|
|
711
760
|
readonly name: 'kosh.saved_view';
|
|
@@ -908,6 +957,105 @@ export interface MailMessageReaction {
|
|
|
908
957
|
export interface MailMessageReactionMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.message.reaction'> {
|
|
909
958
|
}
|
|
910
959
|
|
|
960
|
+
/** `oauth.app` (owner: base). */
|
|
961
|
+
export interface OauthApp {
|
|
962
|
+
readonly name: 'oauth.app';
|
|
963
|
+
readonly fields: {
|
|
964
|
+
readonly id: F.Id<'oauth.app'>;
|
|
965
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
966
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
967
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
968
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
969
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
970
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
971
|
+
readonly clientId: F.Char<{ readonly required: true }>;
|
|
972
|
+
readonly secretHash: F.Char;
|
|
973
|
+
readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
974
|
+
readonly redirectUris: F.Text<{ readonly required: true }>;
|
|
975
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
976
|
+
readonly homepage: F.Char;
|
|
977
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
978
|
+
readonly owner: F.Many2one<'res.users'>;
|
|
979
|
+
};
|
|
980
|
+
readonly methods: OauthAppMethods;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/** Methods of `oauth.app`: declared ones and transitions. */
|
|
984
|
+
export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/** `oauth.code` (owner: base). */
|
|
988
|
+
export interface OauthCode {
|
|
989
|
+
readonly name: 'oauth.code';
|
|
990
|
+
readonly fields: {
|
|
991
|
+
readonly id: F.Id<'oauth.code'>;
|
|
992
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
993
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
994
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
995
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
996
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
997
|
+
readonly codeHash: F.Char<{ readonly required: true }>;
|
|
998
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
999
|
+
readonly redirectUri: F.Char<{ readonly required: true }>;
|
|
1000
|
+
readonly challenge: F.Char;
|
|
1001
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
1002
|
+
readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1003
|
+
};
|
|
1004
|
+
readonly methods: OauthCodeMethods;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/** Methods of `oauth.code`: declared ones and transitions. */
|
|
1008
|
+
export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/** `oauth.grant` (owner: base). */
|
|
1012
|
+
export interface OauthGrant {
|
|
1013
|
+
readonly name: 'oauth.grant';
|
|
1014
|
+
readonly fields: {
|
|
1015
|
+
readonly id: F.Id<'oauth.grant'>;
|
|
1016
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1017
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1018
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1019
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1020
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1021
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
1022
|
+
readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
|
|
1023
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
1024
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1025
|
+
readonly lastUsedAt: F.Datetime;
|
|
1026
|
+
};
|
|
1027
|
+
readonly methods: OauthGrantMethods;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/** Methods of `oauth.grant`: declared ones and transitions. */
|
|
1031
|
+
export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/** `oauth.token` (owner: base). */
|
|
1035
|
+
export interface OauthToken {
|
|
1036
|
+
readonly name: 'oauth.token';
|
|
1037
|
+
readonly fields: {
|
|
1038
|
+
readonly id: F.Id<'oauth.token'>;
|
|
1039
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1040
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1041
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1042
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1043
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1044
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
1045
|
+
readonly accessHash: F.Char<{ readonly required: true }>;
|
|
1046
|
+
readonly refreshHash: F.Char<{ readonly required: true }>;
|
|
1047
|
+
readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
1048
|
+
readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
1049
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1050
|
+
readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1051
|
+
};
|
|
1052
|
+
readonly methods: OauthTokenMethods;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/** Methods of `oauth.token`: declared ones and transitions. */
|
|
1056
|
+
export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
|
|
1057
|
+
}
|
|
1058
|
+
|
|
911
1059
|
/** `product.category` (owner: product). */
|
|
912
1060
|
export interface ProductCategory {
|
|
913
1061
|
readonly name: 'product.category';
|
|
@@ -1202,6 +1350,13 @@ export interface ResCompany {
|
|
|
1202
1350
|
readonly name: F.Char<{ readonly required: true }>;
|
|
1203
1351
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1204
1352
|
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
1353
|
+
readonly accentColor: F.Char;
|
|
1354
|
+
readonly street: F.Char;
|
|
1355
|
+
readonly city: F.Char;
|
|
1356
|
+
readonly zip: F.Char;
|
|
1357
|
+
readonly email: F.Char;
|
|
1358
|
+
readonly phone: F.Char;
|
|
1359
|
+
readonly website: F.Char;
|
|
1205
1360
|
readonly fiscalYearStart: F.Integer<{ readonly required: true; readonly default: true }>; // accounting
|
|
1206
1361
|
readonly chartTemplate: F.Char; // accounting
|
|
1207
1362
|
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: 6fa2eddf8616292c
|
|
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';
|