@uniformdev/assets 19.76.0 → 19.77.1-alpha.47

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.mts CHANGED
@@ -139,50 +139,52 @@ interface components {
139
139
  _name?: string;
140
140
  /** @description Name of the author of the most recent change. */
141
141
  _author?: string;
142
- title?: {
143
- value: string;
144
- /** @constant */
145
- type: "text";
146
- };
147
- description?: {
148
- value: string;
149
- /** @constant */
150
- type: "text";
151
- };
152
- file?: {
153
- /** Format: uuid */
154
- value: string;
155
- /** @constant */
156
- type: "file";
157
- };
158
- mediaType?: {
159
- value: string;
160
- /** @constant */
161
- type: "text";
162
- };
163
- url?: {
164
- value: string;
165
- /** @constant */
166
- type: "text";
167
- };
168
- size?: {
169
- value: number;
170
- /** @constant */
171
- type: "number";
172
- };
173
- width?: {
174
- value: number;
175
- /** @constant */
176
- type: "number";
177
- };
178
- height?: {
179
- value: number;
180
- /** @constant */
181
- type: "number";
182
- };
183
- /** @description Asset field values. */
184
- custom?: {
185
- [key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
142
+ fields?: {
143
+ title?: {
144
+ value: string;
145
+ /** @constant */
146
+ type: "text";
147
+ };
148
+ description?: {
149
+ value: string;
150
+ /** @constant */
151
+ type: "text";
152
+ };
153
+ file?: {
154
+ /** Format: uuid */
155
+ value: string;
156
+ /** @constant */
157
+ type: "file";
158
+ };
159
+ mediaType?: {
160
+ value: string;
161
+ /** @constant */
162
+ type: "text";
163
+ };
164
+ url?: {
165
+ value: string;
166
+ /** @constant */
167
+ type: "text";
168
+ };
169
+ size?: {
170
+ value: number;
171
+ /** @constant */
172
+ type: "number";
173
+ };
174
+ width?: {
175
+ value: number;
176
+ /** @constant */
177
+ type: "number";
178
+ };
179
+ height?: {
180
+ value: number;
181
+ /** @constant */
182
+ type: "number";
183
+ };
184
+ /** @description Asset field values. */
185
+ custom?: {
186
+ [key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
187
+ };
186
188
  };
187
189
  _dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
188
190
  };
@@ -197,21 +199,23 @@ interface components {
197
199
  _id?: string;
198
200
  /** @description The internal name of the asset. */
199
201
  _name?: string;
200
- title?: {
201
- value: string;
202
- /** @constant */
203
- type: "text";
204
- };
205
- description?: {
206
- value: string;
207
- /** @constant */
208
- type: "text";
209
- };
210
- file?: {
211
- /** Format: uuid */
212
- value: string;
213
- /** @constant */
214
- type: "file";
202
+ fields?: {
203
+ title?: {
204
+ value: string;
205
+ /** @constant */
206
+ type: "text";
207
+ };
208
+ description?: {
209
+ value: string;
210
+ /** @constant */
211
+ type: "text";
212
+ };
213
+ file?: {
214
+ /** Format: uuid */
215
+ value: string;
216
+ /** @constant */
217
+ type: "file";
218
+ };
215
219
  };
216
220
  _dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
217
221
  };
package/dist/index.d.ts CHANGED
@@ -139,50 +139,52 @@ interface components {
139
139
  _name?: string;
140
140
  /** @description Name of the author of the most recent change. */
141
141
  _author?: string;
142
- title?: {
143
- value: string;
144
- /** @constant */
145
- type: "text";
146
- };
147
- description?: {
148
- value: string;
149
- /** @constant */
150
- type: "text";
151
- };
152
- file?: {
153
- /** Format: uuid */
154
- value: string;
155
- /** @constant */
156
- type: "file";
157
- };
158
- mediaType?: {
159
- value: string;
160
- /** @constant */
161
- type: "text";
162
- };
163
- url?: {
164
- value: string;
165
- /** @constant */
166
- type: "text";
167
- };
168
- size?: {
169
- value: number;
170
- /** @constant */
171
- type: "number";
172
- };
173
- width?: {
174
- value: number;
175
- /** @constant */
176
- type: "number";
177
- };
178
- height?: {
179
- value: number;
180
- /** @constant */
181
- type: "number";
182
- };
183
- /** @description Asset field values. */
184
- custom?: {
185
- [key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
142
+ fields?: {
143
+ title?: {
144
+ value: string;
145
+ /** @constant */
146
+ type: "text";
147
+ };
148
+ description?: {
149
+ value: string;
150
+ /** @constant */
151
+ type: "text";
152
+ };
153
+ file?: {
154
+ /** Format: uuid */
155
+ value: string;
156
+ /** @constant */
157
+ type: "file";
158
+ };
159
+ mediaType?: {
160
+ value: string;
161
+ /** @constant */
162
+ type: "text";
163
+ };
164
+ url?: {
165
+ value: string;
166
+ /** @constant */
167
+ type: "text";
168
+ };
169
+ size?: {
170
+ value: number;
171
+ /** @constant */
172
+ type: "number";
173
+ };
174
+ width?: {
175
+ value: number;
176
+ /** @constant */
177
+ type: "number";
178
+ };
179
+ height?: {
180
+ value: number;
181
+ /** @constant */
182
+ type: "number";
183
+ };
184
+ /** @description Asset field values. */
185
+ custom?: {
186
+ [key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
187
+ };
186
188
  };
187
189
  _dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
188
190
  };
@@ -197,21 +199,23 @@ interface components {
197
199
  _id?: string;
198
200
  /** @description The internal name of the asset. */
199
201
  _name?: string;
200
- title?: {
201
- value: string;
202
- /** @constant */
203
- type: "text";
204
- };
205
- description?: {
206
- value: string;
207
- /** @constant */
208
- type: "text";
209
- };
210
- file?: {
211
- /** Format: uuid */
212
- value: string;
213
- /** @constant */
214
- type: "file";
202
+ fields?: {
203
+ title?: {
204
+ value: string;
205
+ /** @constant */
206
+ type: "text";
207
+ };
208
+ description?: {
209
+ value: string;
210
+ /** @constant */
211
+ type: "text";
212
+ };
213
+ file?: {
214
+ /** Format: uuid */
215
+ value: string;
216
+ /** @constant */
217
+ type: "file";
218
+ };
215
219
  };
216
220
  _dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
217
221
  };
package/dist/index.esm.js CHANGED
@@ -40,15 +40,18 @@ var UncachedAssetClient = class extends AssetClient {
40
40
 
41
41
  // src/utils/assetConverter.ts
42
42
  function convertAssetToPutAsset(asset) {
43
+ var _a, _b, _c;
43
44
  return {
44
45
  asset: {
45
46
  _id: asset.asset._id,
46
47
  _dataResources: asset.asset._dataResources,
47
48
  _name: asset.asset._name,
48
49
  type: asset.asset.type,
49
- title: asset.asset.title,
50
- description: asset.asset.description,
51
- file: asset.asset.file
50
+ fields: {
51
+ title: (_a = asset.asset.fields) == null ? void 0 : _a.title,
52
+ description: (_b = asset.asset.fields) == null ? void 0 : _b.description,
53
+ file: (_c = asset.asset.fields) == null ? void 0 : _c.file
54
+ }
52
55
  },
53
56
  projectId: asset.projectId
54
57
  };
package/dist/index.js CHANGED
@@ -68,15 +68,18 @@ var UncachedAssetClient = class extends AssetClient {
68
68
 
69
69
  // src/utils/assetConverter.ts
70
70
  function convertAssetToPutAsset(asset) {
71
+ var _a, _b, _c;
71
72
  return {
72
73
  asset: {
73
74
  _id: asset.asset._id,
74
75
  _dataResources: asset.asset._dataResources,
75
76
  _name: asset.asset._name,
76
77
  type: asset.asset.type,
77
- title: asset.asset.title,
78
- description: asset.asset.description,
79
- file: asset.asset.file
78
+ fields: {
79
+ title: (_a = asset.asset.fields) == null ? void 0 : _a.title,
80
+ description: (_b = asset.asset.fields) == null ? void 0 : _b.description,
81
+ file: (_c = asset.asset.fields) == null ? void 0 : _c.file
82
+ }
80
83
  },
81
84
  projectId: asset.projectId
82
85
  };
package/dist/index.mjs CHANGED
@@ -40,15 +40,18 @@ var UncachedAssetClient = class extends AssetClient {
40
40
 
41
41
  // src/utils/assetConverter.ts
42
42
  function convertAssetToPutAsset(asset) {
43
+ var _a, _b, _c;
43
44
  return {
44
45
  asset: {
45
46
  _id: asset.asset._id,
46
47
  _dataResources: asset.asset._dataResources,
47
48
  _name: asset.asset._name,
48
49
  type: asset.asset.type,
49
- title: asset.asset.title,
50
- description: asset.asset.description,
51
- file: asset.asset.file
50
+ fields: {
51
+ title: (_a = asset.asset.fields) == null ? void 0 : _a.title,
52
+ description: (_b = asset.asset.fields) == null ? void 0 : _b.description,
53
+ file: (_c = asset.asset.fields) == null ? void 0 : _c.file
54
+ }
52
55
  },
53
56
  projectId: asset.projectId
54
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/assets",
3
- "version": "19.76.0",
3
+ "version": "19.77.1-alpha.47+d5775ab2f",
4
4
  "description": "Uniform Assets",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/context": "19.76.0"
39
+ "@uniformdev/context": "19.77.1-alpha.47+d5775ab2f"
40
40
  },
41
- "gitHead": "68c676df4588906359e10e58f9394f3de70098ba"
41
+ "gitHead": "d5775ab2fc5faed1f7c7631e7aa5b3489c207435"
42
42
  }