@uniformdev/project-map 19.173.0 → 19.173.2-alpha.210
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 -15
- package/dist/index.d.ts +14 -15
- package/dist/index.esm.js +2 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +2 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -440,6 +440,11 @@ interface components {
|
|
|
440
440
|
typeName?: string;
|
|
441
441
|
/** @description List of locales that the composition is available in. If empty, available in all locales */
|
|
442
442
|
locales: string[];
|
|
443
|
+
/**
|
|
444
|
+
* Format: date-time
|
|
445
|
+
* @description Date and time the composition was last modified (or created if never modified). Uses ISO-8859-1 formatting and UTC timezone.
|
|
446
|
+
*/
|
|
447
|
+
modified?: string;
|
|
443
448
|
};
|
|
444
449
|
ProjectMapNodeUpdate: {
|
|
445
450
|
/**
|
|
@@ -614,25 +619,13 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
|
|
|
614
619
|
* Get available project map defintions
|
|
615
620
|
*/
|
|
616
621
|
getProjectMapDefinitions: () => Promise<{
|
|
617
|
-
projectMaps:
|
|
618
|
-
id?: string | undefined;
|
|
619
|
-
name: string;
|
|
620
|
-
description?: string | undefined;
|
|
621
|
-
baseUrl?: string | undefined;
|
|
622
|
-
default?: boolean | undefined;
|
|
623
|
-
}[];
|
|
622
|
+
projectMaps: components$1["schemas"]["ProjectMapDefinition"][];
|
|
624
623
|
}>;
|
|
625
624
|
/**
|
|
626
625
|
* Get specific project map definition
|
|
627
626
|
*/
|
|
628
627
|
getProjectMapDefinition: (options: WithoutProjectId<ProjectMapGetRequest>) => Promise<{
|
|
629
|
-
projectMaps:
|
|
630
|
-
id?: string | undefined;
|
|
631
|
-
name: string;
|
|
632
|
-
description?: string | undefined;
|
|
633
|
-
baseUrl?: string | undefined;
|
|
634
|
-
default?: boolean | undefined;
|
|
635
|
-
}[];
|
|
628
|
+
projectMaps: components$1["schemas"]["ProjectMapDefinition"][];
|
|
636
629
|
}>;
|
|
637
630
|
/**
|
|
638
631
|
* Update or insert a project map definition
|
|
@@ -664,6 +657,12 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
|
|
|
664
657
|
declare class UncachedProjectMapClient extends ProjectMapClient {
|
|
665
658
|
constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
|
|
666
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Internal use only.
|
|
662
|
+
*
|
|
663
|
+
* @deprecated
|
|
664
|
+
*/
|
|
665
|
+
declare const __INTERNAL_MISSING_PARENT_NODE_ERROR = "Upsert failed, parent node not found.";
|
|
667
666
|
|
|
668
667
|
type LocalePathNode = Pick<ProjectMapNode, 'path'> & {
|
|
669
668
|
locales?: Record<string, {
|
|
@@ -729,4 +728,4 @@ declare class Route {
|
|
|
729
728
|
static dynamicSegmentPrefix: string;
|
|
730
729
|
}
|
|
731
730
|
|
|
732
|
-
export { type AlternateLocaleUrls, type ExpandOptions, type LocalePathNode, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, 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, getNodeLocalePath, getRouteAlternateLocalesUrls };
|
|
731
|
+
export { type AlternateLocaleUrls, type ExpandOptions, type LocalePathNode, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, 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, getNodeLocalePath, getRouteAlternateLocalesUrls };
|
package/dist/index.d.ts
CHANGED
|
@@ -440,6 +440,11 @@ interface components {
|
|
|
440
440
|
typeName?: string;
|
|
441
441
|
/** @description List of locales that the composition is available in. If empty, available in all locales */
|
|
442
442
|
locales: string[];
|
|
443
|
+
/**
|
|
444
|
+
* Format: date-time
|
|
445
|
+
* @description Date and time the composition was last modified (or created if never modified). Uses ISO-8859-1 formatting and UTC timezone.
|
|
446
|
+
*/
|
|
447
|
+
modified?: string;
|
|
443
448
|
};
|
|
444
449
|
ProjectMapNodeUpdate: {
|
|
445
450
|
/**
|
|
@@ -614,25 +619,13 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
|
|
|
614
619
|
* Get available project map defintions
|
|
615
620
|
*/
|
|
616
621
|
getProjectMapDefinitions: () => Promise<{
|
|
617
|
-
projectMaps:
|
|
618
|
-
id?: string | undefined;
|
|
619
|
-
name: string;
|
|
620
|
-
description?: string | undefined;
|
|
621
|
-
baseUrl?: string | undefined;
|
|
622
|
-
default?: boolean | undefined;
|
|
623
|
-
}[];
|
|
622
|
+
projectMaps: components$1["schemas"]["ProjectMapDefinition"][];
|
|
624
623
|
}>;
|
|
625
624
|
/**
|
|
626
625
|
* Get specific project map definition
|
|
627
626
|
*/
|
|
628
627
|
getProjectMapDefinition: (options: WithoutProjectId<ProjectMapGetRequest>) => Promise<{
|
|
629
|
-
projectMaps:
|
|
630
|
-
id?: string | undefined;
|
|
631
|
-
name: string;
|
|
632
|
-
description?: string | undefined;
|
|
633
|
-
baseUrl?: string | undefined;
|
|
634
|
-
default?: boolean | undefined;
|
|
635
|
-
}[];
|
|
628
|
+
projectMaps: components$1["schemas"]["ProjectMapDefinition"][];
|
|
636
629
|
}>;
|
|
637
630
|
/**
|
|
638
631
|
* Update or insert a project map definition
|
|
@@ -664,6 +657,12 @@ declare class ProjectMapClient extends ApiClient<ProjectMapClientOptions> {
|
|
|
664
657
|
declare class UncachedProjectMapClient extends ProjectMapClient {
|
|
665
658
|
constructor(options: Omit<ProjectMapClientOptions, 'bypassCache'>);
|
|
666
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Internal use only.
|
|
662
|
+
*
|
|
663
|
+
* @deprecated
|
|
664
|
+
*/
|
|
665
|
+
declare const __INTERNAL_MISSING_PARENT_NODE_ERROR = "Upsert failed, parent node not found.";
|
|
667
666
|
|
|
668
667
|
type LocalePathNode = Pick<ProjectMapNode, 'path'> & {
|
|
669
668
|
locales?: Record<string, {
|
|
@@ -729,4 +728,4 @@ declare class Route {
|
|
|
729
728
|
static dynamicSegmentPrefix: string;
|
|
730
729
|
}
|
|
731
730
|
|
|
732
|
-
export { type AlternateLocaleUrls, type ExpandOptions, type LocalePathNode, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, 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, getNodeLocalePath, getRouteAlternateLocalesUrls };
|
|
731
|
+
export { type AlternateLocaleUrls, type ExpandOptions, type LocalePathNode, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, 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, getNodeLocalePath, getRouteAlternateLocalesUrls };
|
package/dist/index.esm.js
CHANGED
|
@@ -178,6 +178,7 @@ var cutReferences = (node) => node ? {
|
|
|
178
178
|
parent: void 0,
|
|
179
179
|
children: void 0
|
|
180
180
|
} : void 0;
|
|
181
|
+
var __INTERNAL_MISSING_PARENT_NODE_ERROR = "Upsert failed, parent node not found.";
|
|
181
182
|
|
|
182
183
|
// src/util/getNodeLocalePath.ts
|
|
183
184
|
function getNodeLocalePath(node, locale) {
|
|
@@ -341,6 +342,7 @@ export {
|
|
|
341
342
|
ROOT_NODE_PATH,
|
|
342
343
|
Route,
|
|
343
344
|
UncachedProjectMapClient,
|
|
345
|
+
__INTERNAL_MISSING_PARENT_NODE_ERROR,
|
|
344
346
|
getNodeLocalePath,
|
|
345
347
|
getRouteAlternateLocalesUrls
|
|
346
348
|
};
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(src_exports, {
|
|
|
32
32
|
ROOT_NODE_PATH: () => ROOT_NODE_PATH,
|
|
33
33
|
Route: () => Route,
|
|
34
34
|
UncachedProjectMapClient: () => UncachedProjectMapClient,
|
|
35
|
+
__INTERNAL_MISSING_PARENT_NODE_ERROR: () => __INTERNAL_MISSING_PARENT_NODE_ERROR,
|
|
35
36
|
getNodeLocalePath: () => getNodeLocalePath,
|
|
36
37
|
getRouteAlternateLocalesUrls: () => getRouteAlternateLocalesUrls
|
|
37
38
|
});
|
|
@@ -208,6 +209,7 @@ var cutReferences = (node) => node ? {
|
|
|
208
209
|
parent: void 0,
|
|
209
210
|
children: void 0
|
|
210
211
|
} : void 0;
|
|
212
|
+
var __INTERNAL_MISSING_PARENT_NODE_ERROR = "Upsert failed, parent node not found.";
|
|
211
213
|
|
|
212
214
|
// src/util/getNodeLocalePath.ts
|
|
213
215
|
function getNodeLocalePath(node, locale) {
|
|
@@ -372,6 +374,7 @@ function getRouteAlternateLocalesUrls(routeResponse) {
|
|
|
372
374
|
ROOT_NODE_PATH,
|
|
373
375
|
Route,
|
|
374
376
|
UncachedProjectMapClient,
|
|
377
|
+
__INTERNAL_MISSING_PARENT_NODE_ERROR,
|
|
375
378
|
getNodeLocalePath,
|
|
376
379
|
getRouteAlternateLocalesUrls
|
|
377
380
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -178,6 +178,7 @@ var cutReferences = (node) => node ? {
|
|
|
178
178
|
parent: void 0,
|
|
179
179
|
children: void 0
|
|
180
180
|
} : void 0;
|
|
181
|
+
var __INTERNAL_MISSING_PARENT_NODE_ERROR = "Upsert failed, parent node not found.";
|
|
181
182
|
|
|
182
183
|
// src/util/getNodeLocalePath.ts
|
|
183
184
|
function getNodeLocalePath(node, locale) {
|
|
@@ -341,6 +342,7 @@ export {
|
|
|
341
342
|
ROOT_NODE_PATH,
|
|
342
343
|
Route,
|
|
343
344
|
UncachedProjectMapClient,
|
|
345
|
+
__INTERNAL_MISSING_PARENT_NODE_ERROR,
|
|
344
346
|
getNodeLocalePath,
|
|
345
347
|
getRouteAlternateLocalesUrls
|
|
346
348
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/project-map",
|
|
3
|
-
"version": "19.173.
|
|
3
|
+
"version": "19.173.2-alpha.210+4f0f6ff104",
|
|
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.173.
|
|
37
|
-
"@uniformdev/context": "19.173.
|
|
36
|
+
"@uniformdev/canvas": "19.173.2-alpha.210+4f0f6ff104",
|
|
37
|
+
"@uniformdev/context": "19.173.2-alpha.210+4f0f6ff104"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4f0f6ff104f46349c338fde461f063f22f04ce0e"
|
|
43
43
|
}
|