@objectstack/plugin-approvals 14.3.0 → 14.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-approvals@14.3.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
2
+ > @objectstack/plugin-approvals@14.6.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CJS Build start
13
13
  CJS dist/index.js 123.99 KB
14
14
  CJS dist/index.js.map 220.47 KB
15
- CJS ⚡️ Build success in 241ms
15
+ CJS ⚡️ Build success in 305ms
16
16
  ESM dist/index.mjs 122.33 KB
17
17
  ESM dist/index.mjs.map 219.27 KB
18
- ESM ⚡️ Build success in 244ms
18
+ ESM ⚡️ Build success in 310ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 28424ms
21
- DTS dist/index.d.mts 382.64 KB
22
- DTS dist/index.d.ts 382.64 KB
20
+ DTS ⚡️ Build success in 18681ms
21
+ DTS dist/index.d.mts 385.84 KB
22
+ DTS dist/index.d.ts 385.84 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 14.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [609cb13]
8
+ - Updated dependencies [ce6d151]
9
+ - @objectstack/spec@14.6.0
10
+ - @objectstack/platform-objects@14.6.0
11
+ - @objectstack/core@14.6.0
12
+ - @objectstack/formula@14.6.0
13
+ - @objectstack/metadata-core@14.6.0
14
+
15
+ ## 14.5.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [526805e]
20
+ - Updated dependencies [d79ca07]
21
+ - Updated dependencies [33ebd34]
22
+ - Updated dependencies [c044f08]
23
+ - Updated dependencies [01274eb]
24
+ - Updated dependencies [8f23746]
25
+ - Updated dependencies [b97af7e]
26
+ - Updated dependencies [6da03ee]
27
+ - @objectstack/spec@14.5.0
28
+ - @objectstack/platform-objects@14.5.0
29
+ - @objectstack/core@14.5.0
30
+ - @objectstack/formula@14.5.0
31
+ - @objectstack/metadata-core@14.5.0
32
+
33
+ ## 14.4.0
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [7953832]
38
+ - Updated dependencies [82e745e]
39
+ - Updated dependencies [f3035bd]
40
+ - Updated dependencies [82c0d94]
41
+ - Updated dependencies [7449476]
42
+ - @objectstack/spec@14.4.0
43
+ - @objectstack/platform-objects@14.4.0
44
+ - @objectstack/metadata-core@14.4.0
45
+ - @objectstack/core@14.4.0
46
+ - @objectstack/formula@14.4.0
47
+
3
48
  ## 14.3.0
4
49
 
5
50
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -337,6 +337,30 @@ declare const SysApprovalRequest: Omit<{
337
337
  versionField: string;
338
338
  retentionDays?: number | undefined;
339
339
  } | undefined;
340
+ lifecycle?: {
341
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
342
+ retention?: {
343
+ maxAge: string;
344
+ onlyWhen?: Record<string, string | number | boolean | {
345
+ $in: (string | number)[];
346
+ }> | undefined;
347
+ } | undefined;
348
+ ttl?: {
349
+ field: string;
350
+ expireAfter: string;
351
+ } | undefined;
352
+ storage?: {
353
+ strategy: "rotation";
354
+ shards: number;
355
+ unit: "day" | "week" | "month";
356
+ } | undefined;
357
+ archive?: {
358
+ after: string;
359
+ to: string;
360
+ keep?: string | undefined;
361
+ } | undefined;
362
+ reclaim?: boolean | undefined;
363
+ } | undefined;
340
364
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
341
365
  activityMilestones?: {
342
366
  field: string;
@@ -494,7 +518,7 @@ declare const SysApprovalRequest: Omit<{
494
518
  timeline?: {
495
519
  startDateField: string;
496
520
  titleField: string;
497
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
521
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
498
522
  endDateField?: string | undefined;
499
523
  groupByField?: string | undefined;
500
524
  colorField?: string | undefined;
@@ -721,6 +745,15 @@ declare const SysApprovalRequest: Omit<{
721
745
  helpText?: string | undefined;
722
746
  defaultValue?: unknown;
723
747
  defaultFromRow?: boolean | undefined;
748
+ visible?: {
749
+ dialect: "cel" | "js" | "cron" | "template";
750
+ source?: string | undefined;
751
+ ast?: unknown;
752
+ meta?: {
753
+ rationale?: string | undefined;
754
+ generatedBy?: string | undefined;
755
+ } | undefined;
756
+ } | undefined;
724
757
  }[] | undefined;
725
758
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
726
759
  order?: number | undefined;
@@ -4530,6 +4563,30 @@ declare const SysApprovalAction: Omit<{
4530
4563
  versionField: string;
4531
4564
  retentionDays?: number | undefined;
4532
4565
  } | undefined;
4566
+ lifecycle?: {
4567
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
4568
+ retention?: {
4569
+ maxAge: string;
4570
+ onlyWhen?: Record<string, string | number | boolean | {
4571
+ $in: (string | number)[];
4572
+ }> | undefined;
4573
+ } | undefined;
4574
+ ttl?: {
4575
+ field: string;
4576
+ expireAfter: string;
4577
+ } | undefined;
4578
+ storage?: {
4579
+ strategy: "rotation";
4580
+ shards: number;
4581
+ unit: "day" | "week" | "month";
4582
+ } | undefined;
4583
+ archive?: {
4584
+ after: string;
4585
+ to: string;
4586
+ keep?: string | undefined;
4587
+ } | undefined;
4588
+ reclaim?: boolean | undefined;
4589
+ } | undefined;
4533
4590
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
4534
4591
  activityMilestones?: {
4535
4592
  field: string;
@@ -4687,7 +4744,7 @@ declare const SysApprovalAction: Omit<{
4687
4744
  timeline?: {
4688
4745
  startDateField: string;
4689
4746
  titleField: string;
4690
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
4747
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
4691
4748
  endDateField?: string | undefined;
4692
4749
  groupByField?: string | undefined;
4693
4750
  colorField?: string | undefined;
@@ -4914,6 +4971,15 @@ declare const SysApprovalAction: Omit<{
4914
4971
  helpText?: string | undefined;
4915
4972
  defaultValue?: unknown;
4916
4973
  defaultFromRow?: boolean | undefined;
4974
+ visible?: {
4975
+ dialect: "cel" | "js" | "cron" | "template";
4976
+ source?: string | undefined;
4977
+ ast?: unknown;
4978
+ meta?: {
4979
+ rationale?: string | undefined;
4980
+ generatedBy?: string | undefined;
4981
+ } | undefined;
4982
+ } | undefined;
4917
4983
  }[] | undefined;
4918
4984
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4919
4985
  order?: number | undefined;
@@ -7057,6 +7123,30 @@ declare const SysApprovalApprover: Omit<{
7057
7123
  versionField: string;
7058
7124
  retentionDays?: number | undefined;
7059
7125
  } | undefined;
7126
+ lifecycle?: {
7127
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
7128
+ retention?: {
7129
+ maxAge: string;
7130
+ onlyWhen?: Record<string, string | number | boolean | {
7131
+ $in: (string | number)[];
7132
+ }> | undefined;
7133
+ } | undefined;
7134
+ ttl?: {
7135
+ field: string;
7136
+ expireAfter: string;
7137
+ } | undefined;
7138
+ storage?: {
7139
+ strategy: "rotation";
7140
+ shards: number;
7141
+ unit: "day" | "week" | "month";
7142
+ } | undefined;
7143
+ archive?: {
7144
+ after: string;
7145
+ to: string;
7146
+ keep?: string | undefined;
7147
+ } | undefined;
7148
+ reclaim?: boolean | undefined;
7149
+ } | undefined;
7060
7150
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
7061
7151
  activityMilestones?: {
7062
7152
  field: string;
@@ -7214,7 +7304,7 @@ declare const SysApprovalApprover: Omit<{
7214
7304
  timeline?: {
7215
7305
  startDateField: string;
7216
7306
  titleField: string;
7217
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
7307
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
7218
7308
  endDateField?: string | undefined;
7219
7309
  groupByField?: string | undefined;
7220
7310
  colorField?: string | undefined;
@@ -7441,6 +7531,15 @@ declare const SysApprovalApprover: Omit<{
7441
7531
  helpText?: string | undefined;
7442
7532
  defaultValue?: unknown;
7443
7533
  defaultFromRow?: boolean | undefined;
7534
+ visible?: {
7535
+ dialect: "cel" | "js" | "cron" | "template";
7536
+ source?: string | undefined;
7537
+ ast?: unknown;
7538
+ meta?: {
7539
+ rationale?: string | undefined;
7540
+ generatedBy?: string | undefined;
7541
+ } | undefined;
7542
+ } | undefined;
7444
7543
  }[] | undefined;
7445
7544
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
7446
7545
  order?: number | undefined;
package/dist/index.d.ts CHANGED
@@ -337,6 +337,30 @@ declare const SysApprovalRequest: Omit<{
337
337
  versionField: string;
338
338
  retentionDays?: number | undefined;
339
339
  } | undefined;
340
+ lifecycle?: {
341
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
342
+ retention?: {
343
+ maxAge: string;
344
+ onlyWhen?: Record<string, string | number | boolean | {
345
+ $in: (string | number)[];
346
+ }> | undefined;
347
+ } | undefined;
348
+ ttl?: {
349
+ field: string;
350
+ expireAfter: string;
351
+ } | undefined;
352
+ storage?: {
353
+ strategy: "rotation";
354
+ shards: number;
355
+ unit: "day" | "week" | "month";
356
+ } | undefined;
357
+ archive?: {
358
+ after: string;
359
+ to: string;
360
+ keep?: string | undefined;
361
+ } | undefined;
362
+ reclaim?: boolean | undefined;
363
+ } | undefined;
340
364
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
341
365
  activityMilestones?: {
342
366
  field: string;
@@ -494,7 +518,7 @@ declare const SysApprovalRequest: Omit<{
494
518
  timeline?: {
495
519
  startDateField: string;
496
520
  titleField: string;
497
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
521
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
498
522
  endDateField?: string | undefined;
499
523
  groupByField?: string | undefined;
500
524
  colorField?: string | undefined;
@@ -721,6 +745,15 @@ declare const SysApprovalRequest: Omit<{
721
745
  helpText?: string | undefined;
722
746
  defaultValue?: unknown;
723
747
  defaultFromRow?: boolean | undefined;
748
+ visible?: {
749
+ dialect: "cel" | "js" | "cron" | "template";
750
+ source?: string | undefined;
751
+ ast?: unknown;
752
+ meta?: {
753
+ rationale?: string | undefined;
754
+ generatedBy?: string | undefined;
755
+ } | undefined;
756
+ } | undefined;
724
757
  }[] | undefined;
725
758
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
726
759
  order?: number | undefined;
@@ -4530,6 +4563,30 @@ declare const SysApprovalAction: Omit<{
4530
4563
  versionField: string;
4531
4564
  retentionDays?: number | undefined;
4532
4565
  } | undefined;
4566
+ lifecycle?: {
4567
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
4568
+ retention?: {
4569
+ maxAge: string;
4570
+ onlyWhen?: Record<string, string | number | boolean | {
4571
+ $in: (string | number)[];
4572
+ }> | undefined;
4573
+ } | undefined;
4574
+ ttl?: {
4575
+ field: string;
4576
+ expireAfter: string;
4577
+ } | undefined;
4578
+ storage?: {
4579
+ strategy: "rotation";
4580
+ shards: number;
4581
+ unit: "day" | "week" | "month";
4582
+ } | undefined;
4583
+ archive?: {
4584
+ after: string;
4585
+ to: string;
4586
+ keep?: string | undefined;
4587
+ } | undefined;
4588
+ reclaim?: boolean | undefined;
4589
+ } | undefined;
4533
4590
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
4534
4591
  activityMilestones?: {
4535
4592
  field: string;
@@ -4687,7 +4744,7 @@ declare const SysApprovalAction: Omit<{
4687
4744
  timeline?: {
4688
4745
  startDateField: string;
4689
4746
  titleField: string;
4690
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
4747
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
4691
4748
  endDateField?: string | undefined;
4692
4749
  groupByField?: string | undefined;
4693
4750
  colorField?: string | undefined;
@@ -4914,6 +4971,15 @@ declare const SysApprovalAction: Omit<{
4914
4971
  helpText?: string | undefined;
4915
4972
  defaultValue?: unknown;
4916
4973
  defaultFromRow?: boolean | undefined;
4974
+ visible?: {
4975
+ dialect: "cel" | "js" | "cron" | "template";
4976
+ source?: string | undefined;
4977
+ ast?: unknown;
4978
+ meta?: {
4979
+ rationale?: string | undefined;
4980
+ generatedBy?: string | undefined;
4981
+ } | undefined;
4982
+ } | undefined;
4917
4983
  }[] | undefined;
4918
4984
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4919
4985
  order?: number | undefined;
@@ -7057,6 +7123,30 @@ declare const SysApprovalApprover: Omit<{
7057
7123
  versionField: string;
7058
7124
  retentionDays?: number | undefined;
7059
7125
  } | undefined;
7126
+ lifecycle?: {
7127
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
7128
+ retention?: {
7129
+ maxAge: string;
7130
+ onlyWhen?: Record<string, string | number | boolean | {
7131
+ $in: (string | number)[];
7132
+ }> | undefined;
7133
+ } | undefined;
7134
+ ttl?: {
7135
+ field: string;
7136
+ expireAfter: string;
7137
+ } | undefined;
7138
+ storage?: {
7139
+ strategy: "rotation";
7140
+ shards: number;
7141
+ unit: "day" | "week" | "month";
7142
+ } | undefined;
7143
+ archive?: {
7144
+ after: string;
7145
+ to: string;
7146
+ keep?: string | undefined;
7147
+ } | undefined;
7148
+ reclaim?: boolean | undefined;
7149
+ } | undefined;
7060
7150
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
7061
7151
  activityMilestones?: {
7062
7152
  field: string;
@@ -7214,7 +7304,7 @@ declare const SysApprovalApprover: Omit<{
7214
7304
  timeline?: {
7215
7305
  startDateField: string;
7216
7306
  titleField: string;
7217
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
7307
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
7218
7308
  endDateField?: string | undefined;
7219
7309
  groupByField?: string | undefined;
7220
7310
  colorField?: string | undefined;
@@ -7441,6 +7531,15 @@ declare const SysApprovalApprover: Omit<{
7441
7531
  helpText?: string | undefined;
7442
7532
  defaultValue?: unknown;
7443
7533
  defaultFromRow?: boolean | undefined;
7534
+ visible?: {
7535
+ dialect: "cel" | "js" | "cron" | "template";
7536
+ source?: string | undefined;
7537
+ ast?: unknown;
7538
+ meta?: {
7539
+ rationale?: string | undefined;
7540
+ generatedBy?: string | undefined;
7541
+ } | undefined;
7542
+ } | undefined;
7444
7543
  }[] | undefined;
7445
7544
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
7446
7545
  order?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/plugin-approvals",
3
- "version": "14.3.0",
3
+ "version": "14.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Multi-step approval engine for ObjectStack — sys_approval_process + sys_approval_request + sys_approval_action + IApprovalService.",
6
6
  "main": "dist/index.js",
@@ -13,17 +13,17 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@objectstack/core": "14.3.0",
17
- "@objectstack/formula": "14.3.0",
18
- "@objectstack/metadata-core": "14.3.0",
19
- "@objectstack/platform-objects": "14.3.0",
20
- "@objectstack/spec": "14.3.0"
16
+ "@objectstack/core": "14.6.0",
17
+ "@objectstack/formula": "14.6.0",
18
+ "@objectstack/metadata-core": "14.6.0",
19
+ "@objectstack/platform-objects": "14.6.0",
20
+ "@objectstack/spec": "14.6.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "^26.1.0",
23
+ "@types/node": "^26.1.1",
24
24
  "typescript": "^6.0.3",
25
25
  "vitest": "^4.1.10",
26
- "@objectstack/service-automation": "14.3.0"
26
+ "@objectstack/service-automation": "14.6.0"
27
27
  },
28
28
  "keywords": [
29
29
  "objectstack",