diff --git a/.changeset/smart-donkeys-confess.md b/.changeset/smart-donkeys-confess.md new file mode 100644 index 000000000..70f5ea4e8 --- /dev/null +++ b/.changeset/smart-donkeys-confess.md @@ -0,0 +1,5 @@ +--- +"panora-sdk": major +--- + +small fix diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 103ed0e9a..23df795a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,8 @@ jobs: - name: Install dependencies run: pnpm install - working-directory: api + working-directory: packages/api - name: Lint, Build & Test run: pnpm run ci - working-directory: api + working-directory: packages/api diff --git a/package.json b/package.json index ee109d0ee..d7b51dbb4 100644 --- a/package.json +++ b/package.json @@ -23,5 +23,9 @@ }, "dependencies": { "@changesets/cli": "^2.26.2" - } + }, + "private": true, + "workspaces": [ + "packages/*" + ] } diff --git a/api/.env.example b/packages/api/.env.example similarity index 100% rename from api/.env.example rename to packages/api/.env.example diff --git a/api/.eslintrc.js b/packages/api/.eslintrc.js similarity index 100% rename from api/.eslintrc.js rename to packages/api/.eslintrc.js diff --git a/api/.gitignore b/packages/api/.gitignore similarity index 100% rename from api/.gitignore rename to packages/api/.gitignore diff --git a/api/.prettierrc b/packages/api/.prettierrc similarity index 100% rename from api/.prettierrc rename to packages/api/.prettierrc diff --git a/api/README.md b/packages/api/README.md similarity index 100% rename from api/README.md rename to packages/api/README.md diff --git a/api/bun.lockb b/packages/api/bun.lockb similarity index 100% rename from api/bun.lockb rename to packages/api/bun.lockb diff --git a/api/db_update_prisma.sh b/packages/api/db_update_prisma.sh similarity index 100% rename from api/db_update_prisma.sh rename to packages/api/db_update_prisma.sh diff --git a/api/nest-cli.json b/packages/api/nest-cli.json similarity index 100% rename from api/nest-cli.json rename to packages/api/nest-cli.json diff --git a/api/package.json b/packages/api/package.json similarity index 100% rename from api/package.json rename to packages/api/package.json diff --git a/api/pnpm-lock.yaml b/packages/api/pnpm-lock.yaml similarity index 100% rename from api/pnpm-lock.yaml rename to packages/api/pnpm-lock.yaml diff --git a/api/prisma/migrations/20231023135023_init/migration.sql b/packages/api/prisma/migrations/20231023135023_init/migration.sql similarity index 100% rename from api/prisma/migrations/20231023135023_init/migration.sql rename to packages/api/prisma/migrations/20231023135023_init/migration.sql diff --git a/api/prisma/migrations/20231024140507_init/migration.sql b/packages/api/prisma/migrations/20231024140507_init/migration.sql similarity index 100% rename from api/prisma/migrations/20231024140507_init/migration.sql rename to packages/api/prisma/migrations/20231024140507_init/migration.sql diff --git a/api/prisma/migrations/migration_lock.toml b/packages/api/prisma/migrations/migration_lock.toml similarity index 100% rename from api/prisma/migrations/migration_lock.toml rename to packages/api/prisma/migrations/migration_lock.toml diff --git a/api/prisma/schema.prisma b/packages/api/prisma/schema.prisma similarity index 100% rename from api/prisma/schema.prisma rename to packages/api/prisma/schema.prisma diff --git a/api/src/app.controller.spec.ts b/packages/api/src/app.controller.spec.ts similarity index 100% rename from api/src/app.controller.spec.ts rename to packages/api/src/app.controller.spec.ts diff --git a/api/src/app.controller.ts b/packages/api/src/app.controller.ts similarity index 100% rename from api/src/app.controller.ts rename to packages/api/src/app.controller.ts diff --git a/api/src/app.module.ts b/packages/api/src/app.module.ts similarity index 100% rename from api/src/app.module.ts rename to packages/api/src/app.module.ts diff --git a/api/src/app.service.ts b/packages/api/src/app.service.ts similarity index 100% rename from api/src/app.service.ts rename to packages/api/src/app.service.ts diff --git a/api/src/crm/contact/contact.controller.spec.ts b/packages/api/src/crm/contact/contact.controller.spec.ts similarity index 100% rename from api/src/crm/contact/contact.controller.spec.ts rename to packages/api/src/crm/contact/contact.controller.spec.ts diff --git a/api/src/crm/contact/contact.controller.ts b/packages/api/src/crm/contact/contact.controller.ts similarity index 100% rename from api/src/crm/contact/contact.controller.ts rename to packages/api/src/crm/contact/contact.controller.ts diff --git a/api/src/crm/contact/contact.module.ts b/packages/api/src/crm/contact/contact.module.ts similarity index 100% rename from api/src/crm/contact/contact.module.ts rename to packages/api/src/crm/contact/contact.module.ts diff --git a/api/src/crm/contact/dto/create-contact.dto.ts b/packages/api/src/crm/contact/dto/create-contact.dto.ts similarity index 100% rename from api/src/crm/contact/dto/create-contact.dto.ts rename to packages/api/src/crm/contact/dto/create-contact.dto.ts diff --git a/api/src/crm/contact/dto/update-contact.dto.ts b/packages/api/src/crm/contact/dto/update-contact.dto.ts similarity index 100% rename from api/src/crm/contact/dto/update-contact.dto.ts rename to packages/api/src/crm/contact/dto/update-contact.dto.ts diff --git a/api/src/crm/contact/entities/contact.entity.ts b/packages/api/src/crm/contact/entities/contact.entity.ts similarity index 100% rename from api/src/crm/contact/entities/contact.entity.ts rename to packages/api/src/crm/contact/entities/contact.entity.ts diff --git a/api/src/crm/contact/services/contact.service.spec.ts b/packages/api/src/crm/contact/services/contact.service.spec.ts similarity index 100% rename from api/src/crm/contact/services/contact.service.spec.ts rename to packages/api/src/crm/contact/services/contact.service.spec.ts diff --git a/api/src/crm/contact/services/contact.service.ts b/packages/api/src/crm/contact/services/contact.service.ts similarity index 100% rename from api/src/crm/contact/services/contact.service.ts rename to packages/api/src/crm/contact/services/contact.service.ts diff --git a/api/src/crm/contact/services/freshsales/index.ts b/packages/api/src/crm/contact/services/freshsales/index.ts similarity index 100% rename from api/src/crm/contact/services/freshsales/index.ts rename to packages/api/src/crm/contact/services/freshsales/index.ts diff --git a/api/src/crm/contact/services/hubspot/index.ts b/packages/api/src/crm/contact/services/hubspot/index.ts similarity index 100% rename from api/src/crm/contact/services/hubspot/index.ts rename to packages/api/src/crm/contact/services/hubspot/index.ts diff --git a/api/src/crm/contact/services/pipedrive/index.ts b/packages/api/src/crm/contact/services/pipedrive/index.ts similarity index 100% rename from api/src/crm/contact/services/pipedrive/index.ts rename to packages/api/src/crm/contact/services/pipedrive/index.ts diff --git a/api/src/crm/contact/services/zendesk/index.ts b/packages/api/src/crm/contact/services/zendesk/index.ts similarity index 100% rename from api/src/crm/contact/services/zendesk/index.ts rename to packages/api/src/crm/contact/services/zendesk/index.ts diff --git a/api/src/crm/contact/services/zoho/index.ts b/packages/api/src/crm/contact/services/zoho/index.ts similarity index 100% rename from api/src/crm/contact/services/zoho/index.ts rename to packages/api/src/crm/contact/services/zoho/index.ts diff --git a/api/src/crm/crm.module.ts b/packages/api/src/crm/crm.module.ts similarity index 100% rename from api/src/crm/crm.module.ts rename to packages/api/src/crm/crm.module.ts diff --git a/api/src/main.ts b/packages/api/src/main.ts similarity index 100% rename from api/src/main.ts rename to packages/api/src/main.ts diff --git a/api/src/prisma/prisma.service.ts b/packages/api/src/prisma/prisma.service.ts similarity index 100% rename from api/src/prisma/prisma.service.ts rename to packages/api/src/prisma/prisma.service.ts diff --git a/api/test/app.e2e-spec.ts b/packages/api/test/app.e2e-spec.ts similarity index 92% rename from api/test/app.e2e-spec.ts rename to packages/api/test/app.e2e-spec.ts index 50cda6233..0012dcd2c 100644 --- a/api/test/app.e2e-spec.ts +++ b/packages/api/test/app.e2e-spec.ts @@ -1,7 +1,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { INestApplication } from '@nestjs/common'; import * as request from 'supertest'; -import { AppModule } from './../src/app.module'; +import { AppModule } from '../src/app.module'; describe('AppController (e2e)', () => { let app: INestApplication; diff --git a/api/test/jest-e2e.json b/packages/api/test/jest-e2e.json similarity index 100% rename from api/test/jest-e2e.json rename to packages/api/test/jest-e2e.json diff --git a/api/tsconfig.build.json b/packages/api/tsconfig.build.json similarity index 100% rename from api/tsconfig.build.json rename to packages/api/tsconfig.build.json diff --git a/api/tsconfig.json b/packages/api/tsconfig.json similarity index 100% rename from api/tsconfig.json rename to packages/api/tsconfig.json diff --git a/sdk/.eslintrc.json b/packages/sdk/.eslintrc.json similarity index 100% rename from sdk/.eslintrc.json rename to packages/sdk/.eslintrc.json diff --git a/sdk/.gitignore b/packages/sdk/.gitignore similarity index 100% rename from sdk/.gitignore rename to packages/sdk/.gitignore diff --git a/sdk/README.md b/packages/sdk/README.md similarity index 100% rename from sdk/README.md rename to packages/sdk/README.md diff --git a/sdk/index.ts b/packages/sdk/index.ts similarity index 95% rename from sdk/index.ts rename to packages/sdk/index.ts index 282850b6a..0bafe772f 100644 --- a/sdk/index.ts +++ b/packages/sdk/index.ts @@ -19,7 +19,7 @@ type ContactBody = { export default class PanoraApiClient { - static readonly API_URL = ""; + static readonly API_URL = "test-api"; constructor(){} diff --git a/sdk/package.json b/packages/sdk/package.json similarity index 100% rename from sdk/package.json rename to packages/sdk/package.json diff --git a/sdk/pnpm-lock.yaml b/packages/sdk/pnpm-lock.yaml similarity index 100% rename from sdk/pnpm-lock.yaml rename to packages/sdk/pnpm-lock.yaml diff --git a/sdk/scripts/update_sdk.sh b/packages/sdk/scripts/update_sdk.sh similarity index 100% rename from sdk/scripts/update_sdk.sh rename to packages/sdk/scripts/update_sdk.sh diff --git a/sdk/tsconfig.json b/packages/sdk/tsconfig.json similarity index 100% rename from sdk/tsconfig.json rename to packages/sdk/tsconfig.json