@uniformdev/assets 20.50.2-alpha.167 → 20.50.2-alpha.180

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
@@ -764,11 +764,9 @@ interface components$1 {
764
764
  versionId: string;
765
765
  /** @description The timestamp when the version was created in epoch milliseconds */
766
766
  timestamp: number;
767
- /** @description The name (full name) of the user who created the version, or "Unknown user" if the author can no longer be resolved */
767
+ /** @description The name (full name) of the user who created the version */
768
768
  authorName: string;
769
769
  authorIsApiKey: boolean;
770
- /** @description The identity who created the version; absent on old history entries. */
771
- authorSubject?: string;
772
770
  /** @description The state of the entity when the history entry was made */
773
771
  state: number;
774
772
  };
@@ -1759,20 +1757,9 @@ declare class AssetClient extends ApiClient {
1759
1757
  get(options: WithoutProjectId<AssetGetRequestList> & {
1760
1758
  filters?: Record<string, unknown>;
1761
1759
  }): Promise<AssetGetResponseList>;
1762
- /**
1763
- * Fetches a list of assets
1764
- */
1765
- list(options?: WithoutProjectId<AssetGetRequestList> & {
1766
- filters?: Record<string, unknown>;
1767
- }): Promise<AssetGetResponseList>;
1768
- save(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
1769
- /** @deprecated Use {@link save} instead. */
1770
1760
  upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
1771
- remove(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
1772
- /** @deprecated Use {@link remove} instead. */
1773
1761
  delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
1774
1762
  }
1775
- /** @deprecated Pass `bypassCache: true` to {@link AssetClient} instead. */
1776
1763
  declare class UncachedAssetClient extends AssetClient {
1777
1764
  constructor(options: Omit<ClientOptions & {
1778
1765
  projectId: NonNullable<ClientOptions['projectId']>;
package/dist/index.d.ts CHANGED
@@ -764,11 +764,9 @@ interface components$1 {
764
764
  versionId: string;
765
765
  /** @description The timestamp when the version was created in epoch milliseconds */
766
766
  timestamp: number;
767
- /** @description The name (full name) of the user who created the version, or "Unknown user" if the author can no longer be resolved */
767
+ /** @description The name (full name) of the user who created the version */
768
768
  authorName: string;
769
769
  authorIsApiKey: boolean;
770
- /** @description The identity who created the version; absent on old history entries. */
771
- authorSubject?: string;
772
770
  /** @description The state of the entity when the history entry was made */
773
771
  state: number;
774
772
  };
@@ -1759,20 +1757,9 @@ declare class AssetClient extends ApiClient {
1759
1757
  get(options: WithoutProjectId<AssetGetRequestList> & {
1760
1758
  filters?: Record<string, unknown>;
1761
1759
  }): Promise<AssetGetResponseList>;
1762
- /**
1763
- * Fetches a list of assets
1764
- */
1765
- list(options?: WithoutProjectId<AssetGetRequestList> & {
1766
- filters?: Record<string, unknown>;
1767
- }): Promise<AssetGetResponseList>;
1768
- save(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
1769
- /** @deprecated Use {@link save} instead. */
1770
1760
  upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
1771
- remove(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
1772
- /** @deprecated Use {@link remove} instead. */
1773
1761
  delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
1774
1762
  }
1775
- /** @deprecated Pass `bypassCache: true` to {@link AssetClient} instead. */
1776
1763
  declare class UncachedAssetClient extends AssetClient {
1777
1764
  constructor(options: Omit<ClientOptions & {
1778
1765
  projectId: NonNullable<ClientOptions['projectId']>;
package/dist/index.esm.js CHANGED
@@ -16,21 +16,7 @@ var AssetClient = class extends ApiClient {
16
16
  });
17
17
  return this.apiClient(fetchUri);
18
18
  }
19
- /**
20
- * Fetches a list of assets
21
- */
22
- async list(options = {}) {
23
- const { projectId } = this.options;
24
- const { filters, ...params } = options;
25
- const rewrittenFilters = rewriteFiltersForApi(filters);
26
- const fetchUri = this.createUrl(ASSET_BASE_PATH, {
27
- ...params,
28
- projectId,
29
- ...rewrittenFilters
30
- });
31
- return this.apiClient(fetchUri);
32
- }
33
- async save(options) {
19
+ async upsert(options) {
34
20
  const { projectId } = this.options;
35
21
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
36
22
  await this.apiClient(fetchUri, {
@@ -39,11 +25,7 @@ var AssetClient = class extends ApiClient {
39
25
  expectNoContent: true
40
26
  });
41
27
  }
42
- /** @deprecated Use {@link save} instead. */
43
- async upsert(options) {
44
- return this.save(options);
45
- }
46
- async remove(options) {
28
+ async delete(options) {
47
29
  const { projectId } = this.options;
48
30
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
49
31
  await this.apiClient(fetchUri, {
@@ -52,10 +34,6 @@ var AssetClient = class extends ApiClient {
52
34
  expectNoContent: true
53
35
  });
54
36
  }
55
- /** @deprecated Use {@link remove} instead. */
56
- async delete(options) {
57
- return this.remove(options);
58
- }
59
37
  };
60
38
  var UncachedAssetClient = class extends AssetClient {
61
39
  constructor(options) {
package/dist/index.js CHANGED
@@ -47,21 +47,7 @@ var AssetClient = class extends import_api.ApiClient {
47
47
  });
48
48
  return this.apiClient(fetchUri);
49
49
  }
50
- /**
51
- * Fetches a list of assets
52
- */
53
- async list(options = {}) {
54
- const { projectId } = this.options;
55
- const { filters, ...params } = options;
56
- const rewrittenFilters = (0, import_api.rewriteFiltersForApi)(filters);
57
- const fetchUri = this.createUrl(ASSET_BASE_PATH, {
58
- ...params,
59
- projectId,
60
- ...rewrittenFilters
61
- });
62
- return this.apiClient(fetchUri);
63
- }
64
- async save(options) {
50
+ async upsert(options) {
65
51
  const { projectId } = this.options;
66
52
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
67
53
  await this.apiClient(fetchUri, {
@@ -70,11 +56,7 @@ var AssetClient = class extends import_api.ApiClient {
70
56
  expectNoContent: true
71
57
  });
72
58
  }
73
- /** @deprecated Use {@link save} instead. */
74
- async upsert(options) {
75
- return this.save(options);
76
- }
77
- async remove(options) {
59
+ async delete(options) {
78
60
  const { projectId } = this.options;
79
61
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
80
62
  await this.apiClient(fetchUri, {
@@ -83,10 +65,6 @@ var AssetClient = class extends import_api.ApiClient {
83
65
  expectNoContent: true
84
66
  });
85
67
  }
86
- /** @deprecated Use {@link remove} instead. */
87
- async delete(options) {
88
- return this.remove(options);
89
- }
90
68
  };
91
69
  var UncachedAssetClient = class extends AssetClient {
92
70
  constructor(options) {
package/dist/index.mjs CHANGED
@@ -16,21 +16,7 @@ var AssetClient = class extends ApiClient {
16
16
  });
17
17
  return this.apiClient(fetchUri);
18
18
  }
19
- /**
20
- * Fetches a list of assets
21
- */
22
- async list(options = {}) {
23
- const { projectId } = this.options;
24
- const { filters, ...params } = options;
25
- const rewrittenFilters = rewriteFiltersForApi(filters);
26
- const fetchUri = this.createUrl(ASSET_BASE_PATH, {
27
- ...params,
28
- projectId,
29
- ...rewrittenFilters
30
- });
31
- return this.apiClient(fetchUri);
32
- }
33
- async save(options) {
19
+ async upsert(options) {
34
20
  const { projectId } = this.options;
35
21
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
36
22
  await this.apiClient(fetchUri, {
@@ -39,11 +25,7 @@ var AssetClient = class extends ApiClient {
39
25
  expectNoContent: true
40
26
  });
41
27
  }
42
- /** @deprecated Use {@link save} instead. */
43
- async upsert(options) {
44
- return this.save(options);
45
- }
46
- async remove(options) {
28
+ async delete(options) {
47
29
  const { projectId } = this.options;
48
30
  const fetchUri = this.createUrl(ASSET_BASE_PATH);
49
31
  await this.apiClient(fetchUri, {
@@ -52,10 +34,6 @@ var AssetClient = class extends ApiClient {
52
34
  expectNoContent: true
53
35
  });
54
36
  }
55
- /** @deprecated Use {@link remove} instead. */
56
- async delete(options) {
57
- return this.remove(options);
58
- }
59
37
  };
60
38
  var UncachedAssetClient = class extends AssetClient {
61
39
  constructor(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/assets",
3
- "version": "20.50.2-alpha.167+74e60d5bb7",
3
+ "version": "20.50.2-alpha.180+0be2307590",
4
4
  "description": "Uniform Assets",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,11 +36,11 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/context": "20.50.2-alpha.167+74e60d5bb7",
40
- "@uniformdev/files": "20.50.2-alpha.167+74e60d5bb7"
39
+ "@uniformdev/context": "20.50.2-alpha.180+0be2307590",
40
+ "@uniformdev/files": "20.50.2-alpha.180+0be2307590"
41
41
  },
42
42
  "devDependencies": {
43
43
  "ts-xor": "^1.3.0"
44
44
  },
45
- "gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
45
+ "gitHead": "0be23075901a6fd0acd8166a2bea65fbd5589789"
46
46
  }