@uniformdev/canvas 19.73.1-alpha.16 → 19.74.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.mts CHANGED
@@ -12887,7 +12887,9 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
12887
12887
  state: number;
12888
12888
  }[] | undefined;
12889
12889
  }>;
12890
- upsertContentType(body: ExceptProject<PutContentTypeBody>): Promise<void>;
12890
+ upsertContentType(body: ExceptProject<PutContentTypeBody>, opts?: {
12891
+ autogenerateDataTypes?: boolean;
12892
+ }): Promise<void>;
12891
12893
  upsertEntry(body: ExceptProject<PutEntryBody>): Promise<void>;
12892
12894
  deleteContentType(body: ExceptProject<DeleteContentTypeOptions>): Promise<void>;
12893
12895
  deleteEntry(body: ExceptProject<DeleteEntryOptions>): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -12887,7 +12887,9 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
12887
12887
  state: number;
12888
12888
  }[] | undefined;
12889
12889
  }>;
12890
- upsertContentType(body: ExceptProject<PutContentTypeBody>): Promise<void>;
12890
+ upsertContentType(body: ExceptProject<PutContentTypeBody>, opts?: {
12891
+ autogenerateDataTypes?: boolean;
12892
+ }): Promise<void>;
12891
12893
  upsertEntry(body: ExceptProject<PutEntryBody>): Promise<void>;
12892
12894
  deleteContentType(body: ExceptProject<DeleteContentTypeOptions>): Promise<void>;
12893
12895
  deleteEntry(body: ExceptProject<DeleteEntryOptions>): Promise<void>;
package/dist/index.esm.js CHANGED
@@ -717,12 +717,13 @@ var _ContentClient = class _ContentClient extends ApiClient4 {
717
717
  });
718
718
  return this.apiClient(historyUrl);
719
719
  }
720
- async upsertContentType(body) {
720
+ async upsertContentType(body, opts = {}) {
721
721
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
722
722
  await this.apiClient(fetchUri, {
723
723
  method: "PUT",
724
724
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
725
- expectNoContent: true
725
+ expectNoContent: true,
726
+ headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
726
727
  });
727
728
  }
728
729
  async upsertEntry(body) {
package/dist/index.js CHANGED
@@ -829,12 +829,13 @@ var _ContentClient = class _ContentClient extends import_api5.ApiClient {
829
829
  });
830
830
  return this.apiClient(historyUrl);
831
831
  }
832
- async upsertContentType(body) {
832
+ async upsertContentType(body, opts = {}) {
833
833
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
834
834
  await this.apiClient(fetchUri, {
835
835
  method: "PUT",
836
836
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
837
- expectNoContent: true
837
+ expectNoContent: true,
838
+ headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
838
839
  });
839
840
  }
840
841
  async upsertEntry(body) {
package/dist/index.mjs CHANGED
@@ -717,12 +717,13 @@ var _ContentClient = class _ContentClient extends ApiClient4 {
717
717
  });
718
718
  return this.apiClient(historyUrl);
719
719
  }
720
- async upsertContentType(body) {
720
+ async upsertContentType(body, opts = {}) {
721
721
  const fetchUri = this.createUrl(__privateGet(_ContentClient, _contentTypesUrl));
722
722
  await this.apiClient(fetchUri, {
723
723
  method: "PUT",
724
724
  body: JSON.stringify({ ...body, projectId: this.options.projectId }),
725
- expectNoContent: true
725
+ expectNoContent: true,
726
+ headers: opts.autogenerateDataTypes ? { "x-uniform-autogenerate-data-types": "true" } : {}
726
727
  });
727
728
  }
728
729
  async upsertEntry(body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.73.1-alpha.16+d0d8c8fcd",
3
+ "version": "19.74.0",
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.73.1-alpha.16+d0d8c8fcd",
42
- "@uniformdev/context": "19.73.1-alpha.16+d0d8c8fcd",
41
+ "@uniformdev/assets": "19.74.0",
42
+ "@uniformdev/context": "19.74.0",
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": "d0d8c8fcd1259f9366e9b36149d505fe83b0374d"
51
+ "gitHead": "05e1f526de0612799567580381c0201905cdecdd"
52
52
  }