From 2870aa61557122a9c926362728fa62a3b530379c Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Tue, 10 Dec 2024 06:37:54 +0100 Subject: [PATCH] releasing oint (#45) --- sdks/sdk-openint/openint.oas.json | 104 ++++++++++++++++++++++-- sdks/sdk-openint/openint.oas.types.d.ts | 48 ++++++++++- sdks/sdk-openint/package.json | 2 +- 3 files changed, 140 insertions(+), 14 deletions(-) diff --git a/sdks/sdk-openint/openint.oas.json b/sdks/sdk-openint/openint.oas.json index ce5ef7f..b57fb80 100644 --- a/sdks/sdk-openint/openint.oas.json +++ b/sdks/sdk-openint/openint.oas.json @@ -404,7 +404,12 @@ "name": "connectorName", "schema": {"type": ["string", "null"]} }, - {"in": "query", "name": "forceRefresh", "schema": {"type": "boolean"}} + { + "in": "query", + "name": "forceRefresh", + "schema": {"type": "boolean"} + }, + {"in": "query", "name": "expand", "schema": {"type": "string"}} ], "responses": { "200": { @@ -413,7 +418,36 @@ "application/json": { "schema": { "type": "array", - "items": {"$ref": "#/components/schemas/Resource"} + "items": { + "allOf": [{"$ref": "#/components/schemas/Resource"}], + "type": "object", + "properties": { + "integration": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "string", + "description": "Must start with 'int_'" + }, + "name": {"type": "string"}, + "logoUrl": {"type": "string", "format": "uri"} + }, + "required": ["id", "name", "logoUrl"] + }, + "connector": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "string", + "description": "Must start with 'ccfg_'" + }, + "name": {"type": "string"}, + "logoUrl": {"type": "string", "format": "uri"} + }, + "required": ["id", "name", "logoUrl"] + } + } + } } } } @@ -589,7 +623,12 @@ }, "required": true }, - {"in": "query", "name": "forceRefresh", "schema": {"type": "boolean"}} + { + "in": "query", + "name": "forceRefresh", + "schema": {"type": "boolean"} + }, + {"in": "query", "name": "expand", "schema": {"type": "string"}} ], "responses": { "200": { @@ -614,6 +653,30 @@ "connectorName": {"type": "string"} }, "required": ["id", "orgId", "connectorName"] + }, + "integration": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "string", + "description": "Must start with 'int_'" + }, + "name": {"type": "string"}, + "logoUrl": {"type": "string", "format": "uri"} + }, + "required": ["id", "name", "logoUrl"] + }, + "connector": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "string", + "description": "Must start with 'ccfg_'" + }, + "name": {"type": "string"}, + "logoUrl": {"type": "string", "format": "uri"} + }, + "required": ["id", "name", "logoUrl"] } }, "required": ["connector_config"] @@ -6810,7 +6873,18 @@ "name": "driveId", "schema": {"type": "string"}, "required": true - } + }, + { + "in": "query", + "name": "sync_mode", + "schema": {"type": "string", "enum": ["full", "incremental"]} + }, + { + "in": "query", + "name": "cursor", + "schema": {"type": ["string", "null"]} + }, + {"in": "query", "name": "page_size", "schema": {"type": "number"}} ], "responses": { "200": { @@ -6930,6 +7004,17 @@ "schema": {"type": "string"}, "required": true }, + { + "in": "query", + "name": "sync_mode", + "schema": {"type": "string", "enum": ["full", "incremental"]} + }, + { + "in": "query", + "name": "cursor", + "schema": {"type": ["string", "null"]} + }, + {"in": "query", "name": "page_size", "schema": {"type": "number"}}, { "in": "query", "name": "folderId", @@ -7296,8 +7381,8 @@ "prefix_connector_name", "single_table", "unified_ats", - "ag_column_rename", - "unified_crm" + "unified_crm", + "custom_link_ag" ] }, "core.integration": { @@ -8330,15 +8415,16 @@ "properties": { "id": {"type": "string"}, "name": {"type": "string"}, - "file_url": {"type": "string"}, - "mimeType": {"type": ["string", "null"]}, + "file_url": {"type": ["string", "null"]}, + "download_url": {"type": ["string", "null"]}, + "mime_type": {"type": ["string", "null"]}, "size": {"type": ["number", "null"]}, "drive_id": {"type": "string"}, "created_at": {"type": ["string", "null"]}, "modified_at": {"type": ["string", "null"]}, "raw_data": {"type": "object", "additionalProperties": {}} }, - "required": ["id", "name", "file_url", "drive_id"], + "required": ["id", "name", "drive_id"], "description": "A unified representation of a file within a drive" } } diff --git a/sdks/sdk-openint/openint.oas.types.d.ts b/sdks/sdk-openint/openint.oas.types.d.ts index 283f2fa..3e607d5 100644 --- a/sdks/sdk-openint/openint.oas.types.d.ts +++ b/sdks/sdk-openint/openint.oas.types.d.ts @@ -607,8 +607,8 @@ export interface components { | 'prefix_connector_name' | 'single_table' | 'unified_ats' - | 'ag_column_rename' | 'unified_crm' + | 'custom_link_ag' 'core.integration': { id: string /** @description ISO8601 date string */ @@ -1269,8 +1269,9 @@ export interface components { 'unified.file': { id: string name: string - file_url: string - mimeType?: string | null + file_url?: string | null + download_url?: string | null + mime_type?: string | null size?: number | null drive_id: string created_at?: string | null @@ -1513,13 +1514,29 @@ export interface operations { connectorConfigId?: string | null connectorName?: string | null forceRefresh?: boolean + expand?: string } } responses: { /** @description Successful response */ 200: { content: { - 'application/json': components['schemas']['Resource'][] + 'application/json': ({ + integration?: { + /** @description Must start with 'int_' */ + id: string + name: string + /** Format: uri */ + logoUrl: string + } | null + connector?: { + /** @description Must start with 'ccfg_' */ + id: string + name: string + /** Format: uri */ + logoUrl: string + } | null + } & components['schemas']['Resource'])[] } } /** @description Invalid input data */ @@ -1593,6 +1610,7 @@ export interface operations { parameters: { query?: { forceRefresh?: boolean + expand?: string } path: { id: string @@ -1611,6 +1629,20 @@ export interface operations { orgId: string connectorName: string } + integration?: { + /** @description Must start with 'int_' */ + id: string + name: string + /** Format: uri */ + logoUrl: string + } | null + connector?: { + /** @description Must start with 'ccfg_' */ + id: string + name: string + /** Format: uri */ + logoUrl: string + } | null } & components['schemas']['Resource'], 'connector_config' > @@ -5505,6 +5537,11 @@ export interface operations { /** List folders */ 'fileStorage-listFolders': { parameters: { + query?: { + sync_mode?: 'full' | 'incremental' + cursor?: string | null + page_size?: number + } path: { driveId: string } @@ -5579,6 +5616,9 @@ export interface operations { 'fileStorage-listFiles': { parameters: { query?: { + sync_mode?: 'full' | 'incremental' + cursor?: string | null + page_size?: number folderId?: string | null } path: { diff --git a/sdks/sdk-openint/package.json b/sdks/sdk-openint/package.json index fe94f82..477b869 100644 --- a/sdks/sdk-openint/package.json +++ b/sdks/sdk-openint/package.json @@ -1,6 +1,6 @@ { "name": "@opensdks/sdk-openint", - "version": "0.0.15", + "version": "0.0.17", "type": "module", "exports": { ".": {