@uniformdev/project-map 19.211.0 → 19.211.1-alpha.2

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
@@ -1,4 +1,4 @@
1
- import { ApiClient } from '@uniformdev/context/api';
1
+ import { ApiClient, ClientOptions } from '@uniformdev/context/api';
2
2
  import { RouteGetResponse } from '@uniformdev/canvas';
3
3
 
4
4
  interface paths$1 {
@@ -1003,20 +1003,6 @@ type ProjectMapNodeData = components$1['schemas']['ProjectMapNodeData'];
1003
1003
  type ProjectMapNodeAllowedQueryString = components$1['schemas']['ProjectMapNodeAllowedQueryString'];
1004
1004
 
1005
1005
  declare const ROOT_NODE_PATH = "/";
1006
- type ProjectMapClientOptions = {
1007
- /** The Uniform API host to use. Internal use. */
1008
- apiHost?: string;
1009
- /** The Uniform API key to use when sending API requests. This or bearer token must be specified. */
1010
- apiKey?: string | undefined;
1011
- /** The Uniform bearer token to use. Internal use. */
1012
- bearerToken?: string | undefined;
1013
- /** The Uniform project ID to connect to */
1014
- projectId?: string | null;
1015
- /** Specify a fetch implementation to use when fetching data. Useful if you want to only polyfill selectively. */
1016
- fetch?: typeof fetch;
1017
- /** Specify whether caching is disabled. */
1018
- bypassCache?: boolean;
1019
- };
1020
1006
  type ProjectMapSubtree = ProjectMapNode & {
1021
1007
  children?: Array<ProjectMapSubtree> | undefined;
1022
1008
  parent?: ProjectMapSubtree | undefined;
@@ -1026,8 +1012,8 @@ type ProjectMapSubtree = ProjectMapNode & {
1026
1012
  type WithoutProjectId<T extends {
1027
1013
  projectId: string;
1028
1014
  }> = Omit<T, 'projectId'>;
1029
- declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
1030
- constructor(options: ProjectMapClientOptions);
1015
+ declare class ProjectMapClient extends ApiClient {
1016
+ constructor(options: ClientOptions);
1031
1017
  /**
1032
1018
  * Get available project map defintions
1033
1019
  */
@@ -1068,7 +1054,7 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
1068
1054
  private cleanProjectMapNode;
1069
1055
  }
1070
1056
  declare class UncachedProjectMapClient extends ProjectMapClient {
1071
- constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
1057
+ constructor(options: Omit<ClientOptions, 'bypassCache'>);
1072
1058
  }
1073
1059
  /**
1074
1060
  * Internal use only.
@@ -1190,4 +1176,4 @@ declare class Route {
1190
1176
  static dynamicSegmentPrefix: string;
1191
1177
  }
1192
1178
 
1193
- export { type AlternateLocaleUrls, type ExpandOptions, type GetActiveEditionOptions, type LocalePathNode, type MatchedRoute, type NodeType, type ObjectWithEditionMetadata, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeCompositionData, type ProjectMapNodeCompositionEditionData, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeLocale, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeUpsertRequestNodeLocale, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute, __INTERNAL_MISSING_PARENT_NODE_ERROR, getActiveEdition, getNodeActiveCompositionEdition, getNodeLocalePath, getRouteAlternateLocalesUrls };
1179
+ export { type AlternateLocaleUrls, type ExpandOptions, type GetActiveEditionOptions, type LocalePathNode, type MatchedRoute, type NodeType, type ObjectWithEditionMetadata, ProjectMapClient, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeCompositionData, type ProjectMapNodeCompositionEditionData, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeLocale, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeUpsertRequestNodeLocale, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute, __INTERNAL_MISSING_PARENT_NODE_ERROR, getActiveEdition, getNodeActiveCompositionEdition, getNodeLocalePath, getRouteAlternateLocalesUrls };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ApiClient } from '@uniformdev/context/api';
1
+ import { ApiClient, ClientOptions } from '@uniformdev/context/api';
2
2
  import { RouteGetResponse } from '@uniformdev/canvas';
3
3
 
4
4
  interface paths$1 {
@@ -1003,20 +1003,6 @@ type ProjectMapNodeData = components$1['schemas']['ProjectMapNodeData'];
1003
1003
  type ProjectMapNodeAllowedQueryString = components$1['schemas']['ProjectMapNodeAllowedQueryString'];
1004
1004
 
1005
1005
  declare const ROOT_NODE_PATH = "/";
1006
- type ProjectMapClientOptions = {
1007
- /** The Uniform API host to use. Internal use. */
1008
- apiHost?: string;
1009
- /** The Uniform API key to use when sending API requests. This or bearer token must be specified. */
1010
- apiKey?: string | undefined;
1011
- /** The Uniform bearer token to use. Internal use. */
1012
- bearerToken?: string | undefined;
1013
- /** The Uniform project ID to connect to */
1014
- projectId?: string | null;
1015
- /** Specify a fetch implementation to use when fetching data. Useful if you want to only polyfill selectively. */
1016
- fetch?: typeof fetch;
1017
- /** Specify whether caching is disabled. */
1018
- bypassCache?: boolean;
1019
- };
1020
1006
  type ProjectMapSubtree = ProjectMapNode & {
1021
1007
  children?: Array<ProjectMapSubtree> | undefined;
1022
1008
  parent?: ProjectMapSubtree | undefined;
@@ -1026,8 +1012,8 @@ type ProjectMapSubtree = ProjectMapNode & {
1026
1012
  type WithoutProjectId<T extends {
1027
1013
  projectId: string;
1028
1014
  }> = Omit<T, 'projectId'>;
1029
- declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
1030
- constructor(options: ProjectMapClientOptions);
1015
+ declare class ProjectMapClient extends ApiClient {
1016
+ constructor(options: ClientOptions);
1031
1017
  /**
1032
1018
  * Get available project map defintions
1033
1019
  */
@@ -1068,7 +1054,7 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
1068
1054
  private cleanProjectMapNode;
1069
1055
  }
1070
1056
  declare class UncachedProjectMapClient extends ProjectMapClient {
1071
- constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
1057
+ constructor(options: Omit<ClientOptions, 'bypassCache'>);
1072
1058
  }
1073
1059
  /**
1074
1060
  * Internal use only.
@@ -1190,4 +1176,4 @@ declare class Route {
1190
1176
  static dynamicSegmentPrefix: string;
1191
1177
  }
1192
1178
 
1193
- export { type AlternateLocaleUrls, type ExpandOptions, type GetActiveEditionOptions, type LocalePathNode, type MatchedRoute, type NodeType, type ObjectWithEditionMetadata, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeCompositionData, type ProjectMapNodeCompositionEditionData, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeLocale, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeUpsertRequestNodeLocale, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute, __INTERNAL_MISSING_PARENT_NODE_ERROR, getActiveEdition, getNodeActiveCompositionEdition, getNodeLocalePath, getRouteAlternateLocalesUrls };
1179
+ export { type AlternateLocaleUrls, type ExpandOptions, type GetActiveEditionOptions, type LocalePathNode, type MatchedRoute, type NodeType, type ObjectWithEditionMetadata, ProjectMapClient, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeCompositionData, type ProjectMapNodeCompositionEditionData, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeLocale, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeUpsertRequestNodeLocale, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute, __INTERNAL_MISSING_PARENT_NODE_ERROR, getActiveEdition, getNodeActiveCompositionEdition, getNodeLocalePath, getRouteAlternateLocalesUrls };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "19.211.0",
3
+ "version": "19.211.1-alpha.2+498f57ab58",
4
4
  "description": "Uniform Project Map",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,11 +33,11 @@
33
33
  "/dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "19.211.0",
37
- "@uniformdev/context": "19.211.0"
36
+ "@uniformdev/canvas": "19.211.1-alpha.2+498f57ab58",
37
+ "@uniformdev/context": "19.211.1-alpha.2+498f57ab58"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "c101d24290ae409fec3148e0cf055618f3f836cd"
42
+ "gitHead": "498f57ab585765304de6e7bf46d6c5408b9c03e2"
43
43
  }