@slflows/sdk 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/v1/index.d.ts +14 -4
  2. package/package.json +1 -1
@@ -825,9 +825,9 @@ interface AppSchema {
825
825
  interface AppUIComponent {
826
826
  onRequest: (input: AppOnUIRequestInput) => Promise<any>;
827
827
  }
828
- type SimpleType = "string" | "number" | "boolean" | "any";
828
+ type SimpleType = "string" | "number" | "boolean" | "any" | "jsonSchemaObject";
829
829
  type SimpleTypeArray = [SimpleType];
830
- type JsonSchemaType = "string" | "number" | "boolean" | "object" | "array" | "integer" | "null";
830
+ type JsonSchemaType = "string" | "number" | "boolean" | "object" | "array" | "integer" | "null" | "jsonSchemaObject";
831
831
  interface JsonSchema {
832
832
  type?: JsonSchemaType;
833
833
  const?: string | number;
@@ -1070,7 +1070,12 @@ interface EntityNonSchedulableLifecycleCallbackOutput extends BaseLifecycleCallb
1070
1070
  }
1071
1071
  interface EntitySchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
1072
1072
  newStatus: "in_progress" | "draining";
1073
- nextScheduleDelay?: number;
1073
+ /** Specifies the time in seconds after which the callback will
1074
+ * be called again in case the entity is not in a complete state.
1075
+ * If set to null, the callback won't be called again. It can be
1076
+ * invoked using lifecycle.sync() from e.g. an http request handler.
1077
+ */
1078
+ nextScheduleDelay?: number | null;
1074
1079
  }
1075
1080
  type EntityLifecycleCallbackOutput = EntityNonSchedulableLifecycleCallbackOutput | EntitySchedulableLifecycleCallbackOutput;
1076
1081
  interface AppNonSchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
@@ -1078,7 +1083,12 @@ interface AppNonSchedulableLifecycleCallbackOutput extends BaseLifecycleCallback
1078
1083
  }
1079
1084
  interface AppSchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
1080
1085
  newStatus: "in_progress" | "draining";
1081
- nextScheduleDelay?: number;
1086
+ /** Specifies the time in seconds after which the callback will
1087
+ * be called again in case the app is not in a complete state. If
1088
+ * set to null, the callback won't be called again. It can be
1089
+ * invoked using lifecycle.sync() from e.g. an http request handler.
1090
+ */
1091
+ nextScheduleDelay?: number | null;
1082
1092
  }
1083
1093
  type AppLifecycleCallbackOutput = AppNonSchedulableLifecycleCallbackOutput | AppSchedulableLifecycleCallbackOutput;
1084
1094
  type AppLifecycleStatus = "draft" | "in_progress" | "ready" | "failed" | "draining" | "draining_failed" | "drained";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slflows/sdk",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],