@uniformdev/assets 20.74.6-alpha.3 → 20.74.7-alpha.12
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 +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.esm.js +24 -2
- package/dist/index.js +24 -2
- package/dist/index.mjs +24 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -764,9 +764,11 @@ 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 */
|
|
767
|
+
/** @description The name (full name) of the user who created the version, or "Unknown user" if the author can no longer be resolved */
|
|
768
768
|
authorName: string;
|
|
769
769
|
authorIsApiKey: boolean;
|
|
770
|
+
/** @description The identity who created the version; absent on old history entries. */
|
|
771
|
+
authorSubject?: string;
|
|
770
772
|
/** @description The state of the entity when the history entry was made */
|
|
771
773
|
state: number;
|
|
772
774
|
};
|
|
@@ -1844,9 +1846,20 @@ declare class AssetClient extends ApiClient {
|
|
|
1844
1846
|
get(options: WithoutProjectId<AssetGetRequestList> & {
|
|
1845
1847
|
filters?: Record<string, unknown>;
|
|
1846
1848
|
}): Promise<AssetGetResponseList>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Fetches a list of assets
|
|
1851
|
+
*/
|
|
1852
|
+
list(options?: WithoutProjectId<AssetGetRequestList> & {
|
|
1853
|
+
filters?: Record<string, unknown>;
|
|
1854
|
+
}): Promise<AssetGetResponseList>;
|
|
1855
|
+
save(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1856
|
+
/** @deprecated Use {@link save} instead. */
|
|
1847
1857
|
upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1858
|
+
remove(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1859
|
+
/** @deprecated Use {@link remove} instead. */
|
|
1848
1860
|
delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1849
1861
|
}
|
|
1862
|
+
/** @deprecated Pass `bypassCache: true` to {@link AssetClient} instead. */
|
|
1850
1863
|
declare class UncachedAssetClient extends AssetClient {
|
|
1851
1864
|
constructor(options: Omit<ClientOptions & {
|
|
1852
1865
|
projectId: NonNullable<ClientOptions['projectId']>;
|
package/dist/index.d.ts
CHANGED
|
@@ -764,9 +764,11 @@ 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 */
|
|
767
|
+
/** @description The name (full name) of the user who created the version, or "Unknown user" if the author can no longer be resolved */
|
|
768
768
|
authorName: string;
|
|
769
769
|
authorIsApiKey: boolean;
|
|
770
|
+
/** @description The identity who created the version; absent on old history entries. */
|
|
771
|
+
authorSubject?: string;
|
|
770
772
|
/** @description The state of the entity when the history entry was made */
|
|
771
773
|
state: number;
|
|
772
774
|
};
|
|
@@ -1844,9 +1846,20 @@ declare class AssetClient extends ApiClient {
|
|
|
1844
1846
|
get(options: WithoutProjectId<AssetGetRequestList> & {
|
|
1845
1847
|
filters?: Record<string, unknown>;
|
|
1846
1848
|
}): Promise<AssetGetResponseList>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Fetches a list of assets
|
|
1851
|
+
*/
|
|
1852
|
+
list(options?: WithoutProjectId<AssetGetRequestList> & {
|
|
1853
|
+
filters?: Record<string, unknown>;
|
|
1854
|
+
}): Promise<AssetGetResponseList>;
|
|
1855
|
+
save(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1856
|
+
/** @deprecated Use {@link save} instead. */
|
|
1847
1857
|
upsert(options: WithoutProjectId<AssetUpsertRequest>): Promise<void>;
|
|
1858
|
+
remove(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1859
|
+
/** @deprecated Use {@link remove} instead. */
|
|
1848
1860
|
delete(options: WithoutProjectId<AssetDeleteRequest>): Promise<void>;
|
|
1849
1861
|
}
|
|
1862
|
+
/** @deprecated Pass `bypassCache: true` to {@link AssetClient} instead. */
|
|
1850
1863
|
declare class UncachedAssetClient extends AssetClient {
|
|
1851
1864
|
constructor(options: Omit<ClientOptions & {
|
|
1852
1865
|
projectId: NonNullable<ClientOptions['projectId']>;
|
package/dist/index.esm.js
CHANGED
|
@@ -16,7 +16,21 @@ var AssetClient = class extends ApiClient {
|
|
|
16
16
|
});
|
|
17
17
|
return this.apiClient(fetchUri);
|
|
18
18
|
}
|
|
19
|
-
|
|
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) {
|
|
20
34
|
const { projectId } = this.options;
|
|
21
35
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
22
36
|
await this.apiClient(fetchUri, {
|
|
@@ -25,7 +39,11 @@ var AssetClient = class extends ApiClient {
|
|
|
25
39
|
expectNoContent: true
|
|
26
40
|
});
|
|
27
41
|
}
|
|
28
|
-
|
|
42
|
+
/** @deprecated Use {@link save} instead. */
|
|
43
|
+
async upsert(options) {
|
|
44
|
+
return this.save(options);
|
|
45
|
+
}
|
|
46
|
+
async remove(options) {
|
|
29
47
|
const { projectId } = this.options;
|
|
30
48
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
31
49
|
await this.apiClient(fetchUri, {
|
|
@@ -34,6 +52,10 @@ var AssetClient = class extends ApiClient {
|
|
|
34
52
|
expectNoContent: true
|
|
35
53
|
});
|
|
36
54
|
}
|
|
55
|
+
/** @deprecated Use {@link remove} instead. */
|
|
56
|
+
async delete(options) {
|
|
57
|
+
return this.remove(options);
|
|
58
|
+
}
|
|
37
59
|
};
|
|
38
60
|
var UncachedAssetClient = class extends AssetClient {
|
|
39
61
|
constructor(options) {
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,21 @@ var AssetClient = class extends import_api.ApiClient {
|
|
|
47
47
|
});
|
|
48
48
|
return this.apiClient(fetchUri);
|
|
49
49
|
}
|
|
50
|
-
|
|
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) {
|
|
51
65
|
const { projectId } = this.options;
|
|
52
66
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
53
67
|
await this.apiClient(fetchUri, {
|
|
@@ -56,7 +70,11 @@ var AssetClient = class extends import_api.ApiClient {
|
|
|
56
70
|
expectNoContent: true
|
|
57
71
|
});
|
|
58
72
|
}
|
|
59
|
-
|
|
73
|
+
/** @deprecated Use {@link save} instead. */
|
|
74
|
+
async upsert(options) {
|
|
75
|
+
return this.save(options);
|
|
76
|
+
}
|
|
77
|
+
async remove(options) {
|
|
60
78
|
const { projectId } = this.options;
|
|
61
79
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
62
80
|
await this.apiClient(fetchUri, {
|
|
@@ -65,6 +83,10 @@ var AssetClient = class extends import_api.ApiClient {
|
|
|
65
83
|
expectNoContent: true
|
|
66
84
|
});
|
|
67
85
|
}
|
|
86
|
+
/** @deprecated Use {@link remove} instead. */
|
|
87
|
+
async delete(options) {
|
|
88
|
+
return this.remove(options);
|
|
89
|
+
}
|
|
68
90
|
};
|
|
69
91
|
var UncachedAssetClient = class extends AssetClient {
|
|
70
92
|
constructor(options) {
|
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,21 @@ var AssetClient = class extends ApiClient {
|
|
|
16
16
|
});
|
|
17
17
|
return this.apiClient(fetchUri);
|
|
18
18
|
}
|
|
19
|
-
|
|
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) {
|
|
20
34
|
const { projectId } = this.options;
|
|
21
35
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
22
36
|
await this.apiClient(fetchUri, {
|
|
@@ -25,7 +39,11 @@ var AssetClient = class extends ApiClient {
|
|
|
25
39
|
expectNoContent: true
|
|
26
40
|
});
|
|
27
41
|
}
|
|
28
|
-
|
|
42
|
+
/** @deprecated Use {@link save} instead. */
|
|
43
|
+
async upsert(options) {
|
|
44
|
+
return this.save(options);
|
|
45
|
+
}
|
|
46
|
+
async remove(options) {
|
|
29
47
|
const { projectId } = this.options;
|
|
30
48
|
const fetchUri = this.createUrl(ASSET_BASE_PATH);
|
|
31
49
|
await this.apiClient(fetchUri, {
|
|
@@ -34,6 +52,10 @@ var AssetClient = class extends ApiClient {
|
|
|
34
52
|
expectNoContent: true
|
|
35
53
|
});
|
|
36
54
|
}
|
|
55
|
+
/** @deprecated Use {@link remove} instead. */
|
|
56
|
+
async delete(options) {
|
|
57
|
+
return this.remove(options);
|
|
58
|
+
}
|
|
37
59
|
};
|
|
38
60
|
var UncachedAssetClient = class extends AssetClient {
|
|
39
61
|
constructor(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/assets",
|
|
3
|
-
"version": "20.74.
|
|
3
|
+
"version": "20.74.7-alpha.12+f93a44837e",
|
|
4
4
|
"description": "Uniform Assets",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@uniformdev/context": "20.74.
|
|
41
|
-
"@uniformdev/files": "20.74.
|
|
40
|
+
"@uniformdev/context": "20.74.7-alpha.12+f93a44837e",
|
|
41
|
+
"@uniformdev/files": "20.74.7-alpha.12+f93a44837e"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"ts-xor": "^1.3.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f93a44837e168f8ece4f56657a29a6f72467c1cb"
|
|
47
47
|
}
|