@diagonal-hq/pages 0.6.1 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2068,7 +2068,7 @@ export type ApiError = Error & {
2068
2068
  readonly body: any;
2069
2069
  };
2070
2070
 
2071
- export type SdkCalendarUnavailableReason = 'signed_out' | 'flag_off' | 'not_schedulable';
2071
+ export type SdkCalendarUnavailableReason = 'signed_out' | 'branch' | 'not_schedulable';
2072
2072
 
2073
2073
  export type SdkCalendarLinkState = 'active' | 'waiting_for_write_access' | 'broken';
2074
2074
 
@@ -6967,7 +6967,7 @@ export type SdkHooks = {
6967
6967
  */
6968
6968
  useRecord<
6969
6969
  TReference extends SdkResourceQueryReference<'show'>,
6970
- const TRelations extends readonly SdkReferenceRelationPath<NoInfer<TReference>>[] = readonly []
6970
+ const TRelations extends readonly SdkReferenceRelationPath<TReference>[] = readonly []
6971
6971
  >(
6972
6972
  resource: TReference,
6973
6973
  recordId: string | null | undefined,
@@ -7058,7 +7058,7 @@ export type SdkHooks = {
7058
7058
  */
7059
7059
  useRecords<
7060
7060
  TReference extends SdkResourceQueryReference<'search'>,
7061
- const TRelations extends readonly SdkReferenceRelationPath<NoInfer<TReference>>[] = readonly []
7061
+ const TRelations extends readonly SdkReferenceRelationPath<TReference>[] = readonly []
7062
7062
  >(
7063
7063
  resource: TReference,
7064
7064
  options?: SdkUseRecordsOptions<TRelations, NoInfer<SdkReferenceRecord<TReference, TRelations>>>
@@ -7136,7 +7136,7 @@ export type SdkHooks = {
7136
7136
  */
7137
7137
  useInfiniteRecords<
7138
7138
  TReference extends SdkResourceQueryReference<'search'>,
7139
- const TRelations extends readonly SdkReferenceRelationPath<NoInfer<TReference>>[] = readonly []
7139
+ const TRelations extends readonly SdkReferenceRelationPath<TReference>[] = readonly []
7140
7140
  >(
7141
7141
  resource: TReference,
7142
7142
  options?: SdkUseInfiniteRecordsOptions<TRelations>
@@ -7397,7 +7397,7 @@ export type SdkHooks = {
7397
7397
  * signed-in identity's own calendars and needs no permission. Another staff record needs
7398
7398
  * "Manage calendar connections" and Show access to the record. A viewer connects Google
7399
7399
  * accounts and adds calendars only through their own accounts. Nothing is available
7400
- * while the workspace's `calendar_sync` flag is off, for a signed-out visitor (no request
7400
+ * in a branch, for a signed-out visitor (no request
7401
7401
  * is made), and for an identity that is not a Schedulable record: check `available` and
7402
7402
  * render nothing. Every write refreshes the data and rejects with an `ApiError` on a
7403
7403
  * refusal: read its text with `Sdk.utils.error.apiErrorMessage(error)`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/pages",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "The Page SDK for the pages of file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {