@uniformdev/canvas 20.10.0 → 20.12.1-alpha.18
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 +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
@@ -7507,6 +7507,8 @@ interface components$8 {
|
|
7507
7507
|
retryCount: number;
|
7508
7508
|
retryDelay: number;
|
7509
7509
|
sourceCache?: string;
|
7510
|
+
/** @description Array of status codes for corresponding retries; will be empty for cache hits, Uniform Content data resources and static JSON data resources */
|
7511
|
+
statusCodes: number[];
|
7510
7512
|
};
|
7511
7513
|
data: unknown;
|
7512
7514
|
};
|
@@ -7541,6 +7543,7 @@ interface components$8 {
|
|
7541
7543
|
};
|
7542
7544
|
};
|
7543
7545
|
DataResolutionIssue: {
|
7546
|
+
componentId?: string;
|
7544
7547
|
componentPath?: string;
|
7545
7548
|
componentType?: string;
|
7546
7549
|
message: string;
|
@@ -8419,8 +8422,8 @@ interface components$8 {
|
|
8419
8422
|
};
|
8420
8423
|
};
|
8421
8424
|
parameters: {
|
8422
|
-
/** @description Enables additional diagnostics that will be attached to the response */
|
8423
|
-
diagnostics:
|
8425
|
+
/** @description Enables additional diagnostics that will be attached to the response; set to "no-data" to skip data resource values while keeping metrics */
|
8426
|
+
diagnostics: "true" | "false" | "no-data";
|
8424
8427
|
/** @description Controls how many levels deep content references should be resolved */
|
8425
8428
|
resolutionDepth: number;
|
8426
8429
|
/** @description Max number of records to return */
|
@@ -9732,9 +9735,10 @@ type DataResolutionOptionPositive = {
|
|
9732
9735
|
type DataResolutionParameters = {
|
9733
9736
|
/**
|
9734
9737
|
* Adds additional diagnostics about edge request processing to the response (`diagnostics`).
|
9735
|
-
*
|
9738
|
+
* Only use when diagnosing performance issues, don't use for serving production traffic.
|
9739
|
+
* Setting to `true` will include all resolved data which may be big. Use `"no-data"` to skip data.
|
9736
9740
|
*/
|
9737
|
-
diagnostics?: boolean;
|
9741
|
+
diagnostics?: boolean | 'no-data';
|
9738
9742
|
/**
|
9739
9743
|
* Controls how many levels deep content references should be resolved.
|
9740
9744
|
*/
|
@@ -11548,7 +11552,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
11548
11552
|
filters?: CompositionFilters;
|
11549
11553
|
} & ({
|
11550
11554
|
resolveData: true;
|
11551
|
-
diagnostics
|
11555
|
+
diagnostics: DataResolutionParameters['diagnostics'];
|
11552
11556
|
} | {
|
11553
11557
|
resolveData?: false;
|
11554
11558
|
})): Promise<CompositionGetListResponse | CompositionResolvedListResponse>;
|
package/dist/index.d.ts
CHANGED
@@ -7507,6 +7507,8 @@ interface components$8 {
|
|
7507
7507
|
retryCount: number;
|
7508
7508
|
retryDelay: number;
|
7509
7509
|
sourceCache?: string;
|
7510
|
+
/** @description Array of status codes for corresponding retries; will be empty for cache hits, Uniform Content data resources and static JSON data resources */
|
7511
|
+
statusCodes: number[];
|
7510
7512
|
};
|
7511
7513
|
data: unknown;
|
7512
7514
|
};
|
@@ -7541,6 +7543,7 @@ interface components$8 {
|
|
7541
7543
|
};
|
7542
7544
|
};
|
7543
7545
|
DataResolutionIssue: {
|
7546
|
+
componentId?: string;
|
7544
7547
|
componentPath?: string;
|
7545
7548
|
componentType?: string;
|
7546
7549
|
message: string;
|
@@ -8419,8 +8422,8 @@ interface components$8 {
|
|
8419
8422
|
};
|
8420
8423
|
};
|
8421
8424
|
parameters: {
|
8422
|
-
/** @description Enables additional diagnostics that will be attached to the response */
|
8423
|
-
diagnostics:
|
8425
|
+
/** @description Enables additional diagnostics that will be attached to the response; set to "no-data" to skip data resource values while keeping metrics */
|
8426
|
+
diagnostics: "true" | "false" | "no-data";
|
8424
8427
|
/** @description Controls how many levels deep content references should be resolved */
|
8425
8428
|
resolutionDepth: number;
|
8426
8429
|
/** @description Max number of records to return */
|
@@ -9732,9 +9735,10 @@ type DataResolutionOptionPositive = {
|
|
9732
9735
|
type DataResolutionParameters = {
|
9733
9736
|
/**
|
9734
9737
|
* Adds additional diagnostics about edge request processing to the response (`diagnostics`).
|
9735
|
-
*
|
9738
|
+
* Only use when diagnosing performance issues, don't use for serving production traffic.
|
9739
|
+
* Setting to `true` will include all resolved data which may be big. Use `"no-data"` to skip data.
|
9736
9740
|
*/
|
9737
|
-
diagnostics?: boolean;
|
9741
|
+
diagnostics?: boolean | 'no-data';
|
9738
9742
|
/**
|
9739
9743
|
* Controls how many levels deep content references should be resolved.
|
9740
9744
|
*/
|
@@ -11548,7 +11552,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
11548
11552
|
filters?: CompositionFilters;
|
11549
11553
|
} & ({
|
11550
11554
|
resolveData: true;
|
11551
|
-
diagnostics
|
11555
|
+
diagnostics: DataResolutionParameters['diagnostics'];
|
11552
11556
|
} | {
|
11553
11557
|
resolveData?: false;
|
11554
11558
|
})): Promise<CompositionGetListResponse | CompositionResolvedListResponse>;
|
package/dist/index.esm.js
CHANGED
@@ -624,7 +624,7 @@ var CanvasClient = class extends ApiClient {
|
|
624
624
|
const edgeParams = {
|
625
625
|
...originParams,
|
626
626
|
projectId,
|
627
|
-
|
627
|
+
diagnostics: typeof params.diagnostics === "boolean" ? params.diagnostics : params.diagnostics === "no-data" ? "no-data" : void 0,
|
628
628
|
...rewrittenFilters
|
629
629
|
};
|
630
630
|
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
@@ -665,7 +665,7 @@ var CanvasClient = class extends ApiClient {
|
|
665
665
|
const edgeParams = {
|
666
666
|
...params,
|
667
667
|
projectId,
|
668
|
-
|
668
|
+
diagnostics: typeof diagnostics === "boolean" ? diagnostics : diagnostics === "no-data" ? "no-data" : void 0
|
669
669
|
};
|
670
670
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
671
671
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
@@ -847,7 +847,7 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
847
847
|
return {
|
848
848
|
projectId,
|
849
849
|
...params,
|
850
|
-
diagnostics:
|
850
|
+
diagnostics: typeof options.diagnostics === "boolean" ? options.diagnostics : options.diagnostics === "no-data" ? "no-data" : void 0
|
851
851
|
};
|
852
852
|
}
|
853
853
|
};
|
package/dist/index.js
CHANGED
@@ -787,7 +787,7 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
787
787
|
const edgeParams = {
|
788
788
|
...originParams,
|
789
789
|
projectId,
|
790
|
-
|
790
|
+
diagnostics: typeof params.diagnostics === "boolean" ? params.diagnostics : params.diagnostics === "no-data" ? "no-data" : void 0,
|
791
791
|
...rewrittenFilters
|
792
792
|
};
|
793
793
|
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
@@ -828,7 +828,7 @@ var CanvasClient = class extends import_api2.ApiClient {
|
|
828
828
|
const edgeParams = {
|
829
829
|
...params,
|
830
830
|
projectId,
|
831
|
-
|
831
|
+
diagnostics: typeof diagnostics === "boolean" ? diagnostics : diagnostics === "no-data" ? "no-data" : void 0
|
832
832
|
};
|
833
833
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
834
834
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
@@ -1010,7 +1010,7 @@ var _ContentClient = class _ContentClient extends import_api4.ApiClient {
|
|
1010
1010
|
return {
|
1011
1011
|
projectId,
|
1012
1012
|
...params,
|
1013
|
-
diagnostics:
|
1013
|
+
diagnostics: typeof options.diagnostics === "boolean" ? options.diagnostics : options.diagnostics === "no-data" ? "no-data" : void 0
|
1014
1014
|
};
|
1015
1015
|
}
|
1016
1016
|
};
|
package/dist/index.mjs
CHANGED
@@ -624,7 +624,7 @@ var CanvasClient = class extends ApiClient {
|
|
624
624
|
const edgeParams = {
|
625
625
|
...originParams,
|
626
626
|
projectId,
|
627
|
-
|
627
|
+
diagnostics: typeof params.diagnostics === "boolean" ? params.diagnostics : params.diagnostics === "no-data" ? "no-data" : void 0,
|
628
628
|
...rewrittenFilters
|
629
629
|
};
|
630
630
|
const edgeUrl = this.createUrl("/api/v1/compositions", edgeParams, this.edgeApiHost);
|
@@ -665,7 +665,7 @@ var CanvasClient = class extends ApiClient {
|
|
665
665
|
const edgeParams = {
|
666
666
|
...params,
|
667
667
|
projectId,
|
668
|
-
|
668
|
+
diagnostics: typeof diagnostics === "boolean" ? diagnostics : diagnostics === "no-data" ? "no-data" : void 0
|
669
669
|
};
|
670
670
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
671
671
|
return this.apiClient(edgeUrl, this.edgeApiRequestInit);
|
@@ -847,7 +847,7 @@ var _ContentClient = class _ContentClient extends ApiClient3 {
|
|
847
847
|
return {
|
848
848
|
projectId,
|
849
849
|
...params,
|
850
|
-
diagnostics:
|
850
|
+
diagnostics: typeof options.diagnostics === "boolean" ? options.diagnostics : options.diagnostics === "no-data" ? "no-data" : void 0
|
851
851
|
};
|
852
852
|
}
|
853
853
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.12.1-alpha.18+3386e9d0fc",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
29
29
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
30
30
|
"update-openapi": "tsx ./scripts/update-openapi.cts",
|
31
|
-
"document": "api-extractor run --local"
|
31
|
+
"document:prebuild": "api-extractor run --local"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/retry": "0.12.5",
|
@@ -38,9 +38,9 @@
|
|
38
38
|
"p-throttle": "5.0.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "20.
|
42
|
-
"@uniformdev/context": "20.
|
43
|
-
"@uniformdev/richtext": "20.
|
41
|
+
"@uniformdev/assets": "20.12.1-alpha.18+3386e9d0fc",
|
42
|
+
"@uniformdev/context": "20.12.1-alpha.18+3386e9d0fc",
|
43
|
+
"@uniformdev/richtext": "20.12.1-alpha.18+3386e9d0fc",
|
44
44
|
"immer": "10.1.1"
|
45
45
|
},
|
46
46
|
"files": [
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"publishConfig": {
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "3386e9d0fc01d7c246b623705939a55df3df2dae"
|
53
53
|
}
|