@voiceflow/base-types 1.12.3 → 2.0.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.
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  export declare enum ButtonType {
3
3
  INTENT = "INTENT"
4
4
  }
package/build/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export * as Project from './project';
5
5
  export * as Request from './request';
6
6
  export * as Text from './text';
7
7
  export * as Trace from './trace';
8
+ export * from './utils';
8
9
  export * as Version from './version';
package/build/index.js CHANGED
@@ -18,6 +18,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
21
24
  Object.defineProperty(exports, "__esModule", { value: true });
22
25
  exports.Version = exports.Trace = exports.Text = exports.Request = exports.Project = exports.Node = exports.Models = exports.Button = void 0;
23
26
  exports.Button = __importStar(require("./button"));
@@ -27,5 +30,6 @@ exports.Project = __importStar(require("./project"));
27
30
  exports.Request = __importStar(require("./request"));
28
31
  exports.Text = __importStar(require("./text"));
29
32
  exports.Trace = __importStar(require("./trace"));
33
+ __exportStar(require("./utils"), exports);
30
34
  exports.Version = __importStar(require("./version"));
31
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC;AACnC,mDAAmC;AACnC,+CAA+B;AAC/B,qDAAqC;AACrC,qDAAqC;AACrC,+CAA+B;AAC/B,iDAAiC;AACjC,qDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC;AACnC,mDAAmC;AACnC,+CAA+B;AAC/B,qDAAqC;AACrC,qDAAqC;AACrC,+CAA+B;AAC/B,iDAAiC;AACjC,0CAAwB;AACxB,qDAAqC"}
@@ -4,5 +4,4 @@ export * from './member';
4
4
  export * from './program';
5
5
  export * from './project';
6
6
  export * from './shared';
7
- export * from './utils';
8
7
  export * from './version';
@@ -16,6 +16,5 @@ __exportStar(require("./member"), exports);
16
16
  __exportStar(require("./program"), exports);
17
17
  __exportStar(require("./project"), exports);
18
18
  __exportStar(require("./shared"), exports);
19
- __exportStar(require("./utils"), exports);
20
19
  __exportStar(require("./version"), exports);
21
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B"}
@@ -38,7 +38,7 @@ export interface Project<P extends BasePlatformData, M extends BasePlatformData>
38
38
  image?: string;
39
39
  privacy?: ProjectPrivacy.PRIVATE | ProjectPrivacy.PUBLIC;
40
40
  platform: Platform;
41
- linkType?: 'CURVED' | 'STRAIGHT';
41
+ linkType?: ProjectLinkType;
42
42
  prototype?: ProjectPrototype;
43
43
  devVersion?: VersionID;
44
44
  liveVersion?: VersionID;
@@ -1,4 +1,4 @@
1
- import { AnyRecord, Nullable } from './utils';
1
+ import { AnyRecord, Nullable } from '../utils';
2
2
  export declare type Platform = string;
3
3
  export declare type Name = string;
4
4
  export declare type APIKeyID = string;
@@ -1,5 +1,5 @@
1
+ import { AnyRecord, Nullable } from '../utils';
1
2
  import { BaseCommand, CreatorID, DiagramID, Intent, Name, Platform, ProjectID, PrototypeModel, Slot, Variable, VersionID } from './shared';
2
- import { AnyRecord, Nullable } from './utils';
3
3
  export declare type VersionPlatformDataSettings = Record<string, any>;
4
4
  export declare type VersionPlatformDataPublishing = Record<string, any>;
5
5
  export interface StrictVersionPlatformData<S extends AnyRecord = AnyRecord, P extends AnyRecord = AnyRecord> {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { BaseEvent, BaseNode, BasePort, BaseStep, NodeID } from './utils';
3
3
  export declare const _V1_STOP_TYPES = "stopTypes";
4
4
  export interface StepData<Payload = unknown> {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseStep, IntegrationType, NodeSuccessFailID } from './utils';
4
4
  export interface APIKeyVal {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { StepButtonsLayout } from '../button';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseStep, BaseStepNoMatch, DataID } from './utils';
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, NodeNextID } from './utils';
4
4
  export interface StepData {
@@ -1,4 +1,4 @@
1
- import { UnknownRecord } from "../models/utils";
1
+ import { UnknownRecord } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, TraceType } from './utils';
4
4
  export declare type StepData = UnknownRecord;
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, NodeVariablesMappings, TraceType } from './utils';
4
4
  export declare type VariableMapping = [Nullable<string>, Nullable<string>][];
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID } from './utils';
4
4
  export declare type AnyTrace = BaseTraceFrame<any>;
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseStep, IntegrationType, IntegrationUser, NodeSuccessFailID } from './utils';
4
4
  export declare enum GoogleSheetsActionType {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
4
4
  export declare enum IntentAvailability {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseCommand, BasePort, BaseStep, NodeID, SlotMappings } from './utils';
4
4
  export interface StepData extends SlotMappings {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, Expression, NodeNextID } from './utils';
4
4
  export interface Set {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, ExpressionTypeV2, NodeNextID } from './utils';
4
4
  export interface Set {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, StepCanvasNodeVisibility, TraceType } from './utils';
4
4
  export interface StepDataDialog<Dialog> {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  export { BaseCommand, BaseNode, BasePort, BaseStep } from "../../models";
3
3
  export declare type NodeID = Nullable<string>;
4
4
  export interface DataID {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  import { BaseCommand } from './base';
3
3
  import { BaseEvent } from './event';
4
4
  export declare enum CommandType {
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  export declare enum ExpressionType {
3
3
  EQUALS = "equals",
4
4
  GREATER = "greater",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  export declare enum IntegrationType {
3
3
  ZAPIER = "Zapier",
4
4
  CUSTOM_API = "Custom API",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  import { NodeID } from './base';
3
3
  export declare enum NoMatchType {
4
4
  PATH = "path",
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../../models/utils";
1
+ import { Nullable } from "../../utils";
2
2
  export interface StepReprompt<Prompt> {
3
3
  reprompt: Nullable<Prompt>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, BaseTraceFrame, NodeNextID, TraceType } from './utils';
4
4
  export declare enum DeviceType {
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { Nullable } from "../models/utils";
1
+ import { Nullable } from "../utils";
2
2
  import { Utils } from '../node';
3
3
  export declare enum RepeatType {
4
4
  OFF = "OFF",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "1.12.3",
4
+ "version": "2.0.0",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
@@ -36,5 +36,5 @@
36
36
  "test:integration": "exit 0",
37
37
  "test:unit": "exit 0"
38
38
  },
39
- "gitHead": "c607878a09b40d9052a0d986c68cb1c1a9794f8e"
39
+ "gitHead": "53085c0019d5a5a745416f25b6932e43e6786cd1"
40
40
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/models/utils.ts"],"names":[],"mappings":""}