@smartspace/api-client 0.1.0-pr.1281.e082255 → 0.1.0-pr.1283.1d89d4b
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/generated/config/change-tags.d.ts +46 -0
- package/dist/generated/config/change-tags.js +42 -0
- package/dist/generated/config/models/changeTagsChangeTag.d.ts +26 -0
- package/dist/generated/config/models/changeTagsChangeTag.js +30 -0
- package/dist/generated/config/models/changeTagsChangeTagView.d.ts +19 -0
- package/dist/generated/config/models/changeTagsChangeTagView.js +23 -0
- package/dist/generated/config/models/index.d.ts +2 -0
- package/dist/generated/config/models/index.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated from `ChangeTags.ChangeTag` and `ChangeTags.ChangeTagView` by scripts/change-tags.js.
|
|
3
|
+
* Do not edit manually. The names are declared on the access rule blocks in app-api.
|
|
4
|
+
*/
|
|
5
|
+
/** The resource tags: one per ruled entity type. */
|
|
6
|
+
export declare const Tags: {
|
|
7
|
+
readonly Comments: "comments";
|
|
8
|
+
readonly Datasets: "datasets";
|
|
9
|
+
readonly Datasources: "datasources";
|
|
10
|
+
readonly Dataspaces: "dataspaces";
|
|
11
|
+
readonly Favourites: "favourites";
|
|
12
|
+
readonly Files: "files";
|
|
13
|
+
readonly MessageThreads: "messageThreads";
|
|
14
|
+
readonly Messages: "messages";
|
|
15
|
+
readonly Models: "models";
|
|
16
|
+
readonly Runs: "runs";
|
|
17
|
+
readonly Workspaces: "workspaces";
|
|
18
|
+
};
|
|
19
|
+
export type ChangeTagResource = (typeof Tags)[keyof typeof Tags];
|
|
20
|
+
/** The view tags each resource declares. */
|
|
21
|
+
export declare const Views: {
|
|
22
|
+
readonly Models: {
|
|
23
|
+
readonly Deployment: "deployment";
|
|
24
|
+
};
|
|
25
|
+
readonly Runs: {
|
|
26
|
+
readonly ErrorDetail: "error-detail";
|
|
27
|
+
readonly StepExecutions: "step-executions";
|
|
28
|
+
};
|
|
29
|
+
readonly Workspaces: {
|
|
30
|
+
readonly Configuration: "configuration";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** The same views keyed by resource tag, for typing `viewTag`. */
|
|
34
|
+
export declare const ViewsByResource: {
|
|
35
|
+
readonly models: readonly ["deployment"];
|
|
36
|
+
readonly runs: readonly ["error-detail", "step-executions"];
|
|
37
|
+
readonly workspaces: readonly ["configuration"];
|
|
38
|
+
};
|
|
39
|
+
export type ResourceWithViews = keyof typeof ViewsByResource;
|
|
40
|
+
export type ViewOf<R extends ResourceWithViews> = (typeof ViewsByResource)[R][number];
|
|
41
|
+
/** A row: `models:<id>`. */
|
|
42
|
+
export declare const rowTag: <R extends ChangeTagResource>(resource: R, id: string) => `${R}:${string}`;
|
|
43
|
+
/** A view of a row: `models:<id>:deployment`. Only views the resource declares compile. */
|
|
44
|
+
export declare const viewTag: <R extends ResourceWithViews>(resource: R, id: string, view: ViewOf<R>) => `${R}:${string}:${ViewOf<R>}`;
|
|
45
|
+
/** Children of one parent: `workspaces:<id>/messageThreads`. */
|
|
46
|
+
export declare const scopedTag: <P extends ChangeTagResource, C extends ChangeTagResource>(parent: P, parentId: string, child: C) => `${P}:${string}/${C}`;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated from `ChangeTags.ChangeTag` and `ChangeTags.ChangeTagView` by scripts/change-tags.js.
|
|
4
|
+
* Do not edit manually. The names are declared on the access rule blocks in app-api.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.scopedTag = exports.viewTag = exports.rowTag = exports.ViewsByResource = exports.Views = exports.Tags = void 0;
|
|
8
|
+
/** The resource tags: one per ruled entity type. */
|
|
9
|
+
exports.Tags = {
|
|
10
|
+
Comments: 'comments',
|
|
11
|
+
Datasets: 'datasets',
|
|
12
|
+
Datasources: 'datasources',
|
|
13
|
+
Dataspaces: 'dataspaces',
|
|
14
|
+
Favourites: 'favourites',
|
|
15
|
+
Files: 'files',
|
|
16
|
+
MessageThreads: 'messageThreads',
|
|
17
|
+
Messages: 'messages',
|
|
18
|
+
Models: 'models',
|
|
19
|
+
Runs: 'runs',
|
|
20
|
+
Workspaces: 'workspaces',
|
|
21
|
+
};
|
|
22
|
+
/** The view tags each resource declares. */
|
|
23
|
+
exports.Views = {
|
|
24
|
+
Models: { Deployment: 'deployment' },
|
|
25
|
+
Runs: { ErrorDetail: 'error-detail', StepExecutions: 'step-executions' },
|
|
26
|
+
Workspaces: { Configuration: 'configuration' },
|
|
27
|
+
};
|
|
28
|
+
/** The same views keyed by resource tag, for typing `viewTag`. */
|
|
29
|
+
exports.ViewsByResource = {
|
|
30
|
+
models: ['deployment'],
|
|
31
|
+
runs: ['error-detail', 'step-executions'],
|
|
32
|
+
workspaces: ['configuration'],
|
|
33
|
+
};
|
|
34
|
+
/** A row: `models:<id>`. */
|
|
35
|
+
const rowTag = (resource, id) => `${resource}:${id}`;
|
|
36
|
+
exports.rowTag = rowTag;
|
|
37
|
+
/** A view of a row: `models:<id>:deployment`. Only views the resource declares compile. */
|
|
38
|
+
const viewTag = (resource, id, view) => `${resource}:${id}:${view}`;
|
|
39
|
+
exports.viewTag = viewTag;
|
|
40
|
+
/** Children of one parent: `workspaces:<id>/messageThreads`. */
|
|
41
|
+
const scopedTag = (parent, parentId, child) => `${parent}:${parentId}/${child}`;
|
|
42
|
+
exports.scopedTag = scopedTag;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated from `x-extensible-enum` by scripts/extensible-enums.js
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* SmartSpace Admin API
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The values the API publishes today. The set can grow without a breaking
|
|
8
|
+
* change, so an unlisted value is data for the mapper to decide on, not an
|
|
9
|
+
* error. `ChangeTagsChangeTag` accepts any string and autocompletes these.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ChangeTagsChangeTag: {
|
|
12
|
+
readonly comments: "comments";
|
|
13
|
+
readonly datasets: "datasets";
|
|
14
|
+
readonly datasources: "datasources";
|
|
15
|
+
readonly dataspaces: "dataspaces";
|
|
16
|
+
readonly favourites: "favourites";
|
|
17
|
+
readonly files: "files";
|
|
18
|
+
readonly messageThreads: "messageThreads";
|
|
19
|
+
readonly messages: "messages";
|
|
20
|
+
readonly models: "models";
|
|
21
|
+
readonly runs: "runs";
|
|
22
|
+
readonly workspaces: "workspaces";
|
|
23
|
+
};
|
|
24
|
+
export type ChangeTagsChangeTagKnown = (typeof ChangeTagsChangeTag)[keyof typeof ChangeTagsChangeTag];
|
|
25
|
+
export type ChangeTagsChangeTag = ChangeTagsChangeTagKnown | (string & {});
|
|
26
|
+
export declare function isKnownChangeTagsChangeTag(value: string): value is ChangeTagsChangeTagKnown;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated from `x-extensible-enum` by scripts/extensible-enums.js
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* SmartSpace Admin API
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ChangeTagsChangeTag = void 0;
|
|
9
|
+
exports.isKnownChangeTagsChangeTag = isKnownChangeTagsChangeTag;
|
|
10
|
+
/**
|
|
11
|
+
* The values the API publishes today. The set can grow without a breaking
|
|
12
|
+
* change, so an unlisted value is data for the mapper to decide on, not an
|
|
13
|
+
* error. `ChangeTagsChangeTag` accepts any string and autocompletes these.
|
|
14
|
+
*/
|
|
15
|
+
exports.ChangeTagsChangeTag = {
|
|
16
|
+
comments: 'comments',
|
|
17
|
+
datasets: 'datasets',
|
|
18
|
+
datasources: 'datasources',
|
|
19
|
+
dataspaces: 'dataspaces',
|
|
20
|
+
favourites: 'favourites',
|
|
21
|
+
files: 'files',
|
|
22
|
+
messageThreads: 'messageThreads',
|
|
23
|
+
messages: 'messages',
|
|
24
|
+
models: 'models',
|
|
25
|
+
runs: 'runs',
|
|
26
|
+
workspaces: 'workspaces',
|
|
27
|
+
};
|
|
28
|
+
function isKnownChangeTagsChangeTag(value) {
|
|
29
|
+
return Object.values(exports.ChangeTagsChangeTag).includes(value);
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated from `x-extensible-enum` by scripts/extensible-enums.js
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* SmartSpace Admin API
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The values the API publishes today. The set can grow without a breaking
|
|
8
|
+
* change, so an unlisted value is data for the mapper to decide on, not an
|
|
9
|
+
* error. `ChangeTagsChangeTagView` accepts any string and autocompletes these.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ChangeTagsChangeTagView: {
|
|
12
|
+
readonly 'models:deployment': "models:deployment";
|
|
13
|
+
readonly 'runs:error-detail': "runs:error-detail";
|
|
14
|
+
readonly 'runs:step-executions': "runs:step-executions";
|
|
15
|
+
readonly 'workspaces:configuration': "workspaces:configuration";
|
|
16
|
+
};
|
|
17
|
+
export type ChangeTagsChangeTagViewKnown = (typeof ChangeTagsChangeTagView)[keyof typeof ChangeTagsChangeTagView];
|
|
18
|
+
export type ChangeTagsChangeTagView = ChangeTagsChangeTagViewKnown | (string & {});
|
|
19
|
+
export declare function isKnownChangeTagsChangeTagView(value: string): value is ChangeTagsChangeTagViewKnown;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated from `x-extensible-enum` by scripts/extensible-enums.js
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* SmartSpace Admin API
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ChangeTagsChangeTagView = void 0;
|
|
9
|
+
exports.isKnownChangeTagsChangeTagView = isKnownChangeTagsChangeTagView;
|
|
10
|
+
/**
|
|
11
|
+
* The values the API publishes today. The set can grow without a breaking
|
|
12
|
+
* change, so an unlisted value is data for the mapper to decide on, not an
|
|
13
|
+
* error. `ChangeTagsChangeTagView` accepts any string and autocompletes these.
|
|
14
|
+
*/
|
|
15
|
+
exports.ChangeTagsChangeTagView = {
|
|
16
|
+
'models:deployment': 'models:deployment',
|
|
17
|
+
'runs:error-detail': 'runs:error-detail',
|
|
18
|
+
'runs:step-executions': 'runs:step-executions',
|
|
19
|
+
'workspaces:configuration': 'workspaces:configuration',
|
|
20
|
+
};
|
|
21
|
+
function isKnownChangeTagsChangeTagView(value) {
|
|
22
|
+
return Object.values(exports.ChangeTagsChangeTagView).includes(value);
|
|
23
|
+
}
|
|
@@ -68,6 +68,8 @@ export * from './blocksStateInterface';
|
|
|
68
68
|
export * from './blocksStateInterfaceDefault';
|
|
69
69
|
export * from './blocksStateInterfaceMetadata';
|
|
70
70
|
export * from './blocksUsedInRef';
|
|
71
|
+
export * from './changeTagsChangeTag';
|
|
72
|
+
export * from './changeTagsChangeTagView';
|
|
71
73
|
export * from './configApiControllersAuthDiscoveryControllerAuthDiscovery';
|
|
72
74
|
export * from './configApiFlowRunIdentityMapRequest';
|
|
73
75
|
export * from './configApiRunFlowRequest';
|
|
@@ -84,6 +84,8 @@ __exportStar(require("./blocksStateInterface"), exports);
|
|
|
84
84
|
__exportStar(require("./blocksStateInterfaceDefault"), exports);
|
|
85
85
|
__exportStar(require("./blocksStateInterfaceMetadata"), exports);
|
|
86
86
|
__exportStar(require("./blocksUsedInRef"), exports);
|
|
87
|
+
__exportStar(require("./changeTagsChangeTag"), exports);
|
|
88
|
+
__exportStar(require("./changeTagsChangeTagView"), exports);
|
|
87
89
|
__exportStar(require("./configApiControllersAuthDiscoveryControllerAuthDiscovery"), exports);
|
|
88
90
|
__exportStar(require("./configApiFlowRunIdentityMapRequest"), exports);
|
|
89
91
|
__exportStar(require("./configApiRunFlowRequest"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -32,6 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.AXIOS_INSTANCE = exports.SignalR = exports.ConfigZod = exports.ConfigModels = exports.ConfigApi = exports.ChatZod = exports.ChatModels = exports.ChatApi = void 0;
|
|
37
40
|
exports.ChatApi = __importStar(require("./generated/chat/api"));
|
|
@@ -43,3 +46,4 @@ exports.ConfigZod = __importStar(require("./generated/config/zod"));
|
|
|
43
46
|
exports.SignalR = __importStar(require("./signalr"));
|
|
44
47
|
var instance_1 = require("./instance");
|
|
45
48
|
Object.defineProperty(exports, "AXIOS_INSTANCE", { enumerable: true, get: function () { return instance_1.AXIOS_INSTANCE; } });
|
|
49
|
+
__exportStar(require("./generated/config/change-tags"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartspace/api-client",
|
|
3
|
-
"version": "0.1.0-pr.
|
|
3
|
+
"version": "0.1.0-pr.1283.1d89d4b",
|
|
4
4
|
"description": "Generated TypeScript client for SmartSpace APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"generate": "npm run generate:rest && npm run generate:signalr",
|
|
22
|
-
"generate:rest": "orval --config orval.config.ts && node ./scripts/extensible-enums.js",
|
|
22
|
+
"generate:rest": "orval --config orval.config.ts && node ./scripts/extensible-enums.js && node ./scripts/change-tags.js",
|
|
23
23
|
"generate:signalr": "dotnet tsrts --project ../../SmartSpace.App.Business/SmartSpace.App.Business.csproj --output src/generated/signalr --asm --enum Name",
|
|
24
24
|
"build": "tsc",
|
|
25
25
|
"prepublishOnly": "npm run generate && npm run build"
|