@toolproof-core/lib 1.0.1 → 1.0.3

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.
Files changed (55) hide show
  1. package/dist/_lib/setup/firebaseAdminInit.d.ts.map +1 -0
  2. package/dist/_lib/setup/firebaseAdminInit.js.map +1 -0
  3. package/dist/artifacts/artifacts.d.ts +174 -0
  4. package/dist/artifacts/artifacts.d.ts.map +1 -0
  5. package/dist/{declarations/constants.js → artifacts/artifacts.js} +12 -11
  6. package/dist/artifacts/artifacts.js.map +1 -0
  7. package/dist/firebase/firebaseAdminHelpers.d.ts +4 -31
  8. package/dist/firebase/firebaseAdminHelpers.d.ts.map +1 -1
  9. package/dist/firebase/firebaseAdminHelpers.js +32 -27
  10. package/dist/firebase/firebaseAdminHelpers.js.map +1 -1
  11. package/dist/types/types.d.ts +9 -5
  12. package/dist/types/types.d.ts.map +1 -1
  13. package/dist/types/types.js +2 -1
  14. package/dist/types/types.js.map +1 -1
  15. package/dist/utils/creation.d.ts +4 -0
  16. package/dist/utils/creation.d.ts.map +1 -0
  17. package/dist/utils/creation.js +18 -0
  18. package/dist/utils/creation.js.map +1 -0
  19. package/dist/utils/resourceMapExtraction.d.ts +12 -0
  20. package/dist/utils/resourceMapExtraction.d.ts.map +1 -0
  21. package/dist/utils/resourceMapExtraction.js +23 -0
  22. package/dist/utils/resourceMapExtraction.js.map +1 -0
  23. package/package.json +42 -31
  24. package/src/{firebase → _lib/setup}/firebaseAdminInit.ts +38 -38
  25. package/{dist/constants/constants.js → src/artifacts/artifacts.ts} +14 -12
  26. package/src/firebase/firebaseAdminHelpers.ts +157 -189
  27. package/src/types/types.ts +25 -17
  28. package/src/utils/creation.ts +27 -0
  29. package/src/utils/resourceMapExtraction.ts +47 -0
  30. package/tsconfig.json +14 -14
  31. package/tsconfig.tsbuildinfo +1 -1
  32. package/dist/constants/constants.d.ts +0 -94
  33. package/dist/constants/constants.d.ts.map +0 -1
  34. package/dist/constants/constants.js.map +0 -1
  35. package/dist/declarations/constants.d.ts +0 -94
  36. package/dist/declarations/constants.d.ts.map +0 -1
  37. package/dist/declarations/constants.js.map +0 -1
  38. package/dist/declarations/types.d.ts +0 -10
  39. package/dist/declarations/types.d.ts.map +0 -1
  40. package/dist/declarations/types.js +0 -2
  41. package/dist/declarations/types.js.map +0 -1
  42. package/dist/declarations/typesTS.d.ts +0 -11
  43. package/dist/declarations/typesTS.d.ts.map +0 -1
  44. package/dist/declarations/typesTS.js +0 -2
  45. package/dist/declarations/typesTS.js.map +0 -1
  46. package/dist/firebase/firebaseAdminInit.d.ts.map +0 -1
  47. package/dist/firebase/firebaseAdminInit.js.map +0 -1
  48. package/dist/index.d.ts +0 -4
  49. package/dist/index.d.ts.map +0 -1
  50. package/dist/index.js +0 -4
  51. package/dist/index.js.map +0 -1
  52. package/src/constants/constants.ts +0 -39
  53. package/src/index.ts +0 -3
  54. /package/dist/{firebase → _lib/setup}/firebaseAdminInit.d.ts +0 -0
  55. /package/dist/{firebase → _lib/setup}/firebaseAdminInit.js +0 -0
@@ -1,94 +0,0 @@
1
- export declare const CONSTANTS: {
2
- readonly PERSISTENCE: {
3
- readonly BUCKETS: {
4
- readonly tp_resources: "tp-resources";
5
- readonly tp_strategies: "tp-strategies";
6
- };
7
- readonly COLLECTIONS: {
8
- readonly resources: "resources";
9
- readonly members: "members";
10
- };
11
- };
12
- readonly ENGINE: {
13
- readonly GRAPHS: {
14
- readonly GraphRunStrategy: "GraphRunStrategy";
15
- readonly GraphBuildStrategy: "GraphBuildStrategy";
16
- };
17
- };
18
- readonly COSMOS: {
19
- readonly TYPE_Boolean: "TYPE-Boolean";
20
- readonly TYPE_Natural: "TYPE-Natural";
21
- readonly TYPE_ResourceType: "TYPE-ResourceType";
22
- readonly TYPE_Job: "TYPE-Job";
23
- readonly TYPE_Error: "TYPE-Error";
24
- readonly TYPE_RawStrategy: "TYPE-RawStrategy";
25
- readonly TYPE_RunnableStrategy: "TYPE-RunnableStrategy";
26
- readonly TYPE_StrategyRun: "TYPE-StrategyRun";
27
- readonly ROLE_Manual: "ROLE-Manual";
28
- readonly ROLE_ErrorOutput: "ROLE-ErrorOutput";
29
- readonly ROLE_LessThanSource: "ROLE-LessThanSource";
30
- readonly ROLE_LessThanTarget: "ROLE-LessThanTarget";
31
- readonly ROLE_LessThanDecision: "ROLE-LessThanDecision";
32
- readonly JOB_LessThan: "JOB-LessThan";
33
- readonly BOOLEAN_false: "RESOURCE-qadnfFGjZsjpqLI0Du1d";
34
- readonly BOOLEAN_true: "RESOURCE-iZX1cxZ9ImJRzty9Ob4G";
35
- };
36
- readonly IDENTIFIABLES: {
37
- readonly PREFIXES: {
38
- readonly BranchStepIdentity: "BRANCH_STEP-";
39
- readonly ForStepIdentity: "FOR_STEP-";
40
- readonly GoalIdentity: "GOAL-";
41
- readonly JobIdentity: "JOB-";
42
- readonly JobStepIdentity: "JOB_STEP-";
43
- readonly ResourceIdentity: "RESOURCE-";
44
- readonly ResourceRoleIdentity: "ROLE-";
45
- readonly ResourceTypeIdentity: "TYPE-";
46
- readonly RunnableStrategyIdentity: "RUNNABLE_STRATEGY-";
47
- readonly StrategyRunIdentity: "STRATEGY_RUN-";
48
- readonly StrategyThreadIdentity: "STRATEGY_THREAD-";
49
- readonly WhileStepIdentity: "WHILE_STEP-";
50
- };
51
- readonly NAMES: {
52
- readonly BranchStep: "BranchStep";
53
- readonly ForStep: "ForStep";
54
- readonly Goal: "Goal";
55
- readonly Job: "Job";
56
- readonly JobStep: "JobStep";
57
- readonly Resource: "Resource";
58
- readonly ResourceRole: "ResourceRole";
59
- readonly ResourceType: "ResourceType";
60
- readonly RunnableStrategy: "RunnableStrategy";
61
- readonly StrategyRun: "StrategyRun";
62
- readonly StrategyThread: "StrategyThread";
63
- readonly WhileStep: "WhileStep";
64
- };
65
- };
66
- readonly ENUMS: {
67
- readonly ResourceKind: {
68
- readonly missing: "missing";
69
- readonly inputPotential: "inputPotential";
70
- readonly outputPotential: "outputPotential";
71
- readonly materialized: "materialized";
72
- };
73
- readonly RunEventKind: {
74
- readonly graph_start: "graph_start";
75
- readonly tick: "tick";
76
- readonly interrupt: "interrupt";
77
- readonly graph_end: "graph_end";
78
- };
79
- readonly RunnableStrategyStatus: {
80
- readonly pending: "pending";
81
- readonly running: "running";
82
- readonly completed: "completed";
83
- readonly failed: "failed";
84
- readonly cancelled: "cancelled";
85
- };
86
- readonly StepKind: {
87
- readonly job: "job";
88
- readonly branch: "branch";
89
- readonly while: "while";
90
- readonly for: "for";
91
- };
92
- };
93
- };
94
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,GAAG,UAAU;IACb,WAAW,EAAE;QACT,OAAO,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,aAAa,EAAE,eAAe;SACjC;QACD,WAAW,EAAE;YACT,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACrB;KACJ;IACD,MAAM,EAAE;QACJ,MAAM,EAAE;YACJ,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;SAC3C;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,cAAc;QAC5B,YAAY,EAAE,cAAc;QAC5B,iBAAiB,EAAE,mBAAmB;QACtC,QAAQ,EAAE,UAAU;QACpB,UAAU,EAAE,YAAY;QACxB,gBAAgB,EAAE,kBAAkB;QACpC,qBAAqB,EAAE,uBAAuB;QAC9C,gBAAgB,EAAE,kBAAkB;QACpC,WAAW,EAAE,aAAa;QAC1B,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,qBAAqB;QAC1C,mBAAmB,EAAE,qBAAqB;QAC1C,qBAAqB,EAAE,uBAAuB;QAC9C,YAAY,EAAE,cAAc;QAC5B,aAAa,EAAE,+BAA+B;QAC9C,YAAY,EAAE,+BAA+B;KAChD;CACK,CAAC"}
@@ -1,94 +0,0 @@
1
- export declare const CONSTANTS: {
2
- readonly PERSISTENCE: {
3
- readonly BUCKETS: {
4
- readonly tp_resources: "tp-resources";
5
- readonly tp_strategies: "tp-strategies";
6
- };
7
- readonly COLLECTIONS: {
8
- readonly resources: "resources";
9
- readonly members: "members";
10
- };
11
- };
12
- readonly ENGINE: {
13
- readonly GRAPHS: {
14
- readonly GraphRunStrategy: "GraphRunStrategy";
15
- readonly GraphBuildStrategy: "GraphBuildStrategy";
16
- };
17
- };
18
- readonly COSMOS: {
19
- readonly TYPE_Boolean: "TYPE-Boolean";
20
- readonly TYPE_Natural: "TYPE-Natural";
21
- readonly TYPE_ResourceType: "TYPE-ResourceType";
22
- readonly TYPE_Job: "TYPE-Job";
23
- readonly TYPE_Error: "TYPE-Error";
24
- readonly TYPE_RawStrategy: "TYPE-RawStrategy";
25
- readonly TYPE_RunnableStrategy: "TYPE-RunnableStrategy";
26
- readonly TYPE_StrategyRun: "TYPE-StrategyRun";
27
- readonly ROLE_Manual: "ROLE-Manual";
28
- readonly ROLE_ErrorOutput: "ROLE-ErrorOutput";
29
- readonly ROLE_LessThanSource: "ROLE-LessThanSource";
30
- readonly ROLE_LessThanTarget: "ROLE-LessThanTarget";
31
- readonly ROLE_LessThanDecision: "ROLE-LessThanDecision";
32
- readonly JOB_LessThan: "JOB-LessThan";
33
- readonly BOOLEAN_false: "RESOURCE-qadnfFGjZsjpqLI0Du1d";
34
- readonly BOOLEAN_true: "RESOURCE-iZX1cxZ9ImJRzty9Ob4G";
35
- };
36
- readonly IDENTIFIABLES: {
37
- readonly PREFIXES: {
38
- readonly BranchStepIdentity: "BRANCH_STEP-";
39
- readonly ForStepIdentity: "FOR_STEP-";
40
- readonly GoalIdentity: "GOAL-";
41
- readonly JobIdentity: "JOB-";
42
- readonly JobStepIdentity: "JOB_STEP-";
43
- readonly ResourceIdentity: "RESOURCE-";
44
- readonly ResourceRoleIdentity: "ROLE-";
45
- readonly ResourceTypeIdentity: "TYPE-";
46
- readonly RunnableStrategyIdentity: "RUNNABLE_STRATEGY-";
47
- readonly StrategyRunIdentity: "STRATEGY_RUN-";
48
- readonly StrategyThreadIdentity: "STRATEGY_THREAD-";
49
- readonly WhileStepIdentity: "WHILE_STEP-";
50
- };
51
- readonly NAMES: {
52
- readonly BranchStep: "BranchStep";
53
- readonly ForStep: "ForStep";
54
- readonly Goal: "Goal";
55
- readonly Job: "Job";
56
- readonly JobStep: "JobStep";
57
- readonly Resource: "Resource";
58
- readonly ResourceRole: "ResourceRole";
59
- readonly ResourceType: "ResourceType";
60
- readonly RunnableStrategy: "RunnableStrategy";
61
- readonly StrategyRun: "StrategyRun";
62
- readonly StrategyThread: "StrategyThread";
63
- readonly WhileStep: "WhileStep";
64
- };
65
- };
66
- readonly ENUMS: {
67
- readonly ResourceKind: {
68
- readonly missing: "missing";
69
- readonly "input-potential": "input-potential";
70
- readonly "output-potential": "output-potential";
71
- readonly materialized: "materialized";
72
- };
73
- readonly RunEventKind: {
74
- readonly graph_start: "graph_start";
75
- readonly tick: "tick";
76
- readonly interrupt: "interrupt";
77
- readonly graph_end: "graph_end";
78
- };
79
- readonly RunnableStrategyStatus: {
80
- readonly pending: "pending";
81
- readonly running: "running";
82
- readonly completed: "completed";
83
- readonly failed: "failed";
84
- readonly cancelled: "cancelled";
85
- };
86
- readonly StepKind: {
87
- readonly job: "job";
88
- readonly branch: "branch";
89
- readonly while: "while";
90
- readonly for: "for";
91
- };
92
- };
93
- };
94
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/declarations/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/declarations/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,GAAG,UAAU;IACb,WAAW,EAAE;QACT,OAAO,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,aAAa,EAAE,eAAe;SACjC;QACD,WAAW,EAAE;YACT,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACrB;KACJ;IACD,MAAM,EAAE;QACJ,MAAM,EAAE;YACJ,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;SAC3C;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,cAAc;QAC5B,YAAY,EAAE,cAAc;QAC5B,iBAAiB,EAAE,mBAAmB;QACtC,QAAQ,EAAE,UAAU;QACpB,UAAU,EAAE,YAAY;QACxB,gBAAgB,EAAE,kBAAkB;QACpC,qBAAqB,EAAE,uBAAuB;QAC9C,gBAAgB,EAAE,kBAAkB;QACpC,WAAW,EAAE,aAAa;QAC1B,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,qBAAqB;QAC1C,mBAAmB,EAAE,qBAAqB;QAC1C,qBAAqB,EAAE,uBAAuB;QAC9C,YAAY,EAAE,cAAc;QAC5B,aAAa,EAAE,+BAA+B;QAC9C,YAAY,EAAE,+BAA+B;KAChD;CACK,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ResourceJson, ResourceRoleIdentityJson, ResourceRoleValueJson, ResourceTypeIdentityJson } from '@toolproof-core/schema';
2
- import { CONSTANTS } from './constants.js';
3
- export type BucketConst = typeof CONSTANTS.PERSISTENCE.BUCKETS.tp_resources;
4
- export type CollectionConst = keyof typeof CONSTANTS.PERSISTENCE.COLLECTIONS;
5
- export type IdentityPrefix = keyof typeof CONSTANTS.IDENTIFIABLES.PREFIXES;
6
- export type Role = {
7
- identity: ResourceRoleIdentityJson;
8
- } & ResourceRoleValueJson;
9
- export type ResourceMap = Record<ResourceTypeIdentityJson, ResourceJson[]>;
10
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/declarations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC;AAE5E,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;AAE3E,MAAM,MAAM,IAAI,GAAG;IAAE,QAAQ,EAAE,wBAAwB,CAAA;CAAE,GAAG,qBAAqB,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,wBAAwB,EAAE,YAAY,EAAE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { CONSTANTS } from './constants.js';
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/declarations/types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ResourceJson, ResourceRoleIdentityJson, ResourceRoleValueJson, ResourceTypeIdentityJson } from '@toolproof-core/schema';
2
- import { CONSTANTS } from '../declarations/constants.js';
3
- export type BucketConst = typeof CONSTANTS.STORAGE.BUCKETS.tp_resources;
4
- export type CollectionConst = keyof typeof CONSTANTS.STORAGE.COLLECTIONS;
5
- export type IdentityPrefix = keyof typeof CONSTANTS.IDENTITY_PREFIXES;
6
- export type StepConst = keyof typeof CONSTANTS.STEPS;
7
- export type Role = {
8
- identity: ResourceRoleIdentityJson;
9
- } & ResourceRoleValueJson;
10
- export type ResourceMap = Record<ResourceTypeIdentityJson, ResourceJson[]>;
11
- //# sourceMappingURL=typesTS.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typesTS.d.ts","sourceRoot":"","sources":["../../src/declarations/typesTS.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,SAAS,CAAC,iBAAiB,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,SAAS,CAAC,KAAK,CAAC;AAErD,MAAM,MAAM,IAAI,GAAG;IAAE,QAAQ,EAAE,wBAAwB,CAAA;CAAE,GAAG,qBAAqB,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,wBAAwB,EAAE,YAAY,EAAE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { CONSTANTS } from '../declarations/constants.js';
2
- //# sourceMappingURL=typesTS.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typesTS.js","sourceRoot":"","sources":["../../src/declarations/typesTS.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"firebaseAdminInit.d.ts","sourceRoot":"","sources":["../../src/firebase/firebaseAdminInit.ts"],"names":[],"mappings":"AAkCA,QAAA,MAAM,OAAO,6BAAoB,CAAC;AAClC,QAAA,MAAM,YAAY,0CAAkB,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"firebaseAdminInit.js","sourceRoot":"","sources":["../../src/firebase/firebaseAdminInit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,uGAAuG;AACvG,SAAS,iBAAiB;IACtB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;IACnE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC;IAC3D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;IAC9D,IAAI,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACpC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QACD,IAAI,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;QACD,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;YAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACL,sBAAsB;IAC1B,CAAC;IACD,OAAO,kBAAkB,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;IACpD,UAAU,EAAE,iBAAiB,EAAE;IAC/B,SAAS,EAAE,iBAAiB;CAC/B,CAAC,CAAC;AACH,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;AAClC,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * as CONSTANTS from './constants/constants.js';
2
- export * as TYPES_TS from './types/types.js';
3
- export * from './firebase/firebaseAdminHelpers.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
package/dist/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * as CONSTANTS from './constants/constants.js';
2
- export * as TYPES_TS from './types/types.js';
3
- export * from './firebase/firebaseAdminHelpers.js';
4
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
@@ -1,39 +0,0 @@
1
- import { CONSTANTS as CONSTANTS_ } from "@toolproof-core/schema";
2
-
3
- export const CONSTANTS = {
4
- ...CONSTANTS_,
5
- PERSISTENCE: {
6
- BUCKETS: {
7
- tp_resources: 'tp-resources',
8
- tp_strategies: 'tp-strategies',
9
- },
10
- COLLECTIONS: {
11
- resources: 'resources',
12
- members: 'members',
13
- },
14
- },
15
- ENGINE: {
16
- GRAPHS: {
17
- GraphRunStrategy: 'GraphRunStrategy',
18
- GraphBuildStrategy: 'GraphBuildStrategy',
19
- },
20
- },
21
- COSMOS: {
22
- TYPE_Boolean: 'TYPE-Boolean',
23
- TYPE_Natural: 'TYPE-Natural',
24
- TYPE_ResourceType: 'TYPE-ResourceType',
25
- TYPE_Job: 'TYPE-Job',
26
- TYPE_Error: 'TYPE-Error',
27
- TYPE_RawStrategy: 'TYPE-RawStrategy',
28
- TYPE_RunnableStrategy: 'TYPE-RunnableStrategy',
29
- TYPE_StrategyRun: 'TYPE-StrategyRun',
30
- ROLE_Manual: 'ROLE-Manual',
31
- ROLE_ErrorOutput: 'ROLE-ErrorOutput',
32
- ROLE_LessThanSource: 'ROLE-LessThanSource',
33
- ROLE_LessThanTarget: 'ROLE-LessThanTarget',
34
- ROLE_LessThanDecision: 'ROLE-LessThanDecision',
35
- JOB_LessThan: 'JOB-LessThan',
36
- BOOLEAN_false: 'RESOURCE-qadnfFGjZsjpqLI0Du1d',
37
- BOOLEAN_true: 'RESOURCE-iZX1cxZ9ImJRzty9Ob4G',
38
- }
39
- } as const;
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * as CONSTANTS from './constants/constants.js';
2
- export * as TYPES_TS from './types/types.js';
3
- export * from './firebase/firebaseAdminHelpers.js';