@toolproof-npm/shared 0.1.34 → 0.1.35

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.
@@ -7,7 +7,7 @@ export declare const CONSTANTS: {
7
7
  };
8
8
  readonly STORAGE: {
9
9
  readonly BUCKETS: {
10
- readonly tp_resourceshapes: "tp-resourceshapes";
10
+ readonly tp_shapes: "tp-shapes";
11
11
  readonly tp_resources: "tp-resources";
12
12
  };
13
13
  readonly COLLECTIONS: {
package/dist/constants.js CHANGED
@@ -7,7 +7,7 @@ export const CONSTANTS = {
7
7
  },
8
8
  STORAGE: {
9
9
  BUCKETS: {
10
- tp_resourceshapes: 'tp-resourceshapes',
10
+ tp_shapes: 'tp-shapes',
11
11
  tp_resources: 'tp-resources',
12
12
  },
13
13
  COLLECTIONS: {
@@ -46,7 +46,7 @@ export async function listResourcesMeta(resourceTypeIds) {
46
46
  return Object.fromEntries(entries);
47
47
  }
48
48
  export async function listResourceShapesData(groupKey, filterConfig) {
49
- const bucket = storageAdmin.bucket(CONSTANTS.STORAGE.BUCKETS.tp_resourceshapes);
49
+ const bucket = storageAdmin.bucket(CONSTANTS.STORAGE.BUCKETS.tp_shapes);
50
50
  const prefix = `${groupKey}/`;
51
51
  const [files] = await bucket.getFiles({ prefix });
52
52
  const result = {
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ResourceIdJson, ExecutionIdJson, ResourceRoleIdJson, ResourceRoleValueJson, ResourceTypeIdJson, ResourceFormatMetaJson, ResourceFormatDataJson, ResourceTypeMetaJson, ResourceTypeDataJson, ResourceMetaJson, ResourceDataJson } from '@toolproof-npm/schema';
2
2
  import { CONSTANTS } from './constants.js';
3
- export type BucketConst = typeof CONSTANTS.STORAGE.BUCKETS.tp_resourceshapes | typeof CONSTANTS.STORAGE.BUCKETS.tp_resources;
3
+ export type BucketConst = typeof CONSTANTS.STORAGE.BUCKETS.tp_shapes | typeof CONSTANTS.STORAGE.BUCKETS.tp_resources;
4
4
  export type CollectionConst = typeof CONSTANTS.STORAGE.COLLECTIONS.resourceshapes | typeof CONSTANTS.STORAGE.COLLECTIONS.resources;
5
5
  export type FilterConst = typeof CONSTANTS.STORAGE.FILTER.members | typeof CONSTANTS.STORAGE.FILTER.specials;
6
6
  export type ResourceShapeConst = typeof CONSTANTS.RESOURCESHAPES.formats | typeof CONSTANTS.RESOURCESHAPES.types;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/shared",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "Core library utilities for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",