@uniformdev/project-map 19.14.2-alpha.1 → 19.15.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/dist/index.d.ts CHANGED
@@ -548,6 +548,9 @@ type WithoutProjectId<T extends {
548
548
  }> = Omit<T, 'projectId'>;
549
549
  declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
550
550
  constructor(options: ProjectMapClientOptions);
551
+ /**
552
+ * Get available project map defintions
553
+ */
551
554
  getProjectMapDefinitions: () => Promise<{
552
555
  projectMaps: {
553
556
  id?: string | undefined;
@@ -557,6 +560,9 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
557
560
  default?: boolean | undefined;
558
561
  }[];
559
562
  }>;
563
+ /**
564
+ * Get specific project map definition
565
+ */
560
566
  getProjectMapDefinition: (options: WithoutProjectId<ProjectMapGetRequest>) => Promise<{
561
567
  projectMaps: {
562
568
  id?: string | undefined;
@@ -566,11 +572,29 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
566
572
  default?: boolean | undefined;
567
573
  }[];
568
574
  }>;
575
+ /**
576
+ * Update or insert a project map definition
577
+ */
569
578
  upsertProjectMap: (options: WithoutProjectId<ProjectMapUpsertRequest>) => Promise<string>;
579
+ /**
580
+ * Delete a project map definition
581
+ */
570
582
  deleteProjectMap: (options: WithoutProjectId<ProjectMapDeleteRequest>) => Promise<void>;
583
+ /**
584
+ * Update or insert a list of project map nodes
585
+ */
571
586
  upsertProjectMapNodes: (options: WithoutProjectId<ProjectMapNodeUpsertRequest>) => Promise<void>;
587
+ /**
588
+ * Delete a project map node
589
+ */
572
590
  deleteProjectMapNode: (options: WithoutProjectId<ProjectMapNodeDeleteRequest>) => Promise<void>;
591
+ /**
592
+ * Get a subtree of the project map tree returned in a tree format
593
+ */
573
594
  getSubtree: (options: WithoutProjectId<ProjectMapNodeGetRequest>) => Promise<ProjectMapSubtree | undefined>;
595
+ /**
596
+ * Get a subtree of the project map tree returned in a list format
597
+ */
574
598
  getNodes: (options: WithoutProjectId<ProjectMapNodeGetRequest>) => Promise<ProjectMapNodeGetResponse>;
575
599
  private setFetchOptions;
576
600
  private cleanProjectMapNode;
package/dist/index.esm.js CHANGED
@@ -27,11 +27,17 @@ var ROOT_NODE_PATH = "/";
27
27
  var ProjectMapClient = class extends ApiClient {
28
28
  constructor(options) {
29
29
  super(options);
30
+ /**
31
+ * Get available project map defintions
32
+ */
30
33
  this.getProjectMapDefinitions = async () => {
31
34
  const { projectId } = this.options;
32
35
  const fetchUri = this.createUrl("/api/v1/project-map", { projectId });
33
36
  return await this.apiClient(fetchUri);
34
37
  };
38
+ /**
39
+ * Get specific project map definition
40
+ */
35
41
  this.getProjectMapDefinition = async (options) => {
36
42
  const { projectId } = this.options;
37
43
  const fetchUri = this.createUrl("/api/v1/project-map", {
@@ -40,6 +46,9 @@ var ProjectMapClient = class extends ApiClient {
40
46
  });
41
47
  return await this.apiClient(fetchUri);
42
48
  };
49
+ /**
50
+ * Update or insert a project map definition
51
+ */
43
52
  this.upsertProjectMap = async (options) => {
44
53
  const { projectId } = this.options;
45
54
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -49,6 +58,9 @@ var ProjectMapClient = class extends ApiClient {
49
58
  });
50
59
  return result.projectMapId;
51
60
  };
61
+ /**
62
+ * Delete a project map definition
63
+ */
52
64
  this.deleteProjectMap = async (options) => {
53
65
  const { projectId } = this.options;
54
66
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -58,6 +70,9 @@ var ProjectMapClient = class extends ApiClient {
58
70
  expectNoContent: true
59
71
  });
60
72
  };
73
+ /**
74
+ * Update or insert a list of project map nodes
75
+ */
61
76
  this.upsertProjectMapNodes = async (options) => {
62
77
  const { projectId } = this.options;
63
78
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -76,6 +91,9 @@ var ProjectMapClient = class extends ApiClient {
76
91
  expectNoContent: true
77
92
  });
78
93
  };
94
+ /**
95
+ * Delete a project map node
96
+ */
79
97
  this.deleteProjectMapNode = async (options) => {
80
98
  const { projectId } = this.options;
81
99
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -88,6 +106,9 @@ var ProjectMapClient = class extends ApiClient {
88
106
  expectNoContent: true
89
107
  });
90
108
  };
109
+ /**
110
+ * Get a subtree of the project map tree returned in a tree format
111
+ */
91
112
  this.getSubtree = async (options) => {
92
113
  var _a;
93
114
  const fetchOptions = this.setFetchOptions(options);
@@ -113,6 +134,9 @@ var ProjectMapClient = class extends ApiClient {
113
134
  }
114
135
  return root;
115
136
  };
137
+ /**
138
+ * Get a subtree of the project map tree returned in a list format
139
+ */
116
140
  this.getNodes = async (options) => {
117
141
  const fetchOptions = this.setFetchOptions(options);
118
142
  const fetchUri = this.createUrl("/api/v1/project-map-nodes", fetchOptions);
package/dist/index.js CHANGED
@@ -55,11 +55,17 @@ var ROOT_NODE_PATH = "/";
55
55
  var ProjectMapClient = class extends import_api.ApiClient {
56
56
  constructor(options) {
57
57
  super(options);
58
+ /**
59
+ * Get available project map defintions
60
+ */
58
61
  this.getProjectMapDefinitions = async () => {
59
62
  const { projectId } = this.options;
60
63
  const fetchUri = this.createUrl("/api/v1/project-map", { projectId });
61
64
  return await this.apiClient(fetchUri);
62
65
  };
66
+ /**
67
+ * Get specific project map definition
68
+ */
63
69
  this.getProjectMapDefinition = async (options) => {
64
70
  const { projectId } = this.options;
65
71
  const fetchUri = this.createUrl("/api/v1/project-map", {
@@ -68,6 +74,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
68
74
  });
69
75
  return await this.apiClient(fetchUri);
70
76
  };
77
+ /**
78
+ * Update or insert a project map definition
79
+ */
71
80
  this.upsertProjectMap = async (options) => {
72
81
  const { projectId } = this.options;
73
82
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -77,6 +86,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
77
86
  });
78
87
  return result.projectMapId;
79
88
  };
89
+ /**
90
+ * Delete a project map definition
91
+ */
80
92
  this.deleteProjectMap = async (options) => {
81
93
  const { projectId } = this.options;
82
94
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -86,6 +98,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
86
98
  expectNoContent: true
87
99
  });
88
100
  };
101
+ /**
102
+ * Update or insert a list of project map nodes
103
+ */
89
104
  this.upsertProjectMapNodes = async (options) => {
90
105
  const { projectId } = this.options;
91
106
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -104,6 +119,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
104
119
  expectNoContent: true
105
120
  });
106
121
  };
122
+ /**
123
+ * Delete a project map node
124
+ */
107
125
  this.deleteProjectMapNode = async (options) => {
108
126
  const { projectId } = this.options;
109
127
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -116,6 +134,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
116
134
  expectNoContent: true
117
135
  });
118
136
  };
137
+ /**
138
+ * Get a subtree of the project map tree returned in a tree format
139
+ */
119
140
  this.getSubtree = async (options) => {
120
141
  var _a;
121
142
  const fetchOptions = this.setFetchOptions(options);
@@ -141,6 +162,9 @@ var ProjectMapClient = class extends import_api.ApiClient {
141
162
  }
142
163
  return root;
143
164
  };
165
+ /**
166
+ * Get a subtree of the project map tree returned in a list format
167
+ */
144
168
  this.getNodes = async (options) => {
145
169
  const fetchOptions = this.setFetchOptions(options);
146
170
  const fetchUri = this.createUrl("/api/v1/project-map-nodes", fetchOptions);
package/dist/index.mjs CHANGED
@@ -27,11 +27,17 @@ var ROOT_NODE_PATH = "/";
27
27
  var ProjectMapClient = class extends ApiClient {
28
28
  constructor(options) {
29
29
  super(options);
30
+ /**
31
+ * Get available project map defintions
32
+ */
30
33
  this.getProjectMapDefinitions = async () => {
31
34
  const { projectId } = this.options;
32
35
  const fetchUri = this.createUrl("/api/v1/project-map", { projectId });
33
36
  return await this.apiClient(fetchUri);
34
37
  };
38
+ /**
39
+ * Get specific project map definition
40
+ */
35
41
  this.getProjectMapDefinition = async (options) => {
36
42
  const { projectId } = this.options;
37
43
  const fetchUri = this.createUrl("/api/v1/project-map", {
@@ -40,6 +46,9 @@ var ProjectMapClient = class extends ApiClient {
40
46
  });
41
47
  return await this.apiClient(fetchUri);
42
48
  };
49
+ /**
50
+ * Update or insert a project map definition
51
+ */
43
52
  this.upsertProjectMap = async (options) => {
44
53
  const { projectId } = this.options;
45
54
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -49,6 +58,9 @@ var ProjectMapClient = class extends ApiClient {
49
58
  });
50
59
  return result.projectMapId;
51
60
  };
61
+ /**
62
+ * Delete a project map definition
63
+ */
52
64
  this.deleteProjectMap = async (options) => {
53
65
  const { projectId } = this.options;
54
66
  const fetchUri = this.createUrl("/api/v1/project-map");
@@ -58,6 +70,9 @@ var ProjectMapClient = class extends ApiClient {
58
70
  expectNoContent: true
59
71
  });
60
72
  };
73
+ /**
74
+ * Update or insert a list of project map nodes
75
+ */
61
76
  this.upsertProjectMapNodes = async (options) => {
62
77
  const { projectId } = this.options;
63
78
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -76,6 +91,9 @@ var ProjectMapClient = class extends ApiClient {
76
91
  expectNoContent: true
77
92
  });
78
93
  };
94
+ /**
95
+ * Delete a project map node
96
+ */
79
97
  this.deleteProjectMapNode = async (options) => {
80
98
  const { projectId } = this.options;
81
99
  const fetchUri = this.createUrl("/api/v1/project-map-nodes");
@@ -88,6 +106,9 @@ var ProjectMapClient = class extends ApiClient {
88
106
  expectNoContent: true
89
107
  });
90
108
  };
109
+ /**
110
+ * Get a subtree of the project map tree returned in a tree format
111
+ */
91
112
  this.getSubtree = async (options) => {
92
113
  var _a;
93
114
  const fetchOptions = this.setFetchOptions(options);
@@ -113,6 +134,9 @@ var ProjectMapClient = class extends ApiClient {
113
134
  }
114
135
  return root;
115
136
  };
137
+ /**
138
+ * Get a subtree of the project map tree returned in a list format
139
+ */
116
140
  this.getNodes = async (options) => {
117
141
  const fetchOptions = this.setFetchOptions(options);
118
142
  const fetchUri = this.createUrl("/api/v1/project-map-nodes", fetchOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "19.14.2-alpha.1+1a0bb3525",
3
+ "version": "19.15.0",
4
4
  "description": "Uniform Project Map",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -32,11 +32,11 @@
32
32
  "/dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@uniformdev/canvas": "19.14.2-alpha.1+1a0bb3525",
36
- "@uniformdev/context": "19.14.2-alpha.1+1a0bb3525"
35
+ "@uniformdev/canvas": "19.15.0",
36
+ "@uniformdev/context": "19.15.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "1a0bb3525e8302e4b294f101812f195c0e5f7f26"
41
+ "gitHead": "f48353eea4cf921b6c9878c007de12a9da2ab885"
42
42
  }