@uniformdev/project-map 17.1.1-alpha.752

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.
@@ -0,0 +1,504 @@
1
+ import { ApiClient } from '@uniformdev/context/api';
2
+
3
+ /**
4
+ * This file was auto-generated by openapi-typescript.
5
+ * Do not make direct changes to the file.
6
+ */
7
+ interface paths$1 {
8
+ "/api/v1/project-map-nodes": {
9
+ /** Called to get a list of nodes belonging to a specific path or Id */
10
+ get: {
11
+ parameters: {
12
+ query: {
13
+ /** The project map id that the desired nodes belong */
14
+ projectMapId: string;
15
+ /** The project id that contains the project map tree that this node belongs to */
16
+ projectId: string;
17
+ /** The id of the node to retrieve, cannot have both this parameter and Path */
18
+ id?: string;
19
+ /** The path of the root node to retrieve, cannot have both this parameter and Id */
20
+ path?: string;
21
+ /** Limit the number or records returned by a number */
22
+ limit?: number;
23
+ /** Number of records to skip before returning nodes */
24
+ offset?: number;
25
+ /** Depth of the tree to fetch */
26
+ depth?: number;
27
+ /** should the data be returned as a json tree object */
28
+ tree?: boolean;
29
+ /** text search filter */
30
+ search?: string;
31
+ /** include expanded helper computed properties, includes isLeaf, parentPath, urlSegment */
32
+ expanded?: boolean;
33
+ };
34
+ };
35
+ responses: {
36
+ /** OK */
37
+ 200: {
38
+ content: {
39
+ "application/json": {
40
+ nodes?: components$1["schemas"]["ProjectMapNodeDefinition"][];
41
+ tree?: external$1["v1-project-map-tree.swagger.yml"]["components"]["schemas"]["ProjectMapTreeNodeDefinition"];
42
+ };
43
+ };
44
+ };
45
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
46
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
47
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
48
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
49
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
50
+ };
51
+ };
52
+ /** Called to insert or update a node or nodes */
53
+ put: {
54
+ responses: {
55
+ /** OK */
56
+ 204: never;
57
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
58
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
59
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
60
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
61
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
62
+ };
63
+ requestBody: {
64
+ content: {
65
+ "application/json": {
66
+ /** @description An array of projectMap node objects to be updated or inserted */
67
+ nodes: {
68
+ node: components$1["schemas"]["ProjectMapNodeUpdate"];
69
+ /** @description The path of the node directly prior to the location where the current node is desired to go or undefined if there isn't one */
70
+ previousSibling?: string;
71
+ /** @description The path of the node directly after the location where the current node is desired to go or undefined if there isn't one */
72
+ nextSibling?: string;
73
+ }[];
74
+ /**
75
+ * Format: uuid
76
+ * @description The project id of the project that the projectMap belongs to
77
+ */
78
+ projectId: string;
79
+ /**
80
+ * Format: uuid
81
+ * @description The projectMap id that the changing or inserting nodes belong to
82
+ */
83
+ projectMapId: string;
84
+ };
85
+ };
86
+ };
87
+ };
88
+ /** Called to delete a particular projectMap node by id or path */
89
+ delete: {
90
+ responses: {
91
+ /** OK */
92
+ 204: never;
93
+ 400: external$1["swagger.yml"]["components"]["responses"]["BadRequestError"];
94
+ 401: external$1["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
95
+ 403: external$1["swagger.yml"]["components"]["responses"]["ForbiddenError"];
96
+ 429: external$1["swagger.yml"]["components"]["responses"]["RateLimitError"];
97
+ 500: external$1["swagger.yml"]["components"]["responses"]["InternalServerError"];
98
+ };
99
+ requestBody: {
100
+ content: {
101
+ "application/json": {
102
+ /**
103
+ * Format: uuid
104
+ * @description Id of the projectMap node to delete
105
+ */
106
+ nodeId?: string;
107
+ /** @description Path to the projectMap node to delete */
108
+ path: string;
109
+ /**
110
+ * Format: uuid
111
+ * @description Project map id that the node to delete belongs to
112
+ */
113
+ projectMapId: string;
114
+ /**
115
+ * Format: uuid
116
+ * @description Project id that the project map belongs to
117
+ */
118
+ projectId: string;
119
+ } | {
120
+ /**
121
+ * Format: uuid
122
+ * @description Id of the projectMap node to delete
123
+ */
124
+ nodeId: string;
125
+ /** @description Path to the projectMap node to delete */
126
+ path?: string;
127
+ /**
128
+ * Format: uuid
129
+ * @description Project map id that the node to delete belongs to
130
+ */
131
+ projectMapId: string;
132
+ /**
133
+ * Format: uuid
134
+ * @description Project id that the project map belongs to
135
+ */
136
+ projectId: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ };
142
+ }
143
+ interface components$1 {
144
+ schemas: {
145
+ ProjectMapNodeDefinition: {
146
+ /**
147
+ * Format: uuid
148
+ * @description The id of the projectMap entry
149
+ */
150
+ id: string;
151
+ /** @description Dot delimited path representing the path to the current node */
152
+ path: string;
153
+ /** @description Ordering of the node, higher numbers go after lower numbers. */
154
+ order?: number;
155
+ /** @description Data associated with this projectMap node */
156
+ data?: {
157
+ [key: string]: unknown;
158
+ };
159
+ /** @description The name of the projectMap entry */
160
+ name: string;
161
+ /**
162
+ * @description The type of the projectMap entry
163
+ * @enum {string}
164
+ */
165
+ type: "composition" | "redirect" | "placeholder";
166
+ /**
167
+ * Format: uuid
168
+ * @description The composition id related to the projectMap entry
169
+ */
170
+ compositionId?: string;
171
+ /** @description Description of the projectMap node */
172
+ description?: string;
173
+ /** @description Parent path of the current node, only included if requested with the expanded flag */
174
+ parentPath?: string;
175
+ /** @description Last segment of the url, only included if requested with the expanded flag */
176
+ urlSegment?: string;
177
+ /** @description returns true if the node is a leaf node, meaning having no children, only included if requested with the expanded flag */
178
+ isLeaf?: boolean;
179
+ };
180
+ ProjectMapNodeUpdate: {
181
+ /**
182
+ * Format: uuid
183
+ * @description The id of the projectMap entry
184
+ */
185
+ id?: string;
186
+ /** @description Dot delimited path representing the path to the current node */
187
+ path: string;
188
+ /** @description Ordering of the node, higher numbers go after lower numbers. */
189
+ order?: number;
190
+ /** @description Data associated with this projectMap node */
191
+ data?: {
192
+ [key: string]: unknown;
193
+ };
194
+ /** @description The name of the projectMap entry */
195
+ name: string;
196
+ /**
197
+ * @description The type of the projectMap entry
198
+ * @enum {string}
199
+ */
200
+ type: "composition" | "redirect" | "placeholder";
201
+ /**
202
+ * Format: uuid
203
+ * @description The composition id related to the projectMap entry
204
+ */
205
+ compositionId?: string;
206
+ /** @description Description of the projectMap node */
207
+ description?: string;
208
+ };
209
+ };
210
+ }
211
+ interface external$1 {
212
+ "swagger.yml": {
213
+ paths: {};
214
+ components: {
215
+ schemas: {
216
+ Error: {
217
+ /** @description Error message(s) that occurred while processing the request */
218
+ errorMessage?: string[] | string;
219
+ };
220
+ };
221
+ responses: {
222
+ /** Request input validation failed */
223
+ BadRequestError: {
224
+ content: {
225
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
226
+ };
227
+ };
228
+ /** API key or token was not valid */
229
+ UnauthorizedError: {
230
+ content: {
231
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
232
+ };
233
+ };
234
+ /** Permission was denied */
235
+ ForbiddenError: {
236
+ content: {
237
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
238
+ };
239
+ };
240
+ /** Resource not found */
241
+ NotFoundError: {
242
+ content: {
243
+ "application/json": external$1["swagger.yml"]["components"]["schemas"]["Error"];
244
+ };
245
+ };
246
+ /** Too many requests in allowed time period */
247
+ RateLimitError: unknown;
248
+ /** Execution error occurred */
249
+ InternalServerError: unknown;
250
+ };
251
+ };
252
+ operations: {};
253
+ };
254
+ "v1-project-map-tree.swagger.yml": {
255
+ paths: {};
256
+ components: {
257
+ schemas: {
258
+ ProjectMapTreeNodeDefinition: components$1["schemas"]["ProjectMapNodeDefinition"] & {
259
+ /** @description Children of the node */
260
+ children?: external$1["v1-project-map-tree.swagger.yml"]["components"]["schemas"]["ProjectMapTreeNodeDefinition"][];
261
+ } & {
262
+ name: unknown;
263
+ };
264
+ };
265
+ };
266
+ operations: {};
267
+ };
268
+ }
269
+
270
+ /**
271
+ * This file was auto-generated by openapi-typescript.
272
+ * Do not make direct changes to the file.
273
+ */
274
+ interface paths {
275
+ "/api/v1/project-map": {
276
+ /** Called to retrieve a list of project maps related to a project or a specific project map by id */
277
+ get: {
278
+ parameters: {
279
+ query: {
280
+ /** The project to fetch project map for */
281
+ projectId: string;
282
+ /** The id of the project map to fetch */
283
+ projectMapId?: string;
284
+ };
285
+ };
286
+ responses: {
287
+ /** OK */
288
+ 200: {
289
+ content: {
290
+ "application/json": {
291
+ projectMaps: components["schemas"]["ProjectMapDefinition"][];
292
+ };
293
+ };
294
+ };
295
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
296
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
297
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
298
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
299
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
300
+ };
301
+ };
302
+ put: {
303
+ responses: {
304
+ /** OK */
305
+ 200: {
306
+ content: {
307
+ "application/json": {
308
+ /**
309
+ * Format: uuid
310
+ * @description Id of the projectMap
311
+ */
312
+ projectMapId: string;
313
+ };
314
+ };
315
+ };
316
+ /** OK */
317
+ 204: never;
318
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
319
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
320
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
321
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
322
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
323
+ };
324
+ requestBody: {
325
+ content: {
326
+ "application/json": {
327
+ /** @description Project map object to insert */
328
+ projectMap: components["schemas"]["ProjectMapDefinition"];
329
+ /**
330
+ * Format: uuid
331
+ * @description Project id to insert the projectMap into
332
+ */
333
+ projectId: string;
334
+ };
335
+ };
336
+ };
337
+ };
338
+ /** Called to delete a projectMap */
339
+ delete: {
340
+ responses: {
341
+ /** OK */
342
+ 204: never;
343
+ 400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
344
+ 401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
345
+ 403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
346
+ 429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
347
+ 500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
348
+ };
349
+ requestBody: {
350
+ content: {
351
+ "application/json": {
352
+ /**
353
+ * Format: uuid
354
+ * @description Id of the project that this projectMap belongs to
355
+ */
356
+ projectId: string;
357
+ /**
358
+ * Format: uuid
359
+ * @description Id of the projectMap to delete
360
+ */
361
+ projectMapId: string;
362
+ };
363
+ };
364
+ };
365
+ };
366
+ };
367
+ }
368
+ interface components {
369
+ schemas: {
370
+ ProjectMapDefinition: {
371
+ /** @description The id of the projectMap node */
372
+ id?: string;
373
+ /** @description The name of the projectMap node */
374
+ name: string;
375
+ /** @description Description of the projectMap node */
376
+ description?: string;
377
+ /** @description The prefix of the url generated by this projectMap */
378
+ baseUrl?: string;
379
+ default?: boolean;
380
+ };
381
+ };
382
+ }
383
+ interface external {
384
+ "swagger.yml": {
385
+ paths: {};
386
+ components: {
387
+ schemas: {
388
+ Error: {
389
+ /** @description Error message(s) that occurred while processing the request */
390
+ errorMessage?: string[] | string;
391
+ };
392
+ };
393
+ responses: {
394
+ /** Request input validation failed */
395
+ BadRequestError: {
396
+ content: {
397
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
398
+ };
399
+ };
400
+ /** API key or token was not valid */
401
+ UnauthorizedError: {
402
+ content: {
403
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
404
+ };
405
+ };
406
+ /** Permission was denied */
407
+ ForbiddenError: {
408
+ content: {
409
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
410
+ };
411
+ };
412
+ /** Resource not found */
413
+ NotFoundError: {
414
+ content: {
415
+ "application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
416
+ };
417
+ };
418
+ /** Too many requests in allowed time period */
419
+ RateLimitError: unknown;
420
+ /** Execution error occurred */
421
+ InternalServerError: unknown;
422
+ };
423
+ };
424
+ operations: {};
425
+ };
426
+ }
427
+
428
+ declare type ProjectMapNodeWithProjectMapReference = ProjectMapNodeWithId & {
429
+ projectMapId: string;
430
+ };
431
+
432
+ declare type ProjectMapNodeUpsertRequest = paths$1['/api/v1/project-map-nodes']['put']['requestBody']['content']['application/json'];
433
+ declare type ProjectMapNodeUpsertRequestNode = ProjectMapNodeUpsertRequest['nodes'][0]['node'];
434
+ declare type ProjectMapNodeDeleteRequest = paths$1['/api/v1/project-map-nodes']['delete']['requestBody']['content']['application/json'];
435
+ declare type ProjectMapNodeGetRequest = paths$1['/api/v1/project-map-nodes']['get']['parameters']['query'];
436
+ declare type ProjectMapNodeGetResponse = paths$1['/api/v1/project-map-nodes']['get']['responses']['200']['content']['application/json'];
437
+ declare type ProjectMapNode = NonNullable<ProjectMapNodeGetResponse['nodes']>[0];
438
+ declare type ProjectMapNodeWithId = ProjectMapNode & Required<Pick<ProjectMapNode, 'id' | 'name'>>;
439
+ declare type ProjectMapGetRequest = paths['/api/v1/project-map']['get']['parameters']['query'];
440
+ declare type ProjectMapGetResponse = paths['/api/v1/project-map']['get']['responses']['200']['content']['application/json'];
441
+ declare type ProjectMapUpsertRequest = paths['/api/v1/project-map']['put']['requestBody']['content']['application/json'];
442
+ declare type ProjectMapDeleteRequest = paths['/api/v1/project-map']['delete']['requestBody']['content']['application/json'];
443
+ declare type ProjectMapDefinition = ProjectMapGetResponse['projectMaps'][0];
444
+ declare type ProjectMapDefinitionWithId = ProjectMapDefinition & Required<Pick<ProjectMapDefinition, 'id'>>;
445
+ declare type ProjectMapUpsertResponse = paths['/api/v1/project-map']['put']['responses']['200']['content']['application/json'];
446
+ declare type NodeType = 'placeholder' | 'composition' | 'redirect';
447
+ declare type ProjectMapDefinitions = {
448
+ projectMaps: ProjectMapDefinitionWithId[];
449
+ projectMapNodes: ProjectMapNodeWithProjectMapReference[];
450
+ };
451
+
452
+ declare const ROOT_NODE_PATH = "/";
453
+ declare type ProjectMapClientOptions = {
454
+ /** The Uniform API host to use. Internal use. */
455
+ apiHost?: string;
456
+ /** The Uniform API key to use when sending API requests. This or bearer token must be specified. */
457
+ apiKey?: string | undefined;
458
+ /** The Uniform bearer token to use. Internal use. */
459
+ bearerToken?: string | undefined;
460
+ /** Specify a fetch implementation to use when fetching data. Useful if you want to only polyfill selectively. */
461
+ fetch?: typeof fetch;
462
+ /** Specify whether caching is disabled. */
463
+ bypassCache?: boolean;
464
+ };
465
+ declare type ProjectMapSubtree = ProjectMapNode & {
466
+ children?: Array<ProjectMapSubtree> | undefined;
467
+ parent?: ProjectMapSubtree | undefined;
468
+ previousSibling?: ProjectMapSubtree | undefined;
469
+ nextSibling?: ProjectMapSubtree | undefined;
470
+ };
471
+ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
472
+ constructor(options: ProjectMapClientOptions);
473
+ fetchProjectMapDefinitions: (projectId: string) => Promise<{
474
+ projectMaps: {
475
+ id?: string | undefined;
476
+ name: string;
477
+ description?: string | undefined;
478
+ baseUrl?: string | undefined;
479
+ default?: boolean | undefined;
480
+ }[];
481
+ }>;
482
+ fetchProjectMapDefinition: (options: ProjectMapGetRequest) => Promise<{
483
+ projectMaps: {
484
+ id?: string | undefined;
485
+ name: string;
486
+ description?: string | undefined;
487
+ baseUrl?: string | undefined;
488
+ default?: boolean | undefined;
489
+ }[];
490
+ }>;
491
+ upsertProjectMap: (options: ProjectMapUpsertRequest) => Promise<string>;
492
+ deleteProjectMap: (options: ProjectMapDeleteRequest) => Promise<void>;
493
+ upsertProjectMapNodes: (options: ProjectMapNodeUpsertRequest) => Promise<void>;
494
+ deleteProjectMapNode: (options: ProjectMapNodeDeleteRequest) => Promise<void>;
495
+ fetchSubtree: (options: ProjectMapNodeGetRequest) => Promise<ProjectMapSubtree | undefined>;
496
+ fetchNodes: (options: ProjectMapNodeGetRequest) => Promise<ProjectMapNodeGetResponse>;
497
+ private cleanProjectMapNode;
498
+ private validatePath;
499
+ }
500
+ declare class UncachedProjectMapClient extends ProjectMapClient {
501
+ constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
502
+ }
503
+
504
+ export { NodeType, ProjectMapClient, ProjectMapClientOptions, ProjectMapDefinition, ProjectMapDefinitionWithId, ProjectMapDefinitions, ProjectMapDeleteRequest, ProjectMapGetRequest, ProjectMapGetResponse, ProjectMapNode, ProjectMapNodeDeleteRequest, ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapNodeUpsertRequest, ProjectMapNodeUpsertRequestNode, ProjectMapNodeWithId, ProjectMapSubtree, ProjectMapUpsertRequest, ProjectMapUpsertResponse, ROOT_NODE_PATH, UncachedProjectMapClient };
@@ -0,0 +1 @@
1
+ import{g as o,h as r,i as e}from"./chunk-46IGTGMO.mjs";export{r as ProjectMapClient,o as ROOT_NODE_PATH,e as UncachedProjectMapClient};
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=(a,p)=>{for(var e in p)j(a,e,{get:p[e],enumerable:!0})},y=(a,p,e,t)=>{if(p&&typeof p=="object"||typeof p=="function")for(let r of m(p))!N.call(a,r)&&r!==e&&j(a,r,{get:()=>p[r],enumerable:!(t=l(p,r))||t.enumerable});return a};var U=a=>y(j({},"__esModule",{value:!0}),a);var g={};R(g,{ProjectMapClient:()=>n,ROOT_NODE_PATH:()=>b,UncachedProjectMapClient:()=>h});module.exports=U(g);var P=require("@uniformdev/context/api"),b="/",n=class extends P.ApiClient{constructor(e){super(e);this.fetchProjectMapDefinitions=async e=>{let t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)};this.fetchProjectMapDefinition=async e=>{let t=this.createUrl("/api/v1/project-map",{...e,projectMapId:e.projectMapId});return await this.apiClient(t)};this.upsertProjectMap=async e=>{let t=this.createUrl("/api/v1/project-map");return(await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectMap:e.projectMap})})).projectMapId};this.deleteProjectMap=async e=>{let t=this.createUrl("/api/v1/project-map");await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectMapId:e.projectMapId}),expectNoContent:!0})};this.upsertProjectMapNodes=async e=>{let t=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(t,{method:"PUT",body:JSON.stringify({projectId:e.projectId,projectMapId:e.projectMapId,nodes:e.nodes.map(r=>({...r,node:{...this.cleanProjectMapNode(r.node)}}))}),expectNoContent:!0})};this.deleteProjectMapNode=async e=>{let t=this.createUrl("/api/v1/project-map-nodes");(!e.path||this.validatePath(e.path))&&await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectMapId:e.projectMapId}),expectNoContent:!0})};this.fetchSubtree=async e=>{var f;let t={};t.projectId=e.projectId,e.projectMapId&&(t.projectMapId=e.projectMapId),e.path&&this.validatePath(e.path)&&(t.path=e.path),e.depth&&(t.depth=e.depth.toString()),e.expanded&&(t.expanded="true"),t.tree="true";let r=this.createUrl("/api/v1/project-map-nodes",t),M={...(await this.apiClient(r)).tree},o=[M];for(;o&&o.length>0;){let i=o.pop(),s;(f=i==null?void 0:i.children)==null||f.forEach(c=>{c.parent=u(i),c.previousSibling=u(s),s&&(s.nextSibling=u(c)),s=c,o.push(c)})}return M};this.fetchNodes=async e=>{let t={};t.projectId=e.projectId,e.projectMapId&&(t.projectMapId=e.projectMapId),e.path&&this.validatePath(e.path)&&(t.path=e.path),e.id&&(t.id=e.id),e.limit&&(t.limit=e.limit.toString()),e.offset&&(t.offset=e.offset.toString()),e.expanded&&(t.expanded="true");let r=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(r)}}cleanProjectMapNode(e){var t,r,d;return{id:((d=(r=(t=e.id)==null?void 0:t.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:r.length)!=null?d:0)==1?e.id:void 0,path:e.path,name:e.name,type:e.type,compositionId:e.compositionId,description:e.description}}validatePath(e){let t=/[*%!&@]/g;if(e==null?void 0:e.match(t))throw"path cannot contain reserved characters * % ! & @";return!0}},h=class extends n{constructor(p){super({...p,bypassCache:!0})}},u=a=>a?{...a,parent:void 0,children:void 0}:void 0;0&&(module.exports={ProjectMapClient,ROOT_NODE_PATH,UncachedProjectMapClient});
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{g as o,h as r,i as e}from"./chunk-46IGTGMO.mjs";export{r as ProjectMapClient,o as ROOT_NODE_PATH,e as UncachedProjectMapClient};
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@uniformdev/project-map",
3
+ "version": "17.1.1-alpha.752+3e63e24bd",
4
+ "description": "Uniform Project Map",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "node": "./dist/index.mjs",
12
+ "default": "./dist/index.esm.js"
13
+ },
14
+ "require": "./dist/index.js"
15
+ },
16
+ "./cli": {
17
+ "types": "./dist/cli/cli.d.ts",
18
+ "import": "./dist/cli/cli.mjs",
19
+ "require": "./dist/cli/cli.js"
20
+ }
21
+ },
22
+ "types": "./dist/index.d.ts",
23
+ "typesVersions": {
24
+ "*": {
25
+ "*": [
26
+ "./dist/index.d.ts"
27
+ ],
28
+ "cli": [
29
+ "./dist/cli/cli.d.ts"
30
+ ]
31
+ }
32
+ },
33
+ "sideEffects": false,
34
+ "scripts": {
35
+ "build": "run-s update-openapi build:ts",
36
+ "build:ts": "tsup --minify",
37
+ "dev": "run-s update-openapi dev:ts",
38
+ "dev:ts": "tsup --watch",
39
+ "clean": "rimraf dist",
40
+ "test": "jest --maxWorkers=1 --passWithNoTests",
41
+ "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
42
+ "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
43
+ "update-openapi": "tsx ./scripts/update-openapi.cts"
44
+ },
45
+ "files": [
46
+ "/dist"
47
+ ],
48
+ "dependencies": {
49
+ "@uniformdev/canvas": "^17.1.1-alpha.752+3e63e24bd",
50
+ "@uniformdev/context": "^17.1.1-alpha.752+3e63e24bd",
51
+ "p-limit": "^3.1.0"
52
+ },
53
+ "devDependencies": {
54
+ "@types/yargs": "17.0.13",
55
+ "@uniformdev/cli": "^17.1.1-alpha.752+3e63e24bd",
56
+ "yargs": "17.6.0"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "gitHead": "3e63e24bdfe658b80cc14a2dbc84748694637c52"
62
+ }