@voiceflow/api-sdk 3.27.16 → 3.27.18
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/build/cjs/package.json +1 -0
- package/build/cjs/resources/analytics/index.d.ts +1 -1
- package/build/cjs/resources/apiKey.d.ts +1 -1
- package/build/cjs/resources/crud.d.ts +1 -1
- package/build/cjs/resources/crudNested.d.ts +1 -1
- package/build/cjs/resources/diagram.d.ts +1 -1
- package/build/cjs/resources/fetcher.d.ts +1 -1
- package/build/cjs/resources/note.d.ts +1 -1
- package/build/cjs/resources/program.d.ts +1 -1
- package/build/cjs/resources/project/index.d.ts +1 -1
- package/build/cjs/resources/project/member.d.ts +1 -1
- package/build/cjs/resources/projectSecret.d.ts +1 -1
- package/build/cjs/resources/prototypeProgram.d.ts +1 -1
- package/build/cjs/resources/variableState.d.ts +1 -1
- package/build/cjs/resources/version/canvasTemplate.d.ts +1 -1
- package/build/cjs/resources/version/diagram.d.ts +1 -1
- package/build/cjs/resources/version/domain.d.ts +1 -1
- package/build/cjs/resources/version/index.d.ts +1 -1
- package/build/cjs/resources/version/program.d.ts +1 -1
- package/build/cjs/resources/version/prototypeProgram.d.ts +1 -1
- package/build/esm/client.d.ts +2 -2
- package/build/esm/client.js +2 -2
- package/build/esm/index.d.ts +6 -6
- package/build/esm/index.js +3 -3
- package/build/esm/interface.d.ts +1 -1
- package/build/esm/interface.js +1 -1
- package/build/esm/package.json +1 -0
- package/build/esm/publicClient.d.ts +2 -2
- package/build/esm/publicClient.js +2 -2
- package/build/esm/resources/analytics/index.d.ts +2 -2
- package/build/esm/resources/analytics/index.js +2 -2
- package/build/esm/resources/apiKey.d.ts +2 -2
- package/build/esm/resources/apiKey.js +1 -1
- package/build/esm/resources/base.d.ts +1 -1
- package/build/esm/resources/base.js +1 -1
- package/build/esm/resources/crud.d.ts +2 -2
- package/build/esm/resources/crud.js +1 -1
- package/build/esm/resources/crudNested.d.ts +2 -2
- package/build/esm/resources/crudNested.js +1 -1
- package/build/esm/resources/diagram.d.ts +2 -2
- package/build/esm/resources/diagram.js +1 -1
- package/build/esm/resources/fetcher.d.ts +1 -1
- package/build/esm/resources/index.d.ts +11 -11
- package/build/esm/resources/index.js +11 -11
- package/build/esm/resources/interface.d.ts +1 -1
- package/build/esm/resources/interface.js +1 -1
- package/build/esm/resources/note.d.ts +2 -2
- package/build/esm/resources/note.js +1 -1
- package/build/esm/resources/program.d.ts +3 -3
- package/build/esm/resources/program.js +1 -1
- package/build/esm/resources/project/index.d.ts +5 -5
- package/build/esm/resources/project/index.js +3 -3
- package/build/esm/resources/project/member.d.ts +2 -2
- package/build/esm/resources/project/member.js +2 -2
- package/build/esm/resources/projectSecret.d.ts +2 -2
- package/build/esm/resources/projectSecret.js +1 -1
- package/build/esm/resources/prototypeProgram.d.ts +2 -2
- package/build/esm/resources/prototypeProgram.js +1 -1
- package/build/esm/resources/variableState.d.ts +3 -3
- package/build/esm/resources/variableState.js +1 -1
- package/build/esm/resources/version/canvasTemplate.d.ts +2 -2
- package/build/esm/resources/version/canvasTemplate.js +1 -1
- package/build/esm/resources/version/diagram.d.ts +2 -2
- package/build/esm/resources/version/diagram.js +1 -1
- package/build/esm/resources/version/domain.d.ts +2 -2
- package/build/esm/resources/version/domain.js +1 -1
- package/build/esm/resources/version/index.d.ts +8 -8
- package/build/esm/resources/version/index.js +6 -6
- package/build/esm/resources/version/program.d.ts +2 -2
- package/build/esm/resources/version/program.js +1 -1
- package/build/esm/resources/version/prototypeProgram.d.ts +2 -2
- package/build/esm/resources/version/prototypeProgram.js +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +15 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PutPostType, SchemeType } from
|
|
1
|
+
import type { PutPostType, SchemeType } from '../types';
|
|
2
2
|
import type { AnyRecord } from '@voiceflow/common';
|
|
3
3
|
import BaseResource, { Fields } from './base';
|
|
4
4
|
declare class CrudResource<Scheme extends AnyRecord, ID extends keyof SchemeType<Scheme>, Client extends Record<string, any>, Exclude extends keyof SchemeType<Scheme> = never> extends BaseResource<Client> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PutPostType, SchemeType } from
|
|
1
|
+
import type { PutPostType, SchemeType } from '../types';
|
|
2
2
|
import type { AnyRecord } from '@voiceflow/common';
|
|
3
3
|
import BaseResource, { BaseResourceOptions, Fields } from './base';
|
|
4
4
|
declare type NestedCrudResourceOptions<Client extends AnyRecord, Options extends {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch';
|
|
2
2
|
declare type Clazz<Client, Options = undefined> = Options extends undefined ? new (fetch: Fetch) => Client : new (fetch: Fetch, options: Options) => Client;
|
|
3
3
|
interface BaseFetcherOptions<Client, Options = undefined> {
|
|
4
4
|
fetch: Fetch;
|
package/build/esm/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClientOptions, PublicClient } from './publicClient';
|
|
2
|
-
import { User } from './resources';
|
|
1
|
+
import { ClientOptions, PublicClient } from './publicClient.js';
|
|
2
|
+
import { User } from './resources/index.js';
|
|
3
3
|
export declare class Client extends PublicClient {
|
|
4
4
|
user: User;
|
|
5
5
|
constructor(options: Omit<ClientOptions, 'authorization'> & {
|
package/build/esm/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PublicClient } from './publicClient';
|
|
2
|
-
import { User } from './resources';
|
|
1
|
+
import { PublicClient } from './publicClient.js';
|
|
2
|
+
import { User } from './resources/index.js';
|
|
3
3
|
export class Client extends PublicClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
super(options);
|
package/build/esm/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as s from 'superstruct';
|
|
2
|
-
import { Client } from './client';
|
|
3
|
-
import { ClientOptions, PublicClient } from './publicClient';
|
|
4
|
-
export type { Client } from './client';
|
|
5
|
-
export * as Interface from './interface';
|
|
6
|
-
export type { PublicClient } from './publicClient';
|
|
7
|
-
export type { Flatten } from './types';
|
|
2
|
+
import { Client } from './client.js';
|
|
3
|
+
import { ClientOptions, PublicClient } from './publicClient.js';
|
|
4
|
+
export type { Client } from './client.js';
|
|
5
|
+
export * as Interface from './interface.js';
|
|
6
|
+
export type { PublicClient } from './publicClient.js';
|
|
7
|
+
export type { Flatten } from './types.js';
|
|
8
8
|
export declare const SParams: s.Struct<{
|
|
9
9
|
clientKey: string;
|
|
10
10
|
apiEndpoint: string;
|
package/build/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as s from 'superstruct';
|
|
2
|
-
import { Client } from './client';
|
|
3
|
-
import { PublicClient } from './publicClient';
|
|
4
|
-
export * as Interface from './interface';
|
|
2
|
+
import { Client } from './client.js';
|
|
3
|
+
import { PublicClient } from './publicClient.js';
|
|
4
|
+
export * as Interface from './interface.js';
|
|
5
5
|
export const SParams = s.object({
|
|
6
6
|
clientKey: s.string(),
|
|
7
7
|
apiEndpoint: s.string(),
|
package/build/esm/interface.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Resource from './resources/interface';
|
|
1
|
+
export * as Resource from './resources/interface.js';
|
package/build/esm/interface.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as Resource from './resources/interface';
|
|
1
|
+
export * as Resource from './resources/interface.js';
|
|
2
2
|
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Crypto } from '@voiceflow/common';
|
|
2
|
-
import Fetch, { FetchConfig } from './fetch';
|
|
3
|
-
import { Analytics, APIKey, Diagram, Note, Program, Project, ProjectSecret, PrototypeProgram, VariableState, Version } from './resources';
|
|
2
|
+
import Fetch, { FetchConfig } from './fetch.js';
|
|
3
|
+
import { Analytics, APIKey, Diagram, Note, Program, Project, ProjectSecret, PrototypeProgram, VariableState, Version } from './resources/index.js';
|
|
4
4
|
export interface ClientOptions {
|
|
5
5
|
options?: FetchConfig;
|
|
6
6
|
clientKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Fetch from './fetch';
|
|
2
|
-
import { Analytics, APIKey, Diagram, Note, Program, Project, ProjectSecret, PrototypeProgram, VariableState, Version } from './resources';
|
|
1
|
+
import Fetch from './fetch.js';
|
|
2
|
+
import { Analytics, APIKey, Diagram, Note, Program, Project, ProjectSecret, PrototypeProgram, VariableState, Version } from './resources/index.js';
|
|
3
3
|
export class PublicClient {
|
|
4
4
|
constructor({ clientKey, apiEndpoint, authorization, options, analyticsEncryption }) {
|
|
5
5
|
this.fetch = new Fetch({ clientKey, apiEndpoint, authorization, options });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Fetcher from '../fetcher';
|
|
2
|
-
import Queue from './queue';
|
|
1
|
+
import Fetcher from '../fetcher.js';
|
|
2
|
+
import Queue from './queue.js';
|
|
3
3
|
const ENDPOINT = 'analytics';
|
|
4
4
|
const ENCRYPTED_ENDPOINT = 'vf-ping';
|
|
5
5
|
// can not have async execution on FE window.addEventListener('beforeunload', ...) process thread
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import CrudResource from './crud';
|
|
3
|
+
import CrudResource from './crud.js';
|
|
4
4
|
export declare const modelIDKey = "_id";
|
|
5
5
|
export declare type ModelIDKey = typeof modelIDKey;
|
|
6
6
|
declare class APIKeyResource extends CrudResource<BaseModels.ApiKey.Model, ModelIDKey, APIKeyResource> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyRecord } from '@voiceflow/common';
|
|
2
|
-
import Fetcher, { FetcherOptions } from './fetcher';
|
|
2
|
+
import Fetcher, { FetcherOptions } from './fetcher.js';
|
|
3
3
|
export declare type Fields = readonly string[];
|
|
4
4
|
export declare type BaseResourceOptions<Client extends AnyRecord, Options = undefined> = FetcherOptions<Client, Options>;
|
|
5
5
|
declare class BaseResource<Client extends AnyRecord, Options = undefined> extends Fetcher<Client, Options> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PutPostType, SchemeType } from
|
|
1
|
+
import type { PutPostType, SchemeType } from '../types.js';
|
|
2
2
|
import type { AnyRecord } from '@voiceflow/common';
|
|
3
|
-
import BaseResource, { Fields } from './base';
|
|
3
|
+
import BaseResource, { Fields } from './base.js';
|
|
4
4
|
declare class CrudResource<Scheme extends AnyRecord, ID extends keyof SchemeType<Scheme>, Client extends Record<string, any>, Exclude extends keyof SchemeType<Scheme> = never> extends BaseResource<Client> {
|
|
5
5
|
protected _getCRUDEndpoint(id?: SchemeType<Scheme>[ID]): string;
|
|
6
6
|
protected _get<T extends Partial<SchemeType<Scheme>>>(fields: Fields): Promise<T[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PutPostType, SchemeType } from
|
|
1
|
+
import type { PutPostType, SchemeType } from '../types.js';
|
|
2
2
|
import type { AnyRecord } from '@voiceflow/common';
|
|
3
|
-
import BaseResource, { BaseResourceOptions, Fields } from './base';
|
|
3
|
+
import BaseResource, { BaseResourceOptions, Fields } from './base.js';
|
|
4
4
|
declare type NestedCrudResourceOptions<Client extends AnyRecord, Options extends {
|
|
5
5
|
parentEndpoint: string;
|
|
6
6
|
}> = BaseResourceOptions<Client, Options>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import CrudResource from './crud';
|
|
3
|
+
import CrudResource from './crud.js';
|
|
4
4
|
export declare const modelIDKey = "_id";
|
|
5
5
|
export declare type ModelIDKey = typeof modelIDKey;
|
|
6
6
|
declare class DiagramResource extends CrudResource<BaseModels.Diagram.Model, ModelIDKey, DiagramResource, 'modified'> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch.js';
|
|
2
2
|
declare type Clazz<Client, Options = undefined> = Options extends undefined ? new (fetch: Fetch) => Client : new (fetch: Fetch, options: Options) => Client;
|
|
3
3
|
interface BaseFetcherOptions<Client, Options = undefined> {
|
|
4
4
|
fetch: Fetch;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { default as Analytics } from './analytics';
|
|
2
|
-
export { default as APIKey } from './apiKey';
|
|
3
|
-
export { default as Diagram } from './diagram';
|
|
4
|
-
export { default as Note } from './note';
|
|
5
|
-
export { default as Program } from './program';
|
|
6
|
-
export { default as Project } from './project';
|
|
7
|
-
export { default as ProjectSecret } from './projectSecret';
|
|
8
|
-
export { default as PrototypeProgram } from './prototypeProgram';
|
|
9
|
-
export { default as User } from './user';
|
|
10
|
-
export { default as VariableState } from './variableState';
|
|
11
|
-
export { default as Version } from './version';
|
|
1
|
+
export { default as Analytics } from './analytics/index.js';
|
|
2
|
+
export { default as APIKey } from './apiKey.js';
|
|
3
|
+
export { default as Diagram } from './diagram.js';
|
|
4
|
+
export { default as Note } from './note.js';
|
|
5
|
+
export { default as Program } from './program.js';
|
|
6
|
+
export { default as Project } from './project/index.js';
|
|
7
|
+
export { default as ProjectSecret } from './projectSecret.js';
|
|
8
|
+
export { default as PrototypeProgram } from './prototypeProgram.js';
|
|
9
|
+
export { default as User } from './user.js';
|
|
10
|
+
export { default as VariableState } from './variableState.js';
|
|
11
|
+
export { default as Version } from './version/index.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { default as Analytics } from './analytics';
|
|
2
|
-
export { default as APIKey } from './apiKey';
|
|
3
|
-
export { default as Diagram } from './diagram';
|
|
4
|
-
export { default as Note } from './note';
|
|
5
|
-
export { default as Program } from './program';
|
|
6
|
-
export { default as Project } from './project';
|
|
7
|
-
export { default as ProjectSecret } from './projectSecret';
|
|
8
|
-
export { default as PrototypeProgram } from './prototypeProgram';
|
|
9
|
-
export { default as User } from './user';
|
|
10
|
-
export { default as VariableState } from './variableState';
|
|
11
|
-
export { default as Version } from './version';
|
|
1
|
+
export { default as Analytics } from './analytics/index.js';
|
|
2
|
+
export { default as APIKey } from './apiKey.js';
|
|
3
|
+
export { default as Diagram } from './diagram.js';
|
|
4
|
+
export { default as Note } from './note.js';
|
|
5
|
+
export { default as Program } from './program.js';
|
|
6
|
+
export { default as Project } from './project/index.js';
|
|
7
|
+
export { default as ProjectSecret } from './projectSecret.js';
|
|
8
|
+
export { default as PrototypeProgram } from './prototypeProgram.js';
|
|
9
|
+
export { default as User } from './user.js';
|
|
10
|
+
export { default as VariableState } from './variableState.js';
|
|
11
|
+
export { default as Version } from './version/index.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Project from './project/interface';
|
|
1
|
+
export * as Project from './project/interface.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as Project from './project/interface';
|
|
1
|
+
export * as Project from './project/interface.js';
|
|
2
2
|
//# sourceMappingURL=interface.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Fetch from
|
|
1
|
+
import Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import BaseResource from './base';
|
|
3
|
+
import BaseResource from './base.js';
|
|
4
4
|
export declare const ENDPOINT = "notes";
|
|
5
5
|
export declare type ModelKey = 'id';
|
|
6
6
|
declare class NoteResource extends BaseResource<NoteResource> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import { Fields } from './base';
|
|
4
|
-
import CrudResource from './crud';
|
|
3
|
+
import { Fields } from './base.js';
|
|
4
|
+
import CrudResource from './crud.js';
|
|
5
5
|
export declare const modelIDKey = "id";
|
|
6
6
|
export declare type ModelIDKey = typeof modelIDKey;
|
|
7
7
|
declare class ProgramResource extends CrudResource<BaseModels.Program.Model, ModelIDKey, ProgramResource> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
3
|
import { AnyRecord } from '@voiceflow/common';
|
|
4
|
-
import { Fields } from '../base';
|
|
5
|
-
import CrudResource from '../crud';
|
|
6
|
-
import { UpdateMetadataBody } from './interface';
|
|
7
|
-
import MemberResource from './member';
|
|
4
|
+
import { Fields } from '../base.js';
|
|
5
|
+
import CrudResource from '../crud.js';
|
|
6
|
+
import { UpdateMetadataBody } from './interface.js';
|
|
7
|
+
import MemberResource from './member.js';
|
|
8
8
|
export declare const modelIDKey = "_id";
|
|
9
9
|
export declare type ModelIDKey = typeof modelIDKey;
|
|
10
10
|
declare class ProjectResource extends CrudResource<BaseModels.Project.Model<AnyRecord, AnyRecord>, ModelIDKey, ProjectResource, 'creatorID'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CrudResource from '../crud';
|
|
2
|
-
import { ENDPOINT } from './constants';
|
|
3
|
-
import MemberResource from './member';
|
|
1
|
+
import CrudResource from '../crud.js';
|
|
2
|
+
import { ENDPOINT } from './constants.js';
|
|
3
|
+
import MemberResource from './member.js';
|
|
4
4
|
export const modelIDKey = '_id';
|
|
5
5
|
class ProjectResource extends CrudResource {
|
|
6
6
|
constructor(fetch) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Fetch, { PathVariables } from
|
|
1
|
+
import Fetch, { PathVariables } from '../../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
3
|
import { AnyRecord } from '@voiceflow/common';
|
|
4
|
-
import BaseResource, { Fields } from '../base';
|
|
4
|
+
import BaseResource, { Fields } from '../base.js';
|
|
5
5
|
export declare const modelIDKey = "creatorID";
|
|
6
6
|
export declare type ModelIDKey = typeof modelIDKey;
|
|
7
7
|
declare class MemberResource extends BaseResource<MemberResource> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseResource from '../base';
|
|
2
|
-
import { ENDPOINT } from './constants';
|
|
1
|
+
import BaseResource from '../base.js';
|
|
2
|
+
import { ENDPOINT } from './constants.js';
|
|
3
3
|
export const modelIDKey = 'creatorID';
|
|
4
4
|
class MemberResource extends BaseResource {
|
|
5
5
|
constructor(fetch) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Fetch from
|
|
1
|
+
import type Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import BaseResource from './base';
|
|
3
|
+
import BaseResource from './base.js';
|
|
4
4
|
declare class ProjectSecretResource extends BaseResource<ProjectSecretResource> {
|
|
5
5
|
constructor(fetch: Fetch);
|
|
6
6
|
findByProjectID(projectID: string, tag: number): Promise<BaseModels.ProjectSecret.Model>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Fetch from
|
|
1
|
+
import Fetch from '../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import { Fields } from './base';
|
|
4
|
-
import CrudResource from './crud';
|
|
3
|
+
import { Fields } from './base.js';
|
|
4
|
+
import CrudResource from './crud.js';
|
|
5
5
|
export declare const ENDPOINT = "variable-states";
|
|
6
6
|
export declare type ModelKey = '_id';
|
|
7
7
|
declare class VariableStateResource extends CrudResource<BaseModels.VariableState.Model, ModelKey, VariableStateResource, 'projectID' | 'name'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Fetch from
|
|
1
|
+
import Fetch from '../../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import CrudNestedResource from '../crudNested';
|
|
3
|
+
import CrudNestedResource from '../crudNested.js';
|
|
4
4
|
export declare type ModelKey = 'id';
|
|
5
5
|
declare class CanvasTemplateResource extends CrudNestedResource<string, BaseModels.Version.CanvasTemplate, ModelKey, CanvasTemplateResource> {
|
|
6
6
|
constructor(fetch: Fetch, { parentEndpoint }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Fetch from
|
|
1
|
+
import Fetch from '../../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import CrudNestedResource from '../crudNested';
|
|
3
|
+
import CrudNestedResource from '../crudNested.js';
|
|
4
4
|
export declare type ModelKey = 'diagramID';
|
|
5
5
|
declare class DiagramResource extends CrudNestedResource<string, BaseModels.Diagram.Model, ModelKey, DiagramResource> {
|
|
6
6
|
constructor(fetch: Fetch, { parentEndpoint }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Fetch from
|
|
1
|
+
import Fetch from '../../fetch.js';
|
|
2
2
|
import { BaseModels } from '@voiceflow/base-types';
|
|
3
|
-
import CrudNestedResource from '../crudNested';
|
|
3
|
+
import CrudNestedResource from '../crudNested.js';
|
|
4
4
|
export declare type ModelKey = 'id';
|
|
5
5
|
declare class DomainResource extends CrudNestedResource<string, BaseModels.Version.Domain, ModelKey, DomainResource> {
|
|
6
6
|
constructor(fetch: Fetch, { parentEndpoint }: {
|