@objectstack/platform-objects 11.4.0 → 11.6.0
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/audit/index.d.mts +4301 -1
- package/dist/audit/index.d.ts +4301 -1
- package/dist/audit/index.js +81 -0
- package/dist/audit/index.js.map +1 -1
- package/dist/audit/index.mjs +81 -1
- package/dist/audit/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4674,6 +4674,86 @@ var SysJobQueue = ObjectSchema.create({
|
|
|
4674
4674
|
{ fields: ["status"] }
|
|
4675
4675
|
]
|
|
4676
4676
|
});
|
|
4677
|
+
var SysImportJob = ObjectSchema.create({
|
|
4678
|
+
name: "sys_import_job",
|
|
4679
|
+
label: "Import Job",
|
|
4680
|
+
pluralLabel: "Import Jobs",
|
|
4681
|
+
icon: "upload",
|
|
4682
|
+
isSystem: true,
|
|
4683
|
+
managedBy: "system",
|
|
4684
|
+
description: "Asynchronous bulk-import job state, progress, and history",
|
|
4685
|
+
displayNameField: "object_name",
|
|
4686
|
+
nameField: "object_name",
|
|
4687
|
+
// [ADR-0079] canonical primary-title pointer
|
|
4688
|
+
titleFormat: "{object_name} import @ {created_at}",
|
|
4689
|
+
compactLayout: ["object_name", "status", "processed_rows", "total_rows", "created_at"],
|
|
4690
|
+
fields: {
|
|
4691
|
+
id: Field.text({ label: "Job ID", required: true, readonly: true, group: "System" }),
|
|
4692
|
+
object_name: Field.text({
|
|
4693
|
+
label: "Object",
|
|
4694
|
+
required: true,
|
|
4695
|
+
maxLength: 255,
|
|
4696
|
+
searchable: true,
|
|
4697
|
+
description: "API name of the object being imported into",
|
|
4698
|
+
group: "Identity"
|
|
4699
|
+
}),
|
|
4700
|
+
status: Field.select(
|
|
4701
|
+
["pending", "running", "succeeded", "failed", "cancelled"],
|
|
4702
|
+
{ label: "Status", required: true, defaultValue: "pending", group: "State" }
|
|
4703
|
+
),
|
|
4704
|
+
// ── progress counters (updated as the worker streams through the batch) ──
|
|
4705
|
+
total_rows: Field.number({ label: "Total Rows", required: true, defaultValue: 0, group: "Progress" }),
|
|
4706
|
+
processed_rows: Field.number({ label: "Processed Rows", required: true, defaultValue: 0, group: "Progress" }),
|
|
4707
|
+
created_count: Field.number({ label: "Created", required: false, defaultValue: 0, group: "Progress" }),
|
|
4708
|
+
updated_count: Field.number({ label: "Updated", required: false, defaultValue: 0, group: "Progress" }),
|
|
4709
|
+
skipped_count: Field.number({ label: "Skipped", required: false, defaultValue: 0, group: "Progress" }),
|
|
4710
|
+
error_count: Field.number({ label: "Errors", required: false, defaultValue: 0, group: "Progress" }),
|
|
4711
|
+
// ── request echo (so history is self-describing without the payload) ──
|
|
4712
|
+
write_mode: Field.select(
|
|
4713
|
+
["insert", "update", "upsert"],
|
|
4714
|
+
{ label: "Write Mode", required: false, defaultValue: "insert", group: "Request" }
|
|
4715
|
+
),
|
|
4716
|
+
dry_run: Field.boolean({ label: "Dry Run", required: false, defaultValue: false, group: "Request" }),
|
|
4717
|
+
run_automations: Field.boolean({ label: "Run Automations", required: false, defaultValue: false, group: "Request" }),
|
|
4718
|
+
// ── outcome ──
|
|
4719
|
+
error: Field.textarea({ label: "Fatal Error", required: false, group: "Outcome" }),
|
|
4720
|
+
results: Field.json({
|
|
4721
|
+
label: "Row Results (sample)",
|
|
4722
|
+
required: false,
|
|
4723
|
+
description: "Capped sample of per-row results (failures first) for the UI",
|
|
4724
|
+
group: "Outcome"
|
|
4725
|
+
}),
|
|
4726
|
+
// ── undo / logical rollback ──
|
|
4727
|
+
undo_log: Field.json({
|
|
4728
|
+
label: "Undo Log",
|
|
4729
|
+
required: false,
|
|
4730
|
+
description: "Reversal instructions ({created:[ids], updated:[{id,before}]}) captured for small non-dry-run jobs so the import can be undone",
|
|
4731
|
+
group: "Outcome"
|
|
4732
|
+
}),
|
|
4733
|
+
reverted_at: Field.datetime({
|
|
4734
|
+
label: "Reverted At",
|
|
4735
|
+
required: false,
|
|
4736
|
+
description: "Set when the import was undone (created records deleted, updated records restored)",
|
|
4737
|
+
group: "Outcome"
|
|
4738
|
+
}),
|
|
4739
|
+
// ── lifecycle timestamps ──
|
|
4740
|
+
started_at: Field.datetime({ label: "Started At", required: false, group: "State" }),
|
|
4741
|
+
completed_at: Field.datetime({ label: "Completed At", required: false, group: "State" }),
|
|
4742
|
+
created_by: Field.text({ label: "Created By", required: false, readonly: true, group: "System" }),
|
|
4743
|
+
created_at: Field.datetime({
|
|
4744
|
+
label: "Created At",
|
|
4745
|
+
required: true,
|
|
4746
|
+
defaultValue: "NOW()",
|
|
4747
|
+
readonly: true,
|
|
4748
|
+
group: "System"
|
|
4749
|
+
})
|
|
4750
|
+
},
|
|
4751
|
+
indexes: [
|
|
4752
|
+
{ fields: ["object_name", "created_at"] },
|
|
4753
|
+
{ fields: ["status", "created_at"] },
|
|
4754
|
+
{ fields: ["created_by", "created_at"] }
|
|
4755
|
+
]
|
|
4756
|
+
});
|
|
4677
4757
|
var SysSetting = ObjectSchema.create({
|
|
4678
4758
|
name: "sys_setting",
|
|
4679
4759
|
label: "Setting",
|
|
@@ -23746,6 +23826,6 @@ function createPlatformObjectsPlugin() {
|
|
|
23746
23826
|
return new PlatformObjectsPlugin();
|
|
23747
23827
|
}
|
|
23748
23828
|
|
|
23749
|
-
export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, SETUP_NAV_CONTRIBUTIONS, STUDIO_APP, SetupAppTranslations, SysAccount, SysApiKey, SysAttachment, SysBusinessUnit, SysBusinessUnitMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysReportSchedule, SysSavedReport, SysScimProvider, SysSecret, SysSession, SysSetting, SysSettingAudit, SysSsoProvider, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPreference, SysVerification, SystemOverviewDashboard, SystemOverviewDatasets, createPlatformObjectsPlugin, en, esES, jaJP, zhCN };
|
|
23829
|
+
export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, SETUP_NAV_CONTRIBUTIONS, STUDIO_APP, SetupAppTranslations, SysAccount, SysApiKey, SysAttachment, SysBusinessUnit, SysBusinessUnitMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysImportJob, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysReportSchedule, SysSavedReport, SysScimProvider, SysSecret, SysSession, SysSetting, SysSettingAudit, SysSsoProvider, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPreference, SysVerification, SystemOverviewDashboard, SystemOverviewDatasets, createPlatformObjectsPlugin, en, esES, jaJP, zhCN };
|
|
23750
23830
|
//# sourceMappingURL=index.mjs.map
|
|
23751
23831
|
//# sourceMappingURL=index.mjs.map
|