@open-mercato/core 0.6.6-develop.5612.1.d382eb2f33 → 0.6.6-develop.5619.1.29f01e2c42
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/.turbo/turbo-build.log +1 -1
- package/dist/generated/entities/api_key/index.js +2 -0
- package/dist/generated/entities/api_key/index.js.map +2 -2
- package/dist/generated/entities/attachment_partition/index.js +4 -0
- package/dist/generated/entities/attachment_partition/index.js.map +2 -2
- package/dist/generated/entity-fields-registry.js +3 -0
- package/dist/generated/entity-fields-registry.js.map +2 -2
- package/dist/modules/api_keys/data/entities.js +9 -2
- package/dist/modules/api_keys/data/entities.js.map +2 -2
- package/dist/modules/api_keys/migrations/Migration20260523234901.js +17 -0
- package/dist/modules/api_keys/migrations/Migration20260523234901.js.map +7 -0
- package/dist/modules/api_keys/services/apiKeyService.js +26 -0
- package/dist/modules/api_keys/services/apiKeyService.js.map +2 -2
- package/dist/modules/attachments/api/partitions/route.js +54 -12
- package/dist/modules/attachments/api/partitions/route.js.map +2 -2
- package/dist/modules/attachments/data/entities.js +7 -0
- package/dist/modules/attachments/data/entities.js.map +2 -2
- package/dist/modules/attachments/migrations/Migration20260524000000.js +27 -0
- package/dist/modules/attachments/migrations/Migration20260524000000.js.map +7 -0
- package/dist/modules/auth/api/roles/route.js +6 -35
- package/dist/modules/auth/api/roles/route.js.map +2 -2
- package/dist/modules/auth/cli.js +26 -4
- package/dist/modules/auth/cli.js.map +2 -2
- package/dist/modules/auth/commands/roles.js +34 -11
- package/dist/modules/auth/commands/roles.js.map +2 -2
- package/dist/modules/auth/lib/roleTenantGuard.js +41 -13
- package/dist/modules/auth/lib/roleTenantGuard.js.map +3 -3
- package/dist/modules/auth/lib/setup-app.js +88 -26
- package/dist/modules/auth/lib/setup-app.js.map +2 -2
- package/dist/modules/currencies/api/fetch-configs/route.js +4 -2
- package/dist/modules/currencies/api/fetch-configs/route.js.map +2 -2
- package/dist/modules/integrations/api/[id]/route.js +5 -1
- package/dist/modules/integrations/api/[id]/route.js.map +2 -2
- package/dist/modules/integrations/api/route.js +5 -1
- package/dist/modules/integrations/api/route.js.map +2 -2
- package/dist/modules/integrations/lib/credentials-service.js +6 -4
- package/dist/modules/integrations/lib/credentials-service.js.map +2 -2
- package/dist/modules/sales/acl.js +6 -0
- package/dist/modules/sales/acl.js.map +2 -2
- package/dist/modules/sales/api/returns/route.js +43 -3
- package/dist/modules/sales/api/returns/route.js.map +2 -2
- package/dist/modules/sales/commands/returns.js +473 -213
- package/dist/modules/sales/commands/returns.js.map +2 -2
- package/dist/modules/sales/commands/shared.js +2 -0
- package/dist/modules/sales/commands/shared.js.map +2 -2
- package/dist/modules/sales/components/documents/ReturnEditDialog.js +125 -0
- package/dist/modules/sales/components/documents/ReturnEditDialog.js.map +7 -0
- package/dist/modules/sales/components/documents/ReturnsSection.js +102 -6
- package/dist/modules/sales/components/documents/ReturnsSection.js.map +2 -2
- package/dist/modules/sales/data/validators.js +13 -0
- package/dist/modules/sales/data/validators.js.map +2 -2
- package/dist/modules/sales/setup.js +1 -0
- package/dist/modules/sales/setup.js.map +2 -2
- package/generated/entities/api_key/index.ts +1 -0
- package/generated/entities/attachment_partition/index.ts +2 -0
- package/generated/entity-fields-registry.ts +3 -0
- package/package.json +7 -7
- package/src/modules/api_keys/data/entities.ts +15 -1
- package/src/modules/api_keys/migrations/.snapshot-open-mercato.json +18 -0
- package/src/modules/api_keys/migrations/Migration20260523234901.ts +17 -0
- package/src/modules/api_keys/services/apiKeyService.ts +63 -0
- package/src/modules/attachments/api/partitions/route.ts +58 -11
- package/src/modules/attachments/data/entities.ts +7 -0
- package/src/modules/attachments/migrations/.snapshot-open-mercato.json +28 -0
- package/src/modules/attachments/migrations/Migration20260524000000.ts +25 -0
- package/src/modules/auth/api/roles/route.ts +7 -38
- package/src/modules/auth/cli.ts +27 -4
- package/src/modules/auth/commands/roles.ts +39 -11
- package/src/modules/auth/lib/roleTenantGuard.ts +56 -17
- package/src/modules/auth/lib/setup-app.ts +160 -32
- package/src/modules/currencies/api/fetch-configs/route.ts +4 -2
- package/src/modules/integrations/api/[id]/route.ts +5 -2
- package/src/modules/integrations/api/route.ts +5 -2
- package/src/modules/integrations/lib/credentials-service.ts +15 -5
- package/src/modules/sales/acl.ts +6 -0
- package/src/modules/sales/api/returns/route.ts +41 -3
- package/src/modules/sales/commands/returns.ts +561 -229
- package/src/modules/sales/commands/shared.ts +1 -0
- package/src/modules/sales/components/documents/ReturnEditDialog.tsx +157 -0
- package/src/modules/sales/components/documents/ReturnsSection.tsx +105 -3
- package/src/modules/sales/data/validators.ts +15 -0
- package/src/modules/sales/i18n/de.json +11 -0
- package/src/modules/sales/i18n/en.json +11 -0
- package/src/modules/sales/i18n/es.json +11 -0
- package/src/modules/sales/i18n/pl.json +11 -0
- package/src/modules/sales/setup.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,6 +10,7 @@ const created_by = "created_by";
|
|
|
10
10
|
const session_token = "session_token";
|
|
11
11
|
const session_user_id = "session_user_id";
|
|
12
12
|
const session_secret_encrypted = "session_secret_encrypted";
|
|
13
|
+
const opencode_session_id = "opencode_session_id";
|
|
13
14
|
const last_used_at = "last_used_at";
|
|
14
15
|
const expires_at = "expires_at";
|
|
15
16
|
const created_at = "created_at";
|
|
@@ -26,6 +27,7 @@ export {
|
|
|
26
27
|
key_prefix,
|
|
27
28
|
last_used_at,
|
|
28
29
|
name,
|
|
30
|
+
opencode_session_id,
|
|
29
31
|
organization_id,
|
|
30
32
|
roles_json,
|
|
31
33
|
session_secret_encrypted,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../generated/entities/api_key/index.ts"],
|
|
4
|
-
"sourcesContent": ["export const id = \"id\";\nexport const name = \"name\";\nexport const description = \"description\";\nexport const tenant_id = \"tenant_id\";\nexport const organization_id = \"organization_id\";\nexport const key_hash = \"key_hash\";\nexport const key_prefix = \"key_prefix\";\nexport const roles_json = \"roles_json\";\nexport const created_by = \"created_by\";\nexport const session_token = \"session_token\";\nexport const session_user_id = \"session_user_id\";\nexport const session_secret_encrypted = \"session_secret_encrypted\";\nexport const last_used_at = \"last_used_at\";\nexport const expires_at = \"expires_at\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
|
|
5
|
-
"mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,gBAAgB;AACtB,MAAM,kBAAkB;AACxB,MAAM,2BAA2B;AACjC,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
|
|
4
|
+
"sourcesContent": ["export const id = \"id\";\nexport const name = \"name\";\nexport const description = \"description\";\nexport const tenant_id = \"tenant_id\";\nexport const organization_id = \"organization_id\";\nexport const key_hash = \"key_hash\";\nexport const key_prefix = \"key_prefix\";\nexport const roles_json = \"roles_json\";\nexport const created_by = \"created_by\";\nexport const session_token = \"session_token\";\nexport const session_user_id = \"session_user_id\";\nexport const session_secret_encrypted = \"session_secret_encrypted\";\nexport const opencode_session_id = \"opencode_session_id\";\nexport const last_used_at = \"last_used_at\";\nexport const expires_at = \"expires_at\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
|
|
5
|
+
"mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,gBAAgB;AACtB,MAAM,kBAAkB;AACxB,MAAM,2BAA2B;AACjC,MAAM,sBAAsB;AAC5B,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,6 +7,8 @@ const config_json = "config_json";
|
|
|
7
7
|
const is_public = "is_public";
|
|
8
8
|
const requires_ocr = "requires_ocr";
|
|
9
9
|
const ocr_model = "ocr_model";
|
|
10
|
+
const organization_id = "organization_id";
|
|
11
|
+
const tenant_id = "tenant_id";
|
|
10
12
|
const created_at = "created_at";
|
|
11
13
|
const updated_at = "updated_at";
|
|
12
14
|
export {
|
|
@@ -17,8 +19,10 @@ export {
|
|
|
17
19
|
id,
|
|
18
20
|
is_public,
|
|
19
21
|
ocr_model,
|
|
22
|
+
organization_id,
|
|
20
23
|
requires_ocr,
|
|
21
24
|
storage_driver,
|
|
25
|
+
tenant_id,
|
|
22
26
|
title,
|
|
23
27
|
updated_at
|
|
24
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../generated/entities/attachment_partition/index.ts"],
|
|
4
|
-
"sourcesContent": ["export const id = \"id\";\nexport const code = \"code\";\nexport const title = \"title\";\nexport const description = \"description\";\nexport const storage_driver = \"storage_driver\";\nexport const config_json = \"config_json\";\nexport const is_public = \"is_public\";\nexport const requires_ocr = \"requires_ocr\";\nexport const ocr_model = \"ocr_model\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
|
|
5
|
-
"mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;",
|
|
4
|
+
"sourcesContent": ["export const id = \"id\";\nexport const code = \"code\";\nexport const title = \"title\";\nexport const description = \"description\";\nexport const storage_driver = \"storage_driver\";\nexport const config_json = \"config_json\";\nexport const is_public = \"is_public\";\nexport const requires_ocr = \"requires_ocr\";\nexport const ocr_model = \"ocr_model\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
|
|
5
|
+
"mappings": "AAAO,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -53,6 +53,7 @@ const entityFieldsRegistry = {
|
|
|
53
53
|
"session_token": "session_token",
|
|
54
54
|
"session_user_id": "session_user_id",
|
|
55
55
|
"session_secret_encrypted": "session_secret_encrypted",
|
|
56
|
+
"opencode_session_id": "opencode_session_id",
|
|
56
57
|
"last_used_at": "last_used_at",
|
|
57
58
|
"expires_at": "expires_at",
|
|
58
59
|
"created_at": "created_at",
|
|
@@ -86,6 +87,8 @@ const entityFieldsRegistry = {
|
|
|
86
87
|
"is_public": "is_public",
|
|
87
88
|
"requires_ocr": "requires_ocr",
|
|
88
89
|
"ocr_model": "ocr_model",
|
|
90
|
+
"organization_id": "organization_id",
|
|
91
|
+
"tenant_id": "tenant_id",
|
|
89
92
|
"created_at": "created_at",
|
|
90
93
|
"updated_at": "updated_at"
|
|
91
94
|
},
|