Skip to content

Commit 6b088ca

Browse files
authored
Merge pull request #947 from trycompai/claudio/stripe
[dev] [claudfuen] claudio/stripe
2 parents 0bb7d79 + 987b257 commit 6b088ca

359 files changed

Lines changed: 767 additions & 940 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"plugins": ["prettier-plugin-tailwindcss"],
2+
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-organize-imports"],
33
"semi": true,
44
"singleQuote": true,
55
"tabWidth": 2,

apps/app/customPrismaExtension.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { BuildManifest } from '@trigger.dev/build';
2-
import { binaryForRuntime, BuildContext, BuildExtension } from '@trigger.dev/build';
1+
import { binaryForRuntime, BuildContext, BuildExtension, BuildManifest } from '@trigger.dev/build';
32
import assert from 'node:assert';
43
import { existsSync, statSync } from 'node:fs';
54
import { cp, readdir } from 'node:fs/promises';

apps/app/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import './src/env.mjs';
21
import type { NextConfig } from 'next';
2+
import './src/env.mjs';
33

44
const config: NextConfig = {
55
poweredByHeader: false,

apps/app/src/actions/add-comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import { AppError, appErrors } from '@/lib/errors';
44
import { db } from '@comp/db';
5+
import { CommentEntityType } from '@comp/db/types';
56
import { revalidatePath } from 'next/cache';
67
import { headers } from 'next/headers';
78
import { z } from 'zod';
89
import { authActionClient } from './safe-action';
9-
import { CommentEntityType } from '@comp/db/types';
1010

1111
export const addCommentAction = authActionClient
1212
.inputSchema(

apps/app/src/actions/comments/deleteComment.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use server';
22

3+
import { extractS3KeyFromUrl, s3Client } from '@/app/s3';
4+
import { auth } from '@/utils/auth';
5+
import { DeleteObjectCommand } from '@aws-sdk/client-s3';
36
import { db } from '@comp/db';
47
import { revalidatePath } from 'next/cache';
5-
import { z } from 'zod';
6-
import { DeleteObjectCommand } from '@aws-sdk/client-s3';
7-
import { auth } from '@/utils/auth';
88
import { headers } from 'next/headers';
9-
import { s3Client, extractS3KeyFromUrl } from '@/app/s3';
9+
import { z } from 'zod';
1010

1111
const schema = z.object({
1212
commentId: z.string(),

apps/app/src/actions/comments/deleteCommentAttachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use server';
22

33
import { authActionClient } from '@/actions/safe-action';
4+
import { BUCKET_NAME, extractS3KeyFromUrl, s3Client } from '@/app/s3';
45
import { DeleteObjectCommand } from '@aws-sdk/client-s3';
56
import { db } from '@comp/db';
67
import { AttachmentEntityType } from '@comp/db/types';
78
import { revalidatePath } from 'next/cache';
89
import { z } from 'zod';
9-
import { s3Client, BUCKET_NAME, extractS3KeyFromUrl } from '@/app/s3';
1010

1111
const schema = z.object({
1212
attachmentId: z.string(),

apps/app/src/actions/comments/getCommentAttachmentUrl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use server';
22

3+
import { BUCKET_NAME, extractS3KeyFromUrl, s3Client } from '@/app/s3';
4+
import { auth } from '@/utils/auth';
35
import { GetObjectCommand } from '@aws-sdk/client-s3';
46
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
57
import { db } from '@comp/db';
68
import { AttachmentEntityType } from '@comp/db/types';
7-
import { z } from 'zod';
8-
import { s3Client, BUCKET_NAME, extractS3KeyFromUrl } from '@/app/s3';
9-
import { auth } from '@/utils/auth';
109
import { headers } from 'next/headers';
10+
import { z } from 'zod';
1111

1212
const schema = z.object({
1313
attachmentId: z.string(),

apps/app/src/actions/comments/updateComment.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use server';
22

3+
import { BUCKET_NAME, extractS3KeyFromUrl, s3Client } from '@/app/s3';
4+
import { auth } from '@/utils/auth';
5+
import { DeleteObjectCommand } from '@aws-sdk/client-s3';
36
import { db } from '@comp/db';
47
import { AttachmentEntityType, Comment } from '@comp/db/types';
58
import { revalidatePath } from 'next/cache';
6-
import { z } from 'zod';
7-
import { auth } from '@/utils/auth';
89
import { headers } from 'next/headers';
9-
import { BUCKET_NAME, extractS3KeyFromUrl, s3Client } from '@/app/s3';
10-
import { DeleteObjectCommand } from '@aws-sdk/client-s3';
10+
import { z } from 'zod';
1111

1212
const schema = z
1313
.object({

apps/app/src/actions/context-hub/create-context-entry-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use server';
22

3+
import { db } from '@comp/db';
34
import { revalidatePath } from 'next/cache';
45
import { headers } from 'next/headers';
56
import { authActionClient } from '../safe-action';
67
import { createContextEntrySchema } from '../schema';
7-
import { db } from '@comp/db';
88

99
export const createContextEntryAction = authActionClient
1010
.inputSchema(createContextEntrySchema)

apps/app/src/actions/context-hub/delete-context-entry-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use server';
22

3+
import { db } from '@comp/db';
34
import { revalidatePath } from 'next/cache';
45
import { headers } from 'next/headers';
56
import { authActionClient } from '../safe-action';
67
import { deleteContextEntrySchema } from '../schema';
7-
import { db } from '@comp/db';
88

99
export const deleteContextEntryAction = authActionClient
1010
.inputSchema(deleteContextEntrySchema)

0 commit comments

Comments
 (0)