skedyul 1.7.1 → 1.7.3
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/.build-stamp +1 -0
- package/dist/config/types/navigation.d.ts +12 -0
- package/dist/core/client.d.ts +4 -0
- package/dist/esm/index.mjs +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1785796289915
|
|
@@ -49,10 +49,22 @@ export interface NavigationBreadcrumb {
|
|
|
49
49
|
/** Breadcrumb items from left to right */
|
|
50
50
|
items: BreadcrumbItem[];
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Optional Liquid context for base navigation (model lookups).
|
|
54
|
+
* Setup capabilities are always injected by the platform as `capabilities`.
|
|
55
|
+
*/
|
|
56
|
+
export type NavigationContextDefinition = Record<string, {
|
|
57
|
+
model: string;
|
|
58
|
+
mode?: 'first' | 'list' | 'count';
|
|
59
|
+
filters?: Record<string, Record<string, unknown>>;
|
|
60
|
+
limit?: number;
|
|
61
|
+
}>;
|
|
52
62
|
/**
|
|
53
63
|
* Full navigation configuration.
|
|
54
64
|
*/
|
|
55
65
|
export interface NavigationConfig {
|
|
66
|
+
/** Optional model context for Liquid in sidebar items (e.g. studio) */
|
|
67
|
+
context?: NavigationContextDefinition;
|
|
56
68
|
/** Sidebar navigation */
|
|
57
69
|
sidebar?: NavigationSidebar;
|
|
58
70
|
/** Breadcrumb navigation */
|
package/dist/core/client.d.ts
CHANGED
|
@@ -1269,6 +1269,9 @@ export type SetupListResult = {
|
|
|
1269
1269
|
steps: SetupStepView[];
|
|
1270
1270
|
capabilities: Record<string, boolean>;
|
|
1271
1271
|
};
|
|
1272
|
+
export type SetupReconcileResult = {
|
|
1273
|
+
completed: number;
|
|
1274
|
+
};
|
|
1272
1275
|
/**
|
|
1273
1276
|
* Install setup checklist API (requires sk_wkp_ token).
|
|
1274
1277
|
*/
|
|
@@ -1278,6 +1281,7 @@ export declare const setup: {
|
|
|
1278
1281
|
complete(handle: string, metadata?: Record<string, unknown>): Promise<SetupStepView>;
|
|
1279
1282
|
skip(handle: string, metadata?: Record<string, unknown>): Promise<SetupStepView>;
|
|
1280
1283
|
invalidate(handle: string, reason?: string, metadata?: Record<string, unknown>): Promise<SetupStepView>;
|
|
1284
|
+
reconcile(): Promise<SetupReconcileResult>;
|
|
1281
1285
|
capabilities(): Promise<Record<string, boolean>>;
|
|
1282
1286
|
};
|
|
1283
1287
|
export {};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3597,6 +3597,13 @@ var setup = {
|
|
|
3597
3597
|
});
|
|
3598
3598
|
return data;
|
|
3599
3599
|
},
|
|
3600
|
+
async reconcile() {
|
|
3601
|
+
const { data } = await callCore(
|
|
3602
|
+
"setup.reconcile",
|
|
3603
|
+
{}
|
|
3604
|
+
);
|
|
3605
|
+
return data;
|
|
3606
|
+
},
|
|
3600
3607
|
async capabilities() {
|
|
3601
3608
|
const { data } = await callCore(
|
|
3602
3609
|
"setup.capabilities",
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { InstallError, MissingRequiredFieldError, AuthenticationError, InvalidCo
|
|
|
9
9
|
export type { InstallErrorCode } from './errors';
|
|
10
10
|
export { z };
|
|
11
11
|
export { workplace, communicationChannel, instance, token, file, webhook, cron, event, resource, ai, call, report, setup, configure, getConfig, runWithConfig, createInstanceClient, } from './core/client';
|
|
12
|
-
export type { InstanceClient, InstanceContext, InstanceData, InstanceEnv, InstanceWriteOptions, InstanceGetOptions, InstanceCreateManyItem, InstanceUpdateManyItem, InstanceMeta, InstancePagination, InstanceListResult, InstanceListArgs, FileInfo, FileUrlResponse, FileUploadParams, FileUploadResult, WebhookCreateResult, WebhookListItem, WebhookDeleteByNameOptions, WebhookListOptions, CallStartParams, CallStartResult, CallAppendTranscriptParams, CallEndParams, CallSummarizeResult, CronSubscribeParams, CronSubscribeResult, CronSubscriptionItem, CronListOptions, EventCreateResult, EventCreateOptions, ResourceLinkParams, ResourceLinkResult, AITextContent, AIFileContent, AIImageContent, AIMessageContent, AIMessage, GenerateObjectOptions, GenerateObjectResult, ReportGenerateParams, ReportGenerateResult, ReportDefineParams, ReportDefineResult, ReportListParams, ReportListItem, ReportListResult, ReportDefinition, SetupStepStatus, SetupStepKindApi, SetupStepView, SetupListResult, } from './core/client';
|
|
12
|
+
export type { InstanceClient, InstanceContext, InstanceData, InstanceEnv, InstanceWriteOptions, InstanceGetOptions, InstanceCreateManyItem, InstanceUpdateManyItem, InstanceMeta, InstancePagination, InstanceListResult, InstanceListArgs, FileInfo, FileUrlResponse, FileUploadParams, FileUploadResult, WebhookCreateResult, WebhookListItem, WebhookDeleteByNameOptions, WebhookListOptions, CallStartParams, CallStartResult, CallAppendTranscriptParams, CallEndParams, CallSummarizeResult, CronSubscribeParams, CronSubscribeResult, CronSubscriptionItem, CronListOptions, EventCreateResult, EventCreateOptions, ResourceLinkParams, ResourceLinkResult, AITextContent, AIFileContent, AIImageContent, AIMessageContent, AIMessage, GenerateObjectOptions, GenerateObjectResult, ReportGenerateParams, ReportGenerateResult, ReportDefineParams, ReportDefineResult, ReportListParams, ReportListItem, ReportListResult, ReportDefinition, SetupStepStatus, SetupStepKindApi, SetupStepView, SetupListResult, SetupReconcileResult, } from './core/client';
|
|
13
13
|
export { createContextLogger } from './server/logger';
|
|
14
14
|
export type { ContextLogger } from './server/logger';
|
|
15
15
|
declare const _default: {
|
package/dist/index.js
CHANGED
|
@@ -3971,6 +3971,13 @@ var setup = {
|
|
|
3971
3971
|
});
|
|
3972
3972
|
return data;
|
|
3973
3973
|
},
|
|
3974
|
+
async reconcile() {
|
|
3975
|
+
const { data } = await callCore(
|
|
3976
|
+
"setup.reconcile",
|
|
3977
|
+
{}
|
|
3978
|
+
);
|
|
3979
|
+
return data;
|
|
3980
|
+
},
|
|
3974
3981
|
async capabilities() {
|
|
3975
3982
|
const { data } = await callCore(
|
|
3976
3983
|
"setup.capabilities",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skedyul",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "The Skedyul SDK for Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
75
|
"scripts": {
|
|
76
|
-
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc --emitDeclarationOnly && pnpm exec tsup-node",
|
|
76
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc --emitDeclarationOnly && pnpm exec tsup-node && node -e \"require('fs').mkdirSync('dist',{recursive:true}); require('fs').writeFileSync('dist/.build-stamp', String(Date.now()))\"",
|
|
77
77
|
"db:generate": "echo 'No database generation needed for this package'",
|
|
78
|
-
"dev": "npx nodemon --watch src --ext js,ts --exec \"pnpm run build\"",
|
|
78
|
+
"dev:watch": "npx nodemon --watch src --ext js,ts --exec \"pnpm run build\"",
|
|
79
79
|
"test": "tsc --project tsconfig.tests.json && node --test dist-tests/tests/server.test.js dist-tests/tests/cli.test.js dist-tests/tests/agent-schema-v3.test.js dist-tests/tests/ratelimit.test.js dist-tests/tests/sequencer.test.js dist-tests/tests/config-loader.test.js dist-tests/tests/gsm7.test.js"
|
|
80
80
|
},
|
|
81
81
|
"keywords": [
|