Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mit-27/Panora into fix-sync…
Browse files Browse the repository at this point in the history
…-feature
  • Loading branch information
mit-27 committed May 29, 2024
2 parents a214ec5 + 233555d commit 4c23ba5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 17 deletions.
6 changes: 1 addition & 5 deletions docs/api-reference/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ Our unified API has predictable resource-oriented URLs, accepts form-encoded req
## Base URL

<Tabs>
<Tab title="US Servers">
<Tab title="Cloud">
```https://api.panora.dev/```
</Tab>

<Tab title="EU Servers">
```https://api-eu.panora.dev/```
</Tab>

<Tab title="Self-Hosted">
```http://localhost:3000/```
</Tab>
Expand Down
Binary file added docs/logo/fav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/logo/favicon.png
Binary file not shown.
17 changes: 13 additions & 4 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"analytics": {
"posthog": {
"apiKey": "phc_WhWJfNPOHAuWVdyTacGxrPa9JW54scnofA9KVEjFcFw"
}
},
"hotjar": {
"hjid": "5154921",
"hjsv": "e2Bs3cIPcF08ngtrjwX+JBB8"
}
},
"api": {
"baseUrl": "https://api.panora.dev",
Expand All @@ -20,11 +24,16 @@
"default": "light",
"isHidden": false
},
"feedback": {
"thumbsRating": true,
"suggestEdit": true,
"raiseIssue": true
},
"logo": {
"dark": "/logo/logo-panora-white-hq.png",
"light": "/logo/logo-panora-white.png"
},
"favicon": "logo/favicon.png",
"favicon": "logo/fav.png",
"colors": {
"primary": "#085faf",
"light": "#085faf",
Expand All @@ -50,7 +59,7 @@
},
"tabs": [
{
"name": "Crm",
"name": "CRM",
"url": "crm"
},
{
Expand Down Expand Up @@ -162,7 +171,7 @@
"group": "Unified Objects",
"pages": [
{
"group": "Crm",
"group": "CRM",
"pages": [
{
"group": "Contact",
Expand Down
8 changes: 4 additions & 4 deletions packages/api/scripts/connectorUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function updateEnumFile(enumFilePath, newServiceDirs, vertical) {
const base = vertical.substring(0, 1).toUpperCase() + vertical.substring(1);

// Define the enum name to be updated based on the vertical
let enumName = `${base}Providers`;
let enumName = `${base}Connectors`;
// Extract the enum content
const enumRegex = new RegExp(`export enum ${enumName} {([\\s\\S]*?)}\n`, 'm');
const match = fileContent.match(enumRegex);
Expand Down Expand Up @@ -328,9 +328,9 @@ function updateObjectTypes(baseDir, objectType, vertical) {
// Extract the current provider arrays from providers.ts and enum.ts
const providersFilePath = path.join(
__dirname,
'../../shared/src/providers.ts',
'../../shared/src/connectors/index.ts',
);
const enumFilePath = path.join(__dirname, '../../shared/src/enum.ts');
const enumFilePath = path.join(__dirname, '../../shared/src/connectors/enum.ts');
const currentProviders = extractArrayFromFile(
providersFilePath,
`${vertical.toUpperCase()}_PROVIDERS`,
Expand Down Expand Up @@ -377,7 +377,7 @@ function updateObjectTypes(baseDir, objectType, vertical) {
baseDir,
objectType,
);
console.log(importStatements)
// console.log(importStatements)
updateTargetFile(targetFile, importStatements, possibleProviderForImportStatements, objectType);
}

Expand Down
16 changes: 12 additions & 4 deletions packages/api/src/@core/utils/types/original/original.ticketing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export type OriginalUserInput =
| JiraUserInput;
//| JiraServiceMgmtUserInput;
/* account */
export type OriginalAccountInput = ZendeskAccountInput | FrontAccountInput;
export type OriginalAccountInput =
| ZendeskAccountInput
| FrontAccountInput;
/* contact */
export type OriginalContactInput =
| ZendeskContactInput
Expand All @@ -178,7 +180,9 @@ export type OriginalTeamInput =

/* attachment */
export type OriginalAttachmentInput = null;
export type OriginalCollectionInput = JiraCollectionInput | GitlabCollectionInput;
export type OriginalCollectionInput =
| JiraCollectionInput
| GitlabCollectionInput;

export type TicketingObjectInput =
| OriginalTicketInput
Expand Down Expand Up @@ -217,7 +221,9 @@ export type OriginalUserOutput =
| GorgiasUserOutput
| JiraUserOutput;
/* account */
export type OriginalAccountOutput = ZendeskAccountOutput | FrontAccountOutput;
export type OriginalAccountOutput =
| ZendeskAccountOutput
| FrontAccountOutput;
/* contact */
export type OriginalContactOutput =
| ZendeskContactOutput
Expand Down Expand Up @@ -247,7 +253,9 @@ export type OriginalAttachmentOutput =

/* collection */

export type OriginalCollectionOutput = JiraCollectionOutput | GitlabCollectionOutput;
export type OriginalCollectionOutput =
| JiraCollectionOutput
| GitlabCollectionOutput;


export type TicketingObjectOutput =
Expand Down

0 comments on commit 4c23ba5

Please sign in to comment.