Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
chore: format codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelrk committed Aug 9, 2023
1 parent c27921a commit 75561c5
Show file tree
Hide file tree
Showing 32 changed files with 2,257 additions and 2,223 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"netzo/": "https://deno.land/x/[email protected]/",
"@/": "./"
}
}
}
2 changes: 1 addition & 1 deletion lib/apis/_create-api/auth/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const auth = async (
);
headers.Authorization = token_type
? `${token_type} ${access_token}`
: access_token;;
: access_token;
}

options.query = { ...options.query, ...query };
Expand Down
2 changes: 1 addition & 1 deletion lib/apis/airtable/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export const airtable = ({
},
});

return { api };
return { api };
};
13 changes: 7 additions & 6 deletions lib/apis/airtable/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ interface RecordObject {
}

export interface Records {
records: Array<RecordObject & {
createdTime: string
}
>
records: Array<
RecordObject & {
createdTime: string;
}
>;
}

export interface QueryRecords {
Expand Down Expand Up @@ -49,7 +50,7 @@ export interface QueryDeleteRecords {

export interface RecordsDeleted {
records: Array<{
deleted: boolean
deleted: boolean;
id: string;
}>
}>;
}
180 changes: 90 additions & 90 deletions lib/apis/hubspot/types.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
interface ContactBase {
properties: {
company: string
createdate: string
email: string
firstname: string
lastmodifieddate: string
lastname: string
phone: string
website: string
}
company: string;
createdate: string;
email: string;
firstname: string;
lastmodifieddate: string;
lastname: string;
phone: string;
website: string;
};
}

export interface Contacts {
results: ContactBase[]
results: ContactBase[];
paging: {
next: {
after: string
link: string
}
}
after: string;
link: string;
};
};
}

export interface QueryContacts {
Expand All @@ -41,65 +41,65 @@ export interface AddContactResponse extends ContactBase {
}

export interface Form {
portalId: number
guid: string
name: string
action: string
method: string
cssClass: string
redirect: string
submitText: string
followUpId: string
notifyRecipients: string
leadNurturingCampaignId: string
formFieldGroups: Array<{
fields: Array<{
name: string
label: string
type: string
fieldType: string
description: string
groupName: string
displayOrder: number
required: boolean
selectedOptions: Array<any>
options: Array<any>
validation: {
name: string
message: string
data: string
useDefaultBlockList: boolean
blockedEmailAddresses: Array<any>
}
enabled: boolean
hidden: boolean
defaultValue: string
isSmartField: boolean
unselectedLabel: string
placeholder: string
dependentFieldFilters: Array<any>
labelHidden: boolean
}>
default: boolean
isSmartGroup: boolean
richText: {
content: string
}
}>
createdAt: number
updatedAt: number
performableHtml: string
migratedFrom: string
ignoreCurrentValues: boolean
metaData: Array<any>
deletable: boolean
inlineMessage: string
tmsId: string
captchaEnabled: boolean
campaignGuid: string
cloneable: boolean
editable: boolean
formType: string
portalId: number;
guid: string;
name: string;
action: string;
method: string;
cssClass: string;
redirect: string;
submitText: string;
followUpId: string;
notifyRecipients: string;
leadNurturingCampaignId: string;
formFieldGroups: Array<{
fields: Array<{
name: string;
label: string;
type: string;
fieldType: string;
description: string;
groupName: string;
displayOrder: number;
required: boolean;
selectedOptions: Array<any>;
options: Array<any>;
validation: {
name: string;
message: string;
data: string;
useDefaultBlockList: boolean;
blockedEmailAddresses: Array<any>;
};
enabled: boolean;
hidden: boolean;
defaultValue: string;
isSmartField: boolean;
unselectedLabel: string;
placeholder: string;
dependentFieldFilters: Array<any>;
labelHidden: boolean;
}>;
default: boolean;
isSmartGroup: boolean;
richText: {
content: string;
};
}>;
createdAt: number;
updatedAt: number;
performableHtml: string;
migratedFrom: string;
ignoreCurrentValues: boolean;
metaData: Array<any>;
deletable: boolean;
inlineMessage: string;
tmsId: string;
captchaEnabled: boolean;
campaignGuid: string;
cloneable: boolean;
editable: boolean;
formType: string;
}

export interface QueryForms {
Expand All @@ -110,19 +110,19 @@ export interface QueryForms {

export interface FormSubmissions {
results: Array<{
submittedAt: number
submittedAt: number;
values: Array<{
name: string
value: string
}>
pageUrl?: string
}>
name: string;
value: string;
}>;
pageUrl?: string;
}>;
paging: {
next: {
after: string
link: string
}
}
after: string;
link: string;
};
};
}

export interface QuerySubmissions {
Expand Down Expand Up @@ -150,13 +150,13 @@ interface DealBase {
}

export interface Deals {
results: DealBase[]
paging: {
next: {
after: string
link: string
}
}
results: DealBase[];
paging: {
next: {
after: string;
link: string;
};
};
}

export interface QueryAddDeal {
Expand Down
2 changes: 1 addition & 1 deletion lib/apis/notion/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export type {
NotionPagination,
Page,
Pages,
QueryProperties,
QueryDatabase,
QueryProperties,
Users,
} from "./types.ts";

Expand Down
32 changes: 16 additions & 16 deletions lib/apis/notion/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ export interface QueryProperties {

export interface Pages {
object: string;
results: Page[],
next_cursor: any,
has_more: false,
type: string,
[key: string]: {} //type value becomes the key name
results: Page[];
next_cursor: any;
has_more: false;
type: string;
[key: string]: {}; //type value becomes the key name
}

export interface Block {
object: string,
results:Array<{
object: string;
results: Array<{
object: string;
id: string;
parent: {
Expand All @@ -73,12 +73,12 @@ export interface Block {
};
has_children: boolean;
archived: boolean;
[key: string]: {};
}>,
next_cursor: any,
has_more: false,
type: string,
[key: string]: {} //type value becomes the key name
[key: string]: {};
}>;
next_cursor: any;
has_more: false;
type: string;
[key: string]: {}; //type value becomes the key name
}

interface UserBase {
Expand Down Expand Up @@ -106,9 +106,9 @@ interface BotUser extends UserBase {
}

export interface Users {
results: Array<PersonUser | BotUser>
next_cursor: string,
has_more: boolean
results: Array<PersonUser | BotUser>;
next_cursor: string;
has_more: boolean;
}

export interface QueryDatabase extends NotionPagination {
Expand Down
6 changes: 3 additions & 3 deletions lib/apis/pipedrive/mod.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { createApi } from "../_create-api/mod.ts";
import { auth } from "../_create-api/auth/mod.ts";
export type {
AddOrUpdateDealResponse,
AddOrUpdatePersonResponse,
Deals,
DeleteResponse,
Persons,
QueryAddDeal,
QueryAddPerson,
Expand All @@ -13,9 +16,6 @@ export type {
QueryUpdatePerson,
SearchDealsResponse,
SearchPersonsResponse,
AddOrUpdatePersonResponse,
AddOrUpdateDealResponse,
DeleteResponse
} from "./types.ts";

export interface PipeDriveOptions {
Expand Down
Loading

0 comments on commit 75561c5

Please sign in to comment.