@uniformdev/canvas 19.55.2-alpha.54 → 19.55.2-alpha.60

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.esm.js CHANGED
@@ -2097,27 +2097,20 @@ function subscribeToComposition({
2097
2097
 
2098
2098
  // src/PromptClient.ts
2099
2099
  import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2100
- var PromptUrl = "/api/v1/prompt";
2101
2100
  var PromptsUrl = "/api/v1/prompts";
2102
2101
  var PromptClient = class extends ApiClient7 {
2103
2102
  constructor(options) {
2104
2103
  super(options);
2105
2104
  }
2106
- /** Fetches all Prompts for a project */
2105
+ /** Fetches Prompts for a project */
2107
2106
  async get(options) {
2108
- const { projectId } = this.options;
2109
- const fetchUri = this.createUrl(PromptUrl, { ...options, projectId });
2110
- return await this.apiClient(fetchUri);
2111
- }
2112
- /** Fetches all Prompts for a project */
2113
- async getList(options) {
2114
2107
  const { projectId } = this.options;
2115
2108
  const fetchUri = this.createUrl(PromptsUrl, { ...options, projectId });
2116
2109
  return await this.apiClient(fetchUri);
2117
2110
  }
2118
2111
  /** Updates or creates (based on id) a Prompt */
2119
2112
  async upsert(body) {
2120
- const fetchUri = this.createUrl(PromptUrl);
2113
+ const fetchUri = this.createUrl(PromptsUrl);
2121
2114
  await this.apiClient(fetchUri, {
2122
2115
  method: "PUT",
2123
2116
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2126,7 +2119,7 @@ var PromptClient = class extends ApiClient7 {
2126
2119
  }
2127
2120
  /** Deletes a Prompt */
2128
2121
  async remove(body) {
2129
- const fetchUri = this.createUrl(PromptUrl);
2122
+ const fetchUri = this.createUrl(PromptsUrl);
2130
2123
  await this.apiClient(fetchUri, {
2131
2124
  method: "DELETE",
2132
2125
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/dist/index.js CHANGED
@@ -2209,27 +2209,20 @@ function subscribeToComposition({
2209
2209
 
2210
2210
  // src/PromptClient.ts
2211
2211
  var import_api8 = require("@uniformdev/context/api");
2212
- var PromptUrl = "/api/v1/prompt";
2213
2212
  var PromptsUrl = "/api/v1/prompts";
2214
2213
  var PromptClient = class extends import_api8.ApiClient {
2215
2214
  constructor(options) {
2216
2215
  super(options);
2217
2216
  }
2218
- /** Fetches all Prompts for a project */
2217
+ /** Fetches Prompts for a project */
2219
2218
  async get(options) {
2220
- const { projectId } = this.options;
2221
- const fetchUri = this.createUrl(PromptUrl, { ...options, projectId });
2222
- return await this.apiClient(fetchUri);
2223
- }
2224
- /** Fetches all Prompts for a project */
2225
- async getList(options) {
2226
2219
  const { projectId } = this.options;
2227
2220
  const fetchUri = this.createUrl(PromptsUrl, { ...options, projectId });
2228
2221
  return await this.apiClient(fetchUri);
2229
2222
  }
2230
2223
  /** Updates or creates (based on id) a Prompt */
2231
2224
  async upsert(body) {
2232
- const fetchUri = this.createUrl(PromptUrl);
2225
+ const fetchUri = this.createUrl(PromptsUrl);
2233
2226
  await this.apiClient(fetchUri, {
2234
2227
  method: "PUT",
2235
2228
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2238,7 +2231,7 @@ var PromptClient = class extends import_api8.ApiClient {
2238
2231
  }
2239
2232
  /** Deletes a Prompt */
2240
2233
  async remove(body) {
2241
- const fetchUri = this.createUrl(PromptUrl);
2234
+ const fetchUri = this.createUrl(PromptsUrl);
2242
2235
  await this.apiClient(fetchUri, {
2243
2236
  method: "DELETE",
2244
2237
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/dist/index.mjs CHANGED
@@ -2097,27 +2097,20 @@ function subscribeToComposition({
2097
2097
 
2098
2098
  // src/PromptClient.ts
2099
2099
  import { ApiClient as ApiClient7 } from "@uniformdev/context/api";
2100
- var PromptUrl = "/api/v1/prompt";
2101
2100
  var PromptsUrl = "/api/v1/prompts";
2102
2101
  var PromptClient = class extends ApiClient7 {
2103
2102
  constructor(options) {
2104
2103
  super(options);
2105
2104
  }
2106
- /** Fetches all Prompts for a project */
2105
+ /** Fetches Prompts for a project */
2107
2106
  async get(options) {
2108
- const { projectId } = this.options;
2109
- const fetchUri = this.createUrl(PromptUrl, { ...options, projectId });
2110
- return await this.apiClient(fetchUri);
2111
- }
2112
- /** Fetches all Prompts for a project */
2113
- async getList(options) {
2114
2107
  const { projectId } = this.options;
2115
2108
  const fetchUri = this.createUrl(PromptsUrl, { ...options, projectId });
2116
2109
  return await this.apiClient(fetchUri);
2117
2110
  }
2118
2111
  /** Updates or creates (based on id) a Prompt */
2119
2112
  async upsert(body) {
2120
- const fetchUri = this.createUrl(PromptUrl);
2113
+ const fetchUri = this.createUrl(PromptsUrl);
2121
2114
  await this.apiClient(fetchUri, {
2122
2115
  method: "PUT",
2123
2116
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
@@ -2126,7 +2119,7 @@ var PromptClient = class extends ApiClient7 {
2126
2119
  }
2127
2120
  /** Deletes a Prompt */
2128
2121
  async remove(body) {
2129
- const fetchUri = this.createUrl(PromptUrl);
2122
+ const fetchUri = this.createUrl(PromptsUrl);
2130
2123
  await this.apiClient(fetchUri, {
2131
2124
  method: "DELETE",
2132
2125
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.55.2-alpha.54+5c0508742",
3
+ "version": "19.55.2-alpha.60+f5039d327",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.55.2-alpha.54+5c0508742",
42
- "@uniformdev/context": "19.55.2-alpha.54+5c0508742",
41
+ "@uniformdev/assets": "19.55.2-alpha.60+f5039d327",
42
+ "@uniformdev/context": "19.55.2-alpha.60+f5039d327",
43
43
  "immer": "9.0.21"
44
44
  },
45
45
  "files": [
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "5c0508742475c257e8e24003c4515dd06252045b"
51
+ "gitHead": "f5039d327b25d3ea6334791fb8e3a4ccdb6bc6da"
52
52
  }