Skip to content

Commit

Permalink
Merge branch 'main' into kelvinwari/ext-293-lastpass-user-provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
khaliqgant authored Dec 18, 2024
2 parents 665f158 + 7008080 commit d4b87de
Show file tree
Hide file tree
Showing 25 changed files with 801 additions and 90 deletions.
44 changes: 44 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Elastic License 2.0 (ELv2)

**Acceptance**
By using the software, you agree to all of the terms and conditions below.

**Copyright License**
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below

**Limitations**
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.

You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.

You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.

**Patents**
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.

**Notices**
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.

If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.

**No Other Rights**
These terms do not imply any licenses other than those expressly granted in these terms.

**Termination**
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.

**No Liability**
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.

**Definitions**
The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.

_you_ refers to the individual or entity agreeing to these terms.

_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.

_your licenses_ are all the licenses granted to you for the software under these terms.

_use_ means anything you do with the software requiring one of your licenses.

_trademark_ means trademarks, service marks, and similar rights.
1 change: 1 addition & 0 deletions LICENSE_SHORT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) 2024 Nango Inc, all rights reserved.
53 changes: 43 additions & 10 deletions flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3497,16 +3497,17 @@ integrations:
is_escalated: boolean
front:
syncs:
list-conversations:
conversations:
runs: every day
description: List the conversations in the company in reverse chronological order.
output: Conversation
endpoint:
method: GET
path: /conversations
group: Conversations
track_deletes: true
sync_type: full
version: 1.0.1
version: 1.0.2
actions:
conversation:
description: >-
Expand Down Expand Up @@ -4301,6 +4302,23 @@ integrations:
endpoint:
method: GET
path: /tickets
group: Tickets
version: 1.0.1
actions:
create-ticket:
description: |
Creates a new ticket
input: CreateTicketInput
scopes:
- tickets:write
- account:read
- customers:write
- customers:read
endpoint:
method: POST
path: /ticket
group: Tickets
output: Ticket
models:
Ticket:
id: number
Expand All @@ -4313,15 +4331,15 @@ integrations:
sms | twitter | twitter-direct-message | whatsapp | yotpo-review
closed_datetime: string | null
created_datetime: string | null
excerpt: string
excerpt?: string | undefined
external_id: string | null
from_agent: boolean
integrations: array | null
integrations?: array | null | undefined
is_unread: boolean
language: string | null
last_message_datetime: string | null
last_received_message_datetime: string | null
messages_count: number
messages_count?: number | undefined
messages: Message[]
meta: object | null
opened_datetime: string | null
Expand All @@ -4334,7 +4352,7 @@ integrations:
uri: string | null
decoration: object | null
created_datetime: string | null
deleted_datetime: string | null
deleted_datetime?: string | null | undefined
spam: boolean | null
trashed_datetime: string | null
updated_datetime: string | null
Expand Down Expand Up @@ -4378,8 +4396,8 @@ integrations:
public: boolean
from_agent: boolean
sender: RecieverSender
receiver: RecieverSender
attachments: Attachment[]
receiver: RecieverSender | null
attachments: Attachment[] | null
meta: object | null
headers: object | null
actions: array | null
Expand All @@ -4389,8 +4407,8 @@ integrations:
failed_datetime: string | null
last_sending_error: object | null
deleted_datetime: string | null
replied_by: string | null
replied_to: string | null
replied_by?: string | null | undefined
replied_to?: string | null | undefined
AssigneeUser:
id: number
firstname: string
Expand Down Expand Up @@ -4418,6 +4436,21 @@ integrations:
content_type: string
public: boolean
extra: string | null
CreateTicketInput:
customer:
phone_number: string
email?: string | undefined
ticket:
messages: CreateTicketMessage[]
CreateTicketMessage:
attachments:
- url: string
name: string
size: number
content_type: string
body_html: string
body_text: string
id: string
greenhouse-basic:
syncs:
applications:
Expand Down
1 change: 0 additions & 1 deletion integrations/avalara-sandbox/schema.zod.ts

This file was deleted.

1 change: 0 additions & 1 deletion integrations/bill-sandbox/schema.zod.ts

This file was deleted.

1 change: 0 additions & 1 deletion integrations/docusign-sandbox/schema.zod.ts

This file was deleted.

1 change: 1 addition & 0 deletions integrations/front/actions/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default async function runAction(nango: NangoAction, input: SingleConvers
paginate: {
type: 'link',
response_path: '_results',
limit_name_in_request: 'limit',
link_path_in_response_body: 'next',
limit: 100
}
Expand Down
5 changes: 3 additions & 2 deletions integrations/front/nango.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
integrations:
front:
syncs:
list-conversations:
conversations:
runs: every day
description: List the conversations in the company in reverse chronological order.
output: Conversation
endpoint:
method: GET
path: /conversations
group: Conversations
track_deletes: true
sync_type: full
version: 1.0.1
version: 1.0.2
actions:
conversation:
description: List the messages in a conversation in reverse chronological order (newest first).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!-- BEGIN GENERATED CONTENT -->
# List Conversations
# Conversations

## General Information

- **Description:** List the conversations in the company in reverse chronological order.
- **Version:** 1.0.1
- **Version:** 1.0.2
- **Group:** Others
- **Scopes:** _None_
- **Endpoint Type:** Sync
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/front/syncs/list-conversations.ts)
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/front/syncs/conversations.ts)


## Endpoint Reference
Expand Down Expand Up @@ -74,8 +74,8 @@ _No request body_

## Changelog

- [Script History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/list-conversations.ts)
- [Documentation History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/list-conversations.md)
- [Script History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/conversations.ts)
- [Documentation History](https://github.com/NangoHQ/integration-templates/commits/main/integrations/front/syncs/conversations.md)

<!-- END GENERATED CONTENT -->

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { vi, expect, it, describe } from 'vitest';

import fetchData from '../syncs/list-conversations.js';
import fetchData from '../syncs/conversations.js';

describe('front list-conversations tests', () => {
describe('front conversations tests', () => {
const nangoMock = new global.vitest.NangoSyncMock({
dirname: __dirname,
name: 'list-conversations',
name: 'conversations',
Model: 'Conversation'
});

Expand Down
114 changes: 114 additions & 0 deletions integrations/github-app/schema.zod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// Generated by ts-to-zod
import { z } from 'zod';

export const repositorySchema = z.object({
allow_forking: z.boolean(),
archive_url: z.string(),
archived: z.boolean(),
assignees_url: z.string(),
blobs_url: z.string(),
branches_url: z.string(),
clone_url: z.string(),
collaborators_url: z.string(),
comments_url: z.string(),
commits_url: z.string(),
compare_url: z.string(),
contents_url: z.string(),
contributors_url: z.string(),
created_at: z.string(),
default_branch: z.string(),
deployments_url: z.string(),
description: z.string(),
disabled: z.boolean(),
downloads_url: z.string(),
events_url: z.string(),
fork: z.boolean(),
forks: z.number(),
forks_count: z.number(),
forks_url: z.string(),
full_name: z.string(),
git_commits_url: z.string(),
git_refs_url: z.string(),
git_tags_url: z.string(),
git_url: z.string(),
has_discussions: z.boolean(),
has_downloads: z.boolean(),
has_issues: z.boolean(),
has_pages: z.boolean(),
has_projects: z.boolean(),
has_wiki: z.boolean(),
homepage: z.string().nullable(),
hooks_url: z.string(),
html_url: z.string(),
id: z.number(),
is_template: z.boolean(),
issue_comment_url: z.string(),
issue_events_url: z.string(),
issues_url: z.string(),
keys_url: z.string(),
labels_url: z.string(),
language: z.string(),
languages_url: z.string(),
license: z.string().nullable(),
merges_url: z.string(),
milestones_url: z.string(),
mirror_url: z.string().nullable(),
name: z.string(),
node_id: z.string(),
notifications_url: z.string(),
open_issues: z.number(),
open_issues_count: z.number(),
owner: z.object({
avatar_url: z.string(),
events_url: z.string(),
followers_url: z.string(),
following_url: z.string(),
gists_url: z.string(),
gravatar_id: z.string(),
html_url: z.string(),
id: z.number(),
login: z.string(),
node_id: z.string(),
organizations_url: z.string(),
received_events_url: z.string(),
repos_url: z.string(),
site_admin: z.boolean(),
starred_url: z.string(),
subscriptions_url: z.string(),
type: z.string(),
url: z.string()
}),
permissions: z.object({
admin: z.boolean(),
maintain: z.boolean(),
pull: z.boolean(),
push: z.boolean(),
triage: z.boolean()
}),
private: z.boolean(),
pulls_url: z.string(),
pushed_at: z.string(),
releases_url: z.string(),
size: z.number(),
ssh_url: z.string(),
stargazers_count: z.number(),
stargazers_url: z.string(),
statuses_url: z.string(),
subscribers_url: z.string(),
subscription_url: z.string(),
svn_url: z.string(),
tags_url: z.string(),
teams_url: z.string(),
topics: z.array(z.string()),
trees_url: z.string(),
updated_at: z.string(),
url: z.string(),
visibility: z.string(),
watchers: z.number(),
watchers_count: z.number(),
web_commit_signoff_required: z.boolean()
});

export const repoResponseSchema = z.object({
repositories: z.array(repositorySchema)
});
Loading

0 comments on commit d4b87de

Please sign in to comment.