@toolproof-npm/shared 0.1.86 → 0.1.87
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/_lib/utils/utils.d.ts +1 -1
- package/dist/firebaseAdminHelpers.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/types.d.ts +0 -10
- package/dist/types.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceIdentityJson, ResourceTypeIdentityJson, ResourceJson, ResourceMissingJson, JobJson, ResourcePotentialOutputJson, StrategyStateJson, CreationContextJson } from '@toolproof-npm/schema';
|
|
2
|
-
import type { ResourceMap } from '
|
|
2
|
+
import type { ResourceMap } from '../types.js';
|
|
3
3
|
export declare function extractResourcesByType(resourceMap: ResourceMap, resourceTypeRef: ResourceTypeIdentityJson): Record<ResourceIdentityJson, ResourceJson>;
|
|
4
4
|
export declare function extractJobMap(resourceMap: ResourceMap): Map<`JOB-${string}`, JobJson>;
|
|
5
5
|
export type ResolveResult = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceTypeIdentityJson } from '@toolproof-npm/schema';
|
|
2
|
-
import type { StepConst, ResourceMap, TerminalConst } from './types.js';
|
|
2
|
+
import type { StepConst, ResourceMap, TerminalConst } from './_lib/types.js';
|
|
3
3
|
export declare function getNewIdentity(identifiable: TerminalConst | StepConst): string;
|
|
4
4
|
export declare function listResources(// ATTENTION: must clean up
|
|
5
5
|
resourceTypeRefs: ResourceTypeIdentityJson[]): Promise<ResourceMap>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as CONSTANTS from './constants.js';
|
|
2
|
-
export * as TYPES from './types.js';
|
|
2
|
+
export * as TYPES from './_lib/types.js';
|
|
3
3
|
export * as UTILS from './_lib/utils/utils.js';
|
|
4
4
|
export * as RESOURCE_CREATION from './_lib/utils/resourceCreation.js';
|
|
5
5
|
export * from './firebaseAdminHelpers.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as CONSTANTS from './constants.js';
|
|
2
|
-
export * as TYPES from './types.js';
|
|
2
|
+
export * as TYPES from './_lib/types.js';
|
|
3
3
|
export * as UTILS from './_lib/utils/utils.js';
|
|
4
4
|
export * as RESOURCE_CREATION from './_lib/utils/resourceCreation.js';
|
|
5
5
|
export * from './firebaseAdminHelpers.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolproof-npm/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
4
4
|
"description": "Core library utilities for ToolProof",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"toolproof",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"types": "./dist/constants.d.ts"
|
|
33
33
|
},
|
|
34
34
|
"./types": {
|
|
35
|
-
"import": "./dist/types.js",
|
|
36
|
-
"types": "./dist/types.d.ts"
|
|
35
|
+
"import": "./dist/_lib/types.js",
|
|
36
|
+
"types": "./dist/_lib/types.d.ts"
|
|
37
37
|
},
|
|
38
38
|
"./utils": {
|
|
39
|
-
"import": "./dist/utils.js",
|
|
40
|
-
"types": "./dist/utils.d.ts"
|
|
39
|
+
"import": "./dist/_lib/utils/utils.js",
|
|
40
|
+
"types": "./dist/_lib/utils/utils.d.ts"
|
|
41
41
|
},
|
|
42
42
|
"./server": {
|
|
43
43
|
"node": "./dist/firebaseAdminHelpers.js",
|
package/dist/types.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ResourceJson, ResourceRoleIdentityJson, ResourceRoleValueJson, ResourceTypeIdentityJson } from '@toolproof-npm/schema';
|
|
2
|
-
import { CONSTANTS } from './constants.js';
|
|
3
|
-
export type BucketConst = typeof CONSTANTS.STORAGE.BUCKETS.tp_resources;
|
|
4
|
-
export type CollectionConst = keyof typeof CONSTANTS.STORAGE.COLLECTIONS;
|
|
5
|
-
export type TerminalConst = keyof typeof CONSTANTS.TERMINALS;
|
|
6
|
-
export type StepConst = keyof typeof CONSTANTS.STEPS;
|
|
7
|
-
export type Role = {
|
|
8
|
-
identity: ResourceRoleIdentityJson;
|
|
9
|
-
} & ResourceRoleValueJson;
|
|
10
|
-
export type ResourceMap = Record<ResourceTypeIdentityJson, ResourceJson[]>;
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|