oca_package 1.4.0 → 1.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/README.md +0 -2
- package/dist/cjs/oca_extensions/extensions.js +30 -14
- package/dist/cjs/oca_extensions/state/attribute.js +25 -10
- package/dist/cjs/oca_extensions/state/overlays/example.js +8 -3
- package/dist/cjs/oca_extensions/state/overlays/framing/attribute_framing.js +6 -1
- package/dist/cjs/oca_extensions/state/overlays/framing/unit_framing.js +6 -1
- package/dist/cjs/oca_extensions/state/overlays/ordering.js +6 -1
- package/dist/cjs/oca_extensions/state/overlays/range.js +6 -1
- package/dist/cjs/oca_extensions/state/overlays/sensitive.js +6 -1
- package/dist/cjs/oca_extensions/state/overlays/separator.js +31 -43
- package/dist/cjs/oca_package.js +1 -1
- package/dist/esm/oca_extensions/extensions.js +30 -14
- package/dist/esm/oca_extensions/state/attribute.js +25 -8
- package/dist/esm/oca_extensions/state/overlays/example.js +8 -3
- package/dist/esm/oca_extensions/state/overlays/framing/attribute_framing.js +6 -1
- package/dist/esm/oca_extensions/state/overlays/framing/unit_framing.js +6 -1
- package/dist/esm/oca_extensions/state/overlays/ordering.js +6 -1
- package/dist/esm/oca_extensions/state/overlays/range.js +6 -1
- package/dist/esm/oca_extensions/state/overlays/sensitive.js +6 -1
- package/dist/esm/oca_extensions/state/overlays/separator.js +28 -43
- package/dist/esm/oca_package.js +1 -1
- package/dist/types/oca_extensions/extensions.d.ts +4 -2
- package/dist/types/oca_extensions/extensions.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/attribute.d.ts +0 -12
- package/dist/types/oca_extensions/state/attribute.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/example.d.ts +3 -2
- package/dist/types/oca_extensions/state/overlays/example.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/framing/attribute_framing.d.ts +2 -1
- package/dist/types/oca_extensions/state/overlays/framing/attribute_framing.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/framing/unit_framing.d.ts +2 -1
- package/dist/types/oca_extensions/state/overlays/framing/unit_framing.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/ordering.d.ts +2 -1
- package/dist/types/oca_extensions/state/overlays/ordering.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/range.d.ts +2 -1
- package/dist/types/oca_extensions/state/overlays/range.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/sensitive.d.ts +2 -1
- package/dist/types/oca_extensions/state/overlays/sensitive.d.ts.map +1 -1
- package/dist/types/oca_extensions/state/overlays/separator.d.ts +12 -43
- package/dist/types/oca_extensions/state/overlays/separator.d.ts.map +1 -1
- package/package.json +1 -2
- package/LICENSE +0 -287
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
import canonicalize from '../../../utils/canonical.js';
|
|
3
3
|
class ExampleOverlay {
|
|
4
|
-
constructor(dynOverlay) {
|
|
4
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
5
5
|
if (!dynOverlay) {
|
|
6
6
|
throw new Error('A dynamic extension overlay is required');
|
|
7
7
|
}
|
|
8
|
+
if (!capture_base_digest) {
|
|
9
|
+
throw new Error('capture_base_digest is required');
|
|
10
|
+
}
|
|
8
11
|
this.dynOverlay = dynOverlay;
|
|
12
|
+
this.capture_base_digest = capture_base_digest;
|
|
9
13
|
}
|
|
10
14
|
get language() {
|
|
11
15
|
return this.dynOverlay.language;
|
|
@@ -19,6 +23,7 @@ class ExampleOverlay {
|
|
|
19
23
|
toJSON() {
|
|
20
24
|
return {
|
|
21
25
|
d: '',
|
|
26
|
+
capture_base: this.capture_base_digest,
|
|
22
27
|
type: 'community/overlays/adc/example/1.1',
|
|
23
28
|
language: this.language,
|
|
24
29
|
attribute_examples: this.GetAttributeExamples(),
|
|
@@ -32,7 +37,7 @@ class ExampleOverlay {
|
|
|
32
37
|
GenerateExampleOverlay() {
|
|
33
38
|
return JSON.stringify(this.Saidifying());
|
|
34
39
|
}
|
|
35
|
-
static GenerateOverlay(dynOverlay) {
|
|
40
|
+
static GenerateOverlay(dynOverlay, capture_base_digest) {
|
|
36
41
|
if (!dynOverlay || typeof dynOverlay !== 'object' || !Array.isArray(dynOverlay['example_overlays'])) {
|
|
37
42
|
throw new Error('Invalid dynOverlay structure. Expected an object with an "example_overlays" array.');
|
|
38
43
|
}
|
|
@@ -40,7 +45,7 @@ class ExampleOverlay {
|
|
|
40
45
|
const overlays = dynOverlay['example_overlays'];
|
|
41
46
|
for (let example_ov of overlays) {
|
|
42
47
|
try {
|
|
43
|
-
const example_overlay = new ExampleOverlay(example_ov);
|
|
48
|
+
const example_overlay = new ExampleOverlay(example_ov, capture_base_digest);
|
|
44
49
|
example_overlays.push(JSON.parse(example_overlay.GenerateExampleOverlay()));
|
|
45
50
|
}
|
|
46
51
|
catch (error) {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
import canonicalize from '../../../../utils/canonical.js';
|
|
3
3
|
class AttributeFraming {
|
|
4
|
-
constructor(dynOverlay) {
|
|
4
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
5
5
|
if (!dynOverlay) {
|
|
6
6
|
throw new Error('a dynamic extension overlay are required');
|
|
7
7
|
}
|
|
8
|
+
if (!capture_base_digest) {
|
|
9
|
+
throw new Error('capture_base_digest is required');
|
|
10
|
+
}
|
|
8
11
|
this.dynOverlay = dynOverlay;
|
|
12
|
+
this.capture_base_digest = capture_base_digest;
|
|
9
13
|
}
|
|
10
14
|
GetFramedAttributes() {
|
|
11
15
|
const attributes = this.dynOverlay.attributes;
|
|
@@ -36,6 +40,7 @@ class AttributeFraming {
|
|
|
36
40
|
toJSON() {
|
|
37
41
|
return {
|
|
38
42
|
d: '',
|
|
43
|
+
capture_base: this.capture_base_digest,
|
|
39
44
|
type: 'community/overlays/adc/attribute_framing/1.1',
|
|
40
45
|
framing_metadata: this.GetFramingMetadata(),
|
|
41
46
|
attributes: this.GetFramedAttributes(),
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
import canonicalize from '../../../../utils/canonical.js';
|
|
3
3
|
class UnitFraming {
|
|
4
|
-
constructor(dynOverlay) {
|
|
4
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
5
5
|
if (!dynOverlay) {
|
|
6
6
|
throw new Error('a dynamic extension overlay are required');
|
|
7
7
|
}
|
|
8
|
+
if (!capture_base_digest) {
|
|
9
|
+
throw new Error('capture_base_digest is required');
|
|
10
|
+
}
|
|
8
11
|
this.dynOverlay = dynOverlay;
|
|
12
|
+
this.capture_base_digest = capture_base_digest;
|
|
9
13
|
}
|
|
10
14
|
GetUnits() {
|
|
11
15
|
const units = this.dynOverlay.units;
|
|
@@ -28,6 +32,7 @@ class UnitFraming {
|
|
|
28
32
|
toJSON() {
|
|
29
33
|
return {
|
|
30
34
|
d: '',
|
|
35
|
+
capture_base: this.capture_base_digest,
|
|
31
36
|
type: 'community/overlays/adc/unit_framing/1.1',
|
|
32
37
|
framing_metadata: {
|
|
33
38
|
id: this.GetId(),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
class Ordering {
|
|
3
|
-
constructor(dynOverlay) {
|
|
3
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
4
4
|
if (!dynOverlay) {
|
|
5
5
|
throw new Error('a dynamic extension overlay are required');
|
|
6
6
|
}
|
|
7
|
+
if (!capture_base_digest) {
|
|
8
|
+
throw new Error('capture_base_digest is required');
|
|
9
|
+
}
|
|
7
10
|
this.dynOverlay = dynOverlay;
|
|
11
|
+
this.capture_base_digest = capture_base_digest;
|
|
8
12
|
}
|
|
9
13
|
GetAttributeOrdering() {
|
|
10
14
|
return this.dynOverlay.attribute_ordering;
|
|
@@ -15,6 +19,7 @@ class Ordering {
|
|
|
15
19
|
toJSON() {
|
|
16
20
|
return {
|
|
17
21
|
d: '',
|
|
22
|
+
capture_base: this.capture_base_digest,
|
|
18
23
|
type: 'community/overlays/adc/ordering/1.1',
|
|
19
24
|
attribute_ordering: this.GetAttributeOrdering(),
|
|
20
25
|
entry_code_ordering: this.GetEntryCodeOrdering(),
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
import canonicalize from '../../../utils/canonical.js';
|
|
3
3
|
class Range {
|
|
4
|
-
constructor(dynOverlay) {
|
|
4
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
5
5
|
if (!dynOverlay) {
|
|
6
6
|
throw new Error('a dynamic extension overlay are required');
|
|
7
7
|
}
|
|
8
|
+
if (!capture_base_digest) {
|
|
9
|
+
throw new Error('capture_base_digest is required');
|
|
10
|
+
}
|
|
8
11
|
this.dynOverlay = dynOverlay;
|
|
12
|
+
this.capture_base_digest = capture_base_digest;
|
|
9
13
|
}
|
|
10
14
|
GetAttributes() {
|
|
11
15
|
const range_overlay_attributes = this.dynOverlay.attributes;
|
|
@@ -16,6 +20,7 @@ class Range {
|
|
|
16
20
|
toJSON() {
|
|
17
21
|
return {
|
|
18
22
|
d: '',
|
|
23
|
+
capture_base: this.capture_base_digest,
|
|
19
24
|
type: 'community/overlays/adc/range/1.1',
|
|
20
25
|
attributes: this.GetAttributes(),
|
|
21
26
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { saidify } from 'saidify';
|
|
2
2
|
class Sensitive {
|
|
3
|
-
constructor(dynOverlay) {
|
|
3
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
4
4
|
if (!dynOverlay) {
|
|
5
5
|
throw new Error('a dynamic extension overlay are required');
|
|
6
6
|
}
|
|
7
|
+
if (!capture_base_digest) {
|
|
8
|
+
throw new Error('capture_base_digest is required');
|
|
9
|
+
}
|
|
7
10
|
this.dynOverlay = dynOverlay;
|
|
11
|
+
this.capture_base_digest = capture_base_digest;
|
|
8
12
|
}
|
|
9
13
|
GetSensitiveAttributes() {
|
|
10
14
|
const sensitive_overlay_attributes = this.dynOverlay.sensitive_attributes;
|
|
@@ -15,6 +19,7 @@ class Sensitive {
|
|
|
15
19
|
toJSON() {
|
|
16
20
|
return {
|
|
17
21
|
d: '',
|
|
22
|
+
capture_base: this.capture_base_digest,
|
|
18
23
|
type: 'community/overlays/adc/sensitive/1.1',
|
|
19
24
|
sensitive_attributes: this.GetSensitiveAttributes(),
|
|
20
25
|
};
|
|
@@ -28,60 +28,45 @@ Canoncial rules:
|
|
|
28
28
|
}
|
|
29
29
|
*/
|
|
30
30
|
import { saidify } from 'saidify';
|
|
31
|
-
import
|
|
32
|
-
import { OverlayTypes } from '../../../types/types.js';
|
|
31
|
+
import canonicalize from '../../../utils/canonical.js';
|
|
33
32
|
class Separator {
|
|
34
|
-
constructor(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
constructor(dynOverlay, capture_base_digest) {
|
|
34
|
+
if (!dynOverlay) {
|
|
35
|
+
throw new Error('a dynamic extension overlay are required');
|
|
36
|
+
}
|
|
37
|
+
if (!capture_base_digest) {
|
|
38
|
+
throw new Error('capture_base_digest is required');
|
|
39
|
+
}
|
|
40
|
+
this.dynOverlay = dynOverlay;
|
|
41
|
+
this.capture_base_digest = capture_base_digest;
|
|
40
42
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
GetAttributesSeparators() {
|
|
44
|
+
const separator_overlay_attributes = this.dynOverlay.attribute_separators;
|
|
45
|
+
const canonicalized_attributes = canonicalize(separator_overlay_attributes);
|
|
46
|
+
const sortedAttributes = JSON.parse(canonicalized_attributes);
|
|
47
|
+
return sortedAttributes;
|
|
43
48
|
}
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (!isPresent(key, this.oca_bundle)) {
|
|
50
|
-
throw new Error(`Attribute ${key} not found in OCA bundle Capture Base.`);
|
|
51
|
-
}
|
|
52
|
-
sorted_attribute_separators.push({ key, value: this.separators.attribute_separators[key] });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// Sort the attribute separators by key
|
|
56
|
-
sorted_attribute_separators.sort((a, b) => a.key.localeCompare(b.key));
|
|
57
|
-
}
|
|
58
|
-
return sorted_attribute_separators;
|
|
49
|
+
GetDatasetSeparator() {
|
|
50
|
+
const separator_overlay_dataset = this.dynOverlay.dataset_separator;
|
|
51
|
+
const canonicalized_dataset = canonicalize(separator_overlay_dataset);
|
|
52
|
+
const sortedDataset = JSON.parse(canonicalized_dataset);
|
|
53
|
+
return sortedDataset;
|
|
59
54
|
}
|
|
60
|
-
// serialize the separator overlay
|
|
61
55
|
toJSON() {
|
|
62
|
-
const serialized_attribute_separators = {};
|
|
63
|
-
for (const attr of this.attributes()) {
|
|
64
|
-
serialized_attribute_separators[attr.key] = attr.value;
|
|
65
|
-
}
|
|
66
56
|
return {
|
|
67
|
-
d:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
d: '',
|
|
58
|
+
capture_base: this.capture_base_digest,
|
|
59
|
+
type: 'community/overlays/adc/separator/1.1',
|
|
60
|
+
attribute_separators: this.GetAttributesSeparators(),
|
|
61
|
+
dataset_separator: this.GetDatasetSeparator(),
|
|
72
62
|
};
|
|
73
63
|
}
|
|
74
|
-
|
|
64
|
+
Saidifying() {
|
|
75
65
|
const [, sad] = saidify(this.toJSON());
|
|
76
66
|
return sad;
|
|
77
67
|
}
|
|
78
|
-
|
|
79
|
-
return JSON.stringify(this.
|
|
80
|
-
}
|
|
81
|
-
// TODO: find out if it neccessary to implement this methood for all overlays
|
|
82
|
-
static deser(separator_ov_json_string) {
|
|
83
|
-
const separator_ov_json = JSON.parse(separator_ov_json_string);
|
|
84
|
-
return new Separator(separator_ov_json, separator_ov_json.capture_base);
|
|
68
|
+
GenerateOverlay() {
|
|
69
|
+
return JSON.stringify(this.Saidifying());
|
|
85
70
|
}
|
|
86
71
|
}
|
|
87
72
|
export default Separator;
|
package/dist/esm/oca_package.js
CHANGED
|
@@ -3,8 +3,8 @@ import ExtensionBox from './oca_extensions/extensions.js';
|
|
|
3
3
|
import { saidify, verify, SAIDDex, Serials } from 'saidify';
|
|
4
4
|
class OcaPackage {
|
|
5
5
|
constructor(extension_input_json, oca_bundle) {
|
|
6
|
-
this.extensions_box = new ExtensionBox(extension_input_json, oca_bundle);
|
|
7
6
|
this.oca_bundle = oca_bundle;
|
|
7
|
+
this.extensions_box = new ExtensionBox(extension_input_json, oca_bundle);
|
|
8
8
|
}
|
|
9
9
|
Saidifying() {
|
|
10
10
|
const [, sad] = saidify(this.toJSON());
|
|
@@ -24,7 +24,8 @@ export interface DynOverlay {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Overlay implements DynOverlay {
|
|
26
26
|
[key: string]: any;
|
|
27
|
-
|
|
27
|
+
private _capture_base_digest;
|
|
28
|
+
constructor(community_overlay: DynOverlay, capture_base_digest: string);
|
|
28
29
|
GenerateOverlay(): Required<DynOverlay>;
|
|
29
30
|
}
|
|
30
31
|
export interface IExtension {
|
|
@@ -38,7 +39,8 @@ export declare class Extension implements IExtension {
|
|
|
38
39
|
readonly type: string;
|
|
39
40
|
_exensions: DynOverlay;
|
|
40
41
|
readonly overlays: {};
|
|
41
|
-
|
|
42
|
+
private capture_base_digest;
|
|
43
|
+
constructor(_extensions_input: DynOverlay, community: string, capture_base_digest: string);
|
|
42
44
|
private GenerateOverlays;
|
|
43
45
|
private toJSON;
|
|
44
46
|
private Saidifying;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/oca_extensions/extensions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/oca_extensions/extensions.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAQzC,MAAM,WAAW,kBAAkB;IACjC,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,EAAE,CAAC;KACrC,CAAC;CACH;AAOD,MAAM,WAAW,eAAe;IAC9B,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,CAAC;KACnC,CAAC;CACH;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,qBAAqB,CAAqB;IAC3C,eAAe,EAAE,eAAe,CAAC;gBAE5B,kBAAkB,EAAE,kBAAkB;IAKlD,OAAO,CAAC,mBAAmB;IAiB3B,IAAW,WAAW,IAAI,eAAe,CAExC;CACF;AAKD,MAAM,WAAW,UAAU;IACzB,CAAC,OAAO,EAAE,MAAM,GAAG;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,qBAAa,OAAQ,YAAW,UAAU;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,OAAO,CAAC,oBAAoB,CAAS;gBAEzB,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAQ/D,eAAe,IAAI,QAAQ,CAAC,UAAU,CAAC;CAiD/C;AAiFD,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,IAAI,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,SAAU,YAAW,UAAU;IAC1C,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAM;IACf,UAAU,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,QAAQ,KAAM;IACvB,OAAO,CAAC,mBAAmB,CAAS;gBAExB,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM;IAczF,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,UAAU;IAKX,iBAAiB,IAAI,GAAG;CAGhC;AAED,KAAK,gBAAgB,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;CAAE,CAAC;AAE9F,cAAM,YAAY;IACT,eAAe,EAAE,gBAAgB,CAAC;IAClC,WAAW,EAAE,GAAG,CAAC;IACjB,eAAe,EAAE,cAAc,CAAC;gBAE3B,oBAAoB,EAAE,kBAAkB,EAAE,UAAU,EAAE,GAAG;IAMrE,IAAW,kBAAkB,IAAI,gBAAgB,CA4BhD;CACF;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import { SeparatorValues } from '../state/overlays/separator.js';
|
|
2
|
-
interface IAttribute {
|
|
3
|
-
name: string;
|
|
4
|
-
attribute_separators: SeparatorValues;
|
|
5
|
-
}
|
|
6
|
-
declare class Attribute implements IAttribute {
|
|
7
|
-
name: string;
|
|
8
|
-
attribute_separators: SeparatorValues;
|
|
9
|
-
constructor(attribute: string);
|
|
10
|
-
setAttributeSeparators(attribute_separators: SeparatorValues): void;
|
|
11
|
-
}
|
|
12
|
-
export default Attribute;
|
|
13
1
|
//# sourceMappingURL=attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../../src/oca_extensions/state/attribute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../../src/oca_extensions/state/attribute.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,8 @@ export interface IExampleOverlay {
|
|
|
5
5
|
}
|
|
6
6
|
declare class ExampleOverlay implements IExampleOverlay {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
get language(): any;
|
|
10
11
|
private GetAttributeExamples;
|
|
11
12
|
private toJSON;
|
|
@@ -13,7 +14,7 @@ declare class ExampleOverlay implements IExampleOverlay {
|
|
|
13
14
|
GenerateExampleOverlay(): string;
|
|
14
15
|
static GenerateOverlay(dynOverlay: {
|
|
15
16
|
example_overlays: any[];
|
|
16
|
-
}): string;
|
|
17
|
+
}, capture_base_digest: string): string;
|
|
17
18
|
}
|
|
18
19
|
export default ExampleOverlay;
|
|
19
20
|
//# sourceMappingURL=example.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,IAAI,MAAM,CAAC;CAClC;AAED,cAAM,cAAe,YAAW,eAAe;IACtC,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,IAAI,MAAM,CAAC;CAClC;AAED,cAAM,cAAe,YAAW,eAAe;IACtC,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAW/D,IAAW,QAAQ,IAAI,GAAG,CAEzB;IAED,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,UAAU;IAMX,sBAAsB,IAAI,MAAM;WAIzB,eAAe,CAAC,UAAU,EAAE;QAAE,gBAAgB,EAAE,GAAG,EAAE,CAAA;KAAE,EAAE,mBAAmB,EAAE,MAAM,GAAG,MAAM;CAqB5G;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -5,7 +5,8 @@ export interface IAttributeFraming {
|
|
|
5
5
|
}
|
|
6
6
|
declare class AttributeFraming implements IAttributeFraming {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
private GetFramedAttributes;
|
|
10
11
|
private GetId;
|
|
11
12
|
private GetLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute_framing.d.ts","sourceRoot":"","sources":["../../../../../../src/oca_extensions/state/overlays/framing/attribute_framing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,gBAAiB,YAAW,iBAAiB;IAC1C,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"attribute_framing.d.ts","sourceRoot":"","sources":["../../../../../../src/oca_extensions/state/overlays/framing/attribute_framing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,gBAAiB,YAAW,iBAAiB;IAC1C,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,KAAK;IAGb,OAAO,CAAC,QAAQ;IAGhB,OAAO,CAAC,WAAW;IAGnB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,UAAU;IAIX,eAAe,IAAI,MAAM;CAGjC;AACD,eAAe,gBAAgB,CAAC"}
|
|
@@ -5,7 +5,8 @@ export interface IUnitFraming {
|
|
|
5
5
|
}
|
|
6
6
|
declare class UnitFraming implements IUnitFraming {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
private GetUnits;
|
|
10
11
|
private GetId;
|
|
11
12
|
private GetLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit_framing.d.ts","sourceRoot":"","sources":["../../../../../../src/oca_extensions/state/overlays/framing/unit_framing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAOpD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,WAAY,YAAW,YAAY;IAChC,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"unit_framing.d.ts","sourceRoot":"","sources":["../../../../../../src/oca_extensions/state/overlays/framing/unit_framing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAOpD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,WAAY,YAAW,YAAY;IAChC,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,KAAK;IAGb,OAAO,CAAC,QAAQ;IAGhB,OAAO,CAAC,WAAW;IAGnB,OAAO,CAAC,UAAU;IAGlB,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,UAAU;IAIX,eAAe,IAAI,MAAM;CAGjC;AACD,eAAe,WAAW,CAAC"}
|
|
@@ -5,7 +5,8 @@ export interface IOrdering {
|
|
|
5
5
|
}
|
|
6
6
|
declare class Ordering implements IOrdering {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
private GetAttributeOrdering;
|
|
10
11
|
private GetEntryCodeOrdering;
|
|
11
12
|
private toJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordering.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/ordering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,QAAS,YAAW,SAAS;IAC1B,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ordering.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/ordering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,QAAS,YAAW,SAAS;IAC1B,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,UAAU;IAKX,eAAe,IAAI,MAAM;CAGjC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -5,7 +5,8 @@ export interface IRange {
|
|
|
5
5
|
}
|
|
6
6
|
declare class Range implements IRange {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
private GetAttributes;
|
|
10
11
|
private toJSON;
|
|
11
12
|
private Saidifying;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,KAAM,YAAW,MAAM;IACpB,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,KAAM,YAAW,MAAM;IACpB,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,UAAU;IAIX,eAAe,IAAI,MAAM;CAGjC;AACD,eAAe,KAAK,CAAC"}
|
|
@@ -5,7 +5,8 @@ export interface ISensitive {
|
|
|
5
5
|
}
|
|
6
6
|
declare class Sensitive implements ISensitive {
|
|
7
7
|
dynOverlay: DynOverlay;
|
|
8
|
-
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
9
10
|
private GetSensitiveAttributes;
|
|
10
11
|
private toJSON;
|
|
11
12
|
private Saidifying;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitive.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/sensitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,SAAU,YAAW,UAAU;IAC5B,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"sensitive.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/sensitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,SAAU,YAAW,UAAU;IAC5B,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,UAAU;IAKX,eAAe,IAAI,MAAM;CAGjC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,48 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
attribute_separators: {
|
|
6
|
-
[key: string]: SeparatorValues;
|
|
7
|
-
};
|
|
1
|
+
import { DynOverlay } from '../../extensions.js';
|
|
2
|
+
interface Iseparator {
|
|
3
|
+
dynOverlay: DynOverlay;
|
|
4
|
+
GenerateOverlay(): string;
|
|
8
5
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export interface ISeparatorOverlay {
|
|
17
|
-
said?: Said;
|
|
18
|
-
type: OverlayTypes.Separator;
|
|
19
|
-
capture_base: Said;
|
|
20
|
-
dataset_separator?: SeparatorsInput['dataset_separator'];
|
|
21
|
-
attribute_separators?: SeparatorsInput['attribute_separators'];
|
|
22
|
-
overlay_type(): string;
|
|
23
|
-
}
|
|
24
|
-
export interface SeparatorValues {
|
|
25
|
-
delimiter: string;
|
|
26
|
-
escape: string;
|
|
27
|
-
}
|
|
28
|
-
declare class Separator implements ISeparatorOverlay {
|
|
29
|
-
said?: Said;
|
|
30
|
-
type: OverlayTypes.Separator;
|
|
31
|
-
capture_base: Said;
|
|
32
|
-
dataset_separator?: SeparatorsInput['dataset_separator'];
|
|
33
|
-
attribute_separators?: SeparatorsInput['attribute_separators'];
|
|
34
|
-
separators: SeparatorsInput;
|
|
35
|
-
oca_bundle: any;
|
|
36
|
-
constructor(separators: SeparatorsInput, oca_bundle: any);
|
|
37
|
-
overlay_type(): string;
|
|
38
|
-
attributes(): {
|
|
39
|
-
key: string;
|
|
40
|
-
value: SeparatorValues;
|
|
41
|
-
}[];
|
|
6
|
+
declare class Separator implements Iseparator {
|
|
7
|
+
dynOverlay: DynOverlay;
|
|
8
|
+
private capture_base_digest;
|
|
9
|
+
constructor(dynOverlay: DynOverlay, capture_base_digest: string);
|
|
10
|
+
private GetAttributesSeparators;
|
|
11
|
+
private GetDatasetSeparator;
|
|
42
12
|
private toJSON;
|
|
43
|
-
private
|
|
44
|
-
|
|
45
|
-
static deser(separator_ov_json_string: string): Separator;
|
|
13
|
+
private Saidifying;
|
|
14
|
+
GenerateOverlay(): string;
|
|
46
15
|
}
|
|
47
16
|
export default Separator;
|
|
48
17
|
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/separator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../../src/oca_extensions/state/overlays/separator.ts"],"names":[],"mappings":"AAwIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,UAAU,UAAU;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,cAAM,SAAU,YAAW,UAAU;IAC5B,UAAU,EAAE,UAAU,CAAC;IAC9B,OAAO,CAAC,mBAAmB,CAAS;gBAExB,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM;IAY/D,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,UAAU;IAIX,eAAe,IAAI,MAAM;CAGjC;AAED,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oca_package",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "The wrapper of OCA bundle to generate OCA Package at ADC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"url": "https://github.com/agrifooddatacanada/OCA_Package"
|
|
39
39
|
},
|
|
40
40
|
"author": "Steven Mugisha Mizero <smugisha@uoguelph.ca>",
|
|
41
|
-
"license": "EUPL-1.2",
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@eslint/js": "^9.11.1",
|
|
44
43
|
"@types/node": "^22.7.3",
|