Skip to content

Commit 746a85a

Browse files
authored
Change imports in examples (#121)
1 parent c24b8ac commit 746a85a

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

src/examples/assignThread.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlainClient } from '../client';
1+
import { PlainClient } from '../index';
22

33
export async function assignThread() {
44
const client = new PlainClient({

src/examples/createAttachmentUploadUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AttachmentType, PlainClient } from '../';
1+
import { AttachmentType, PlainClient } from '../index';
22

33
export async function createAttachmentUploadUrl() {
44
const client = new PlainClient({ apiKey: process.env.API_KEY || '' });

src/examples/createThread.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { PlainClient } from '../client';
2-
import { ComponentTextColor, ComponentTextSize } from '../graphql/types';
3-
import { uiComponent } from '../ui-components';
1+
import { ComponentTextColor, ComponentTextSize, PlainClient, uiComponent } from '../index';
42

53
export async function createThread() {
64
const client = new PlainClient({ apiKey: 'XXX' });

src/examples/threadFields.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { PlainClient } from '../client';
2-
import { ThreadFieldSchemaType } from '../graphql/types';
1+
import { PlainClient, ThreadFieldSchemaType } from '../index';
32

43
const client = new PlainClient({
54
apiKey: process.env.API_KEY || '',

src/examples/upsertCustomer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlainClient } from '../client';
1+
import { PlainClient } from '../index';
22

33
export async function createCustomer() {
44
const client = new PlainClient({ apiKey: process.env.API_KEY || '' });

0 commit comments

Comments
 (0)