@objectstack/plugin-approvals 14.3.0 → 14.5.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.5.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 267ms
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 274ms
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 25609ms
21
+ DTS dist/index.d.mts 384.81 KB
22
+ DTS dist/index.d.ts 384.81 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 14.5.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [526805e]
8
+ - Updated dependencies [d79ca07]
9
+ - Updated dependencies [33ebd34]
10
+ - Updated dependencies [c044f08]
11
+ - Updated dependencies [01274eb]
12
+ - Updated dependencies [8f23746]
13
+ - Updated dependencies [b97af7e]
14
+ - Updated dependencies [6da03ee]
15
+ - @objectstack/spec@14.5.0
16
+ - @objectstack/platform-objects@14.5.0
17
+ - @objectstack/core@14.5.0
18
+ - @objectstack/formula@14.5.0
19
+ - @objectstack/metadata-core@14.5.0
20
+
21
+ ## 14.4.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [7953832]
26
+ - Updated dependencies [82e745e]
27
+ - Updated dependencies [f3035bd]
28
+ - Updated dependencies [82c0d94]
29
+ - Updated dependencies [7449476]
30
+ - @objectstack/spec@14.4.0
31
+ - @objectstack/platform-objects@14.4.0
32
+ - @objectstack/metadata-core@14.4.0
33
+ - @objectstack/core@14.4.0
34
+ - @objectstack/formula@14.4.0
35
+
3
36
  ## 14.3.0
4
37
 
5
38
  ### 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;
@@ -4530,6 +4554,30 @@ declare const SysApprovalAction: Omit<{
4530
4554
  versionField: string;
4531
4555
  retentionDays?: number | undefined;
4532
4556
  } | undefined;
4557
+ lifecycle?: {
4558
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
4559
+ retention?: {
4560
+ maxAge: string;
4561
+ onlyWhen?: Record<string, string | number | boolean | {
4562
+ $in: (string | number)[];
4563
+ }> | undefined;
4564
+ } | undefined;
4565
+ ttl?: {
4566
+ field: string;
4567
+ expireAfter: string;
4568
+ } | undefined;
4569
+ storage?: {
4570
+ strategy: "rotation";
4571
+ shards: number;
4572
+ unit: "day" | "week" | "month";
4573
+ } | undefined;
4574
+ archive?: {
4575
+ after: string;
4576
+ to: string;
4577
+ keep?: string | undefined;
4578
+ } | undefined;
4579
+ reclaim?: boolean | undefined;
4580
+ } | undefined;
4533
4581
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
4534
4582
  activityMilestones?: {
4535
4583
  field: string;
@@ -4687,7 +4735,7 @@ declare const SysApprovalAction: Omit<{
4687
4735
  timeline?: {
4688
4736
  startDateField: string;
4689
4737
  titleField: string;
4690
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
4738
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
4691
4739
  endDateField?: string | undefined;
4692
4740
  groupByField?: string | undefined;
4693
4741
  colorField?: string | undefined;
@@ -7057,6 +7105,30 @@ declare const SysApprovalApprover: Omit<{
7057
7105
  versionField: string;
7058
7106
  retentionDays?: number | undefined;
7059
7107
  } | undefined;
7108
+ lifecycle?: {
7109
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
7110
+ retention?: {
7111
+ maxAge: string;
7112
+ onlyWhen?: Record<string, string | number | boolean | {
7113
+ $in: (string | number)[];
7114
+ }> | undefined;
7115
+ } | undefined;
7116
+ ttl?: {
7117
+ field: string;
7118
+ expireAfter: string;
7119
+ } | undefined;
7120
+ storage?: {
7121
+ strategy: "rotation";
7122
+ shards: number;
7123
+ unit: "day" | "week" | "month";
7124
+ } | undefined;
7125
+ archive?: {
7126
+ after: string;
7127
+ to: string;
7128
+ keep?: string | undefined;
7129
+ } | undefined;
7130
+ reclaim?: boolean | undefined;
7131
+ } | undefined;
7060
7132
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
7061
7133
  activityMilestones?: {
7062
7134
  field: string;
@@ -7214,7 +7286,7 @@ declare const SysApprovalApprover: Omit<{
7214
7286
  timeline?: {
7215
7287
  startDateField: string;
7216
7288
  titleField: string;
7217
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
7289
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
7218
7290
  endDateField?: string | undefined;
7219
7291
  groupByField?: string | undefined;
7220
7292
  colorField?: string | 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;
@@ -4530,6 +4554,30 @@ declare const SysApprovalAction: Omit<{
4530
4554
  versionField: string;
4531
4555
  retentionDays?: number | undefined;
4532
4556
  } | undefined;
4557
+ lifecycle?: {
4558
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
4559
+ retention?: {
4560
+ maxAge: string;
4561
+ onlyWhen?: Record<string, string | number | boolean | {
4562
+ $in: (string | number)[];
4563
+ }> | undefined;
4564
+ } | undefined;
4565
+ ttl?: {
4566
+ field: string;
4567
+ expireAfter: string;
4568
+ } | undefined;
4569
+ storage?: {
4570
+ strategy: "rotation";
4571
+ shards: number;
4572
+ unit: "day" | "week" | "month";
4573
+ } | undefined;
4574
+ archive?: {
4575
+ after: string;
4576
+ to: string;
4577
+ keep?: string | undefined;
4578
+ } | undefined;
4579
+ reclaim?: boolean | undefined;
4580
+ } | undefined;
4533
4581
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
4534
4582
  activityMilestones?: {
4535
4583
  field: string;
@@ -4687,7 +4735,7 @@ declare const SysApprovalAction: Omit<{
4687
4735
  timeline?: {
4688
4736
  startDateField: string;
4689
4737
  titleField: string;
4690
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
4738
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
4691
4739
  endDateField?: string | undefined;
4692
4740
  groupByField?: string | undefined;
4693
4741
  colorField?: string | undefined;
@@ -7057,6 +7105,30 @@ declare const SysApprovalApprover: Omit<{
7057
7105
  versionField: string;
7058
7106
  retentionDays?: number | undefined;
7059
7107
  } | undefined;
7108
+ lifecycle?: {
7109
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
7110
+ retention?: {
7111
+ maxAge: string;
7112
+ onlyWhen?: Record<string, string | number | boolean | {
7113
+ $in: (string | number)[];
7114
+ }> | undefined;
7115
+ } | undefined;
7116
+ ttl?: {
7117
+ field: string;
7118
+ expireAfter: string;
7119
+ } | undefined;
7120
+ storage?: {
7121
+ strategy: "rotation";
7122
+ shards: number;
7123
+ unit: "day" | "week" | "month";
7124
+ } | undefined;
7125
+ archive?: {
7126
+ after: string;
7127
+ to: string;
7128
+ keep?: string | undefined;
7129
+ } | undefined;
7130
+ reclaim?: boolean | undefined;
7131
+ } | undefined;
7060
7132
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
7061
7133
  activityMilestones?: {
7062
7134
  field: string;
@@ -7214,7 +7286,7 @@ declare const SysApprovalApprover: Omit<{
7214
7286
  timeline?: {
7215
7287
  startDateField: string;
7216
7288
  titleField: string;
7217
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
7289
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
7218
7290
  endDateField?: string | undefined;
7219
7291
  groupByField?: string | undefined;
7220
7292
  colorField?: string | 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.5.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.5.0",
17
+ "@objectstack/formula": "14.5.0",
18
+ "@objectstack/metadata-core": "14.5.0",
19
+ "@objectstack/platform-objects": "14.5.0",
20
+ "@objectstack/spec": "14.5.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^26.1.0",
24
24
  "typescript": "^6.0.3",
25
25
  "vitest": "^4.1.10",
26
- "@objectstack/service-automation": "14.3.0"
26
+ "@objectstack/service-automation": "14.5.0"
27
27
  },
28
28
  "keywords": [
29
29
  "objectstack",