diff --git a/airbyte-integrations/connectors/source-gainsight-px/.dockerignore b/airbyte-integrations/connectors/source-gainsight-px/.dockerignore deleted file mode 100644 index 8f1f9150d35a2..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -* -!Dockerfile -!main.py -!source_gainsight_px -!setup.py -!secrets diff --git a/airbyte-integrations/connectors/source-gainsight-px/__init__.py b/airbyte-integrations/connectors/source-gainsight-px/__init__.py index c941b30457953..66f6de8cb2bb5 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/__init__.py +++ b/airbyte-integrations/connectors/source-gainsight-px/__init__.py @@ -1,3 +1,3 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # diff --git a/airbyte-integrations/connectors/source-gainsight-px/integration_tests/__init__.py b/airbyte-integrations/connectors/source-gainsight-px/integration_tests/__init__.py index c941b30457953..66f6de8cb2bb5 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/integration_tests/__init__.py +++ b/airbyte-integrations/connectors/source-gainsight-px/integration_tests/__init__.py @@ -1,3 +1,3 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # diff --git a/airbyte-integrations/connectors/source-gainsight-px/integration_tests/acceptance.py b/airbyte-integrations/connectors/source-gainsight-px/integration_tests/acceptance.py index 9e6409236281f..aaeb7f6c2529d 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/integration_tests/acceptance.py +++ b/airbyte-integrations/connectors/source-gainsight-px/integration_tests/acceptance.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # diff --git a/airbyte-integrations/connectors/source-gainsight-px/main.py b/airbyte-integrations/connectors/source-gainsight-px/main.py index 35146e9ca9729..006111c1acf20 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/main.py +++ b/airbyte-integrations/connectors/source-gainsight-px/main.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # from source_gainsight_px.run import run diff --git a/airbyte-integrations/connectors/source-gainsight-px/metadata.yaml b/airbyte-integrations/connectors/source-gainsight-px/metadata.yaml index a8de2b2eea2c3..f415cd88dc049 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/metadata.yaml +++ b/airbyte-integrations/connectors/source-gainsight-px/metadata.yaml @@ -16,7 +16,7 @@ data: connectorSubtype: api connectorType: source definitionId: 0da3b186-8879-4e94-8738-55b48762f1e8 - dockerImageTag: 0.1.1 + dockerImageTag: 0.1.2 dockerRepository: airbyte/source-gainsight-px githubIssueLabel: source-gainsight-px icon: gainsight-px.svg diff --git a/airbyte-integrations/connectors/source-gainsight-px/pyproject.toml b/airbyte-integrations/connectors/source-gainsight-px/pyproject.toml index 1a0384aaaf270..c786797cd5e47 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/pyproject.toml +++ b/airbyte-integrations/connectors/source-gainsight-px/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.1" +version = "0.1.2" name = "source-gainsight-px" description = "Source implementation for Gainsight Px." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/__init__.py b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/__init__.py index c0d02e94d0472..2f32d2c29c966 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/__init__.py +++ b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/__init__.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/manifest.yaml b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/manifest.yaml index add2abba9f207..edd163510e662 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/manifest.yaml +++ b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/manifest.yaml @@ -1,149 +1,899 @@ -version: "0.29.0" +version: 0.78.1 -definitions: - selector: - type: RecordSelector - extractor: - type: DpathExtractor - field_path: [] +type: DeclarativeSource - custom_selector: - type: RecordSelector - extractor: - type: DpathExtractor - field_path: ["{{ parameters.extractorPath }}"] +check: + type: CheckStream + stream_names: + - admin_attributes + - user_attributes - requester: +definitions: + streams: + accounts: + type: DeclarativeStream + name: accounts + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /accounts + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - accounts + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/accounts" + admin_attributes: + type: DeclarativeStream + name: admin_attributes + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /admin/model/account/attributes + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: [] + paginator: + type: DefaultPaginator + page_token_option: + type: RequestOption + inject_into: request_parameter + field_name: scrollId + pagination_strategy: + type: CursorPagination + page_size: 5 + cursor_value: "{{ last_record['scrollId'] }}" + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/admin_attributes" + articles: + type: DeclarativeStream + name: articles + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /articles + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - articleExternalViewList + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/articles" + feature: + type: DeclarativeStream + name: feature + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /feature + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - features + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/feature" + segments: + type: DeclarativeStream + name: segments + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /segment + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - segments + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/segments" + kcbot: + type: DeclarativeStream + name: kcbot + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /kcbot + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - kcList + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/kcbot" + user_attributes: + type: DeclarativeStream + name: user_attributes + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /admin/model/user/attributes + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: [] + paginator: + type: DefaultPaginator + page_token_option: + type: RequestOption + inject_into: request_parameter + field_name: scrollId + pagination_strategy: + type: CursorPagination + page_size: 5 + cursor_value: "{{ last_record['scrollId'] }}" + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/user_attributes" + users: + type: DeclarativeStream + name: users + primary_key: + - id + retriever: + type: SimpleRetriever + requester: + $ref: "#/definitions/base_requester" + path: /users + http_method: GET + record_selector: + type: RecordSelector + extractor: + type: DpathExtractor + field_path: + - users + schema_loader: + type: InlineSchemaLoader + schema: + $ref: "#/schemas/users" + base_requester: type: HttpRequester - url_base: "https://api.aptrinsic.com/v1/" - http_method: "GET" + url_base: https://api.aptrinsic.com/v1 authenticator: type: ApiKeyAuthenticator - header: "X-APTRINSIC-API-KEY" api_token: "{{ config['api_key'] }}" + inject_into: + type: RequestOption + inject_into: header + field_name: X-APTRINSIC-API-KEY - retriever: - type: SimpleRetriever - paginator: - type: "DefaultPaginator" - pagination_strategy: - type: "CursorPagination" - cursor_value: "{{ last_record['scrollId'] }}" - page_size: 5 - page_token_option: - type: "RequestPath" - field_name: "scrollId" - inject_into: "request_parameter" - requester: - $ref: "#/definitions/requester" - record_selector: - $ref: "#/definitions/selector" - - custom_retriever: - type: SimpleRetriever - paginator: - type: NoPagination - requester: - $ref: "#/definitions/requester" - record_selector: - $ref: "#/definitions/custom_selector" - - base_stream: - type: DeclarativeStream - retriever: - $ref: "#/definitions/retriever" - - accounts_stream: - $parameters: - path: "accounts" - extractorPath: "accounts" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "accounts" - primary_key: "id" - - admin_attributes_stream: - $parameters: - path: "admin/model/account/attributes" - $ref: "#/definitions/base_stream" - name: "admin_attributes" - primary_key: "id" - - articles_stream: - $parameters: - path: "articles" - extractorPath: "articleExternalViewList" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "articles" - primary_key: "id" - - feature_stream: - $parameters: - path: "feature" - extractorPath: "features" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "feature" - primary_key: "id" - - segments_stream: - $parameters: - path: "segment" - extractorPath: "segments" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "segments" - - kcbot_stream: - $parameters: - path: "kcbot" - extractorPath: "kcList" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "kcbot" - primary_key: "id" +streams: + - $ref: "#/definitions/streams/accounts" + - $ref: "#/definitions/streams/admin_attributes" + - $ref: "#/definitions/streams/articles" + - $ref: "#/definitions/streams/feature" + - $ref: "#/definitions/streams/segments" + - $ref: "#/definitions/streams/kcbot" + - $ref: "#/definitions/streams/user_attributes" + - $ref: "#/definitions/streams/users" - user_attributes_stream: - $parameters: - path: "admin/model/user/attributes" - $ref: "#/definitions/base_stream" - name: "user_attributes" - primary_key: "id" +spec: + type: Spec + connection_specification: + type: object + $schema: http://json-schema.org/draft-07/schema# + required: + - api_key + properties: + api_key: + type: string + title: API Key + airbyte_secret: true + description: >- + The Aptrinsic API Key which is recieved from the dashboard settings + (ref - https://app.aptrinsic.com/settings/api-keys) + order: 0 + additionalProperties: true - users_stream: - $parameters: - path: "users" - extractorPath: "users" - type: DeclarativeStream - retriever: - $ref: "#/definitions/custom_retriever" - name: "users" - primary_key: "id" +metadata: + autoImportSchema: + accounts: false + admin_attributes: false + articles: false + feature: false + segments: false + kcbot: false + user_attributes: false + users: false -streams: - - "#/definitions/accounts_stream" - - "#/definitions/admin_attributes_stream" - - "#/definitions/articles_stream" - - "#/definitions/feature_stream" - - "#/definitions/segments_stream" - - "#/definitions/kcbot_stream" - - "#/definitions/user_attributes_stream" - - "#/definitions/users_stream" - -check: - type: CheckStream - stream_names: - - "accounts" - - "admin_attributes" - - "articles" - - "feature" - - "segments" - - "kcbot" - - "user_attributes" - - "users" +schemas: + accounts: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + createDate: + type: + - "null" + - string + customAttributes: + type: + - "null" + - object + additionalProperties: true + dunsNumber: + type: + - "null" + - string + id: + type: + - "null" + - string + industry: + type: + - "null" + - string + lastModifiedDate: + type: + - "null" + - string + lastSeenDate: + type: + - "null" + - string + location: + type: + - "null" + - string + naicsCode: + type: + - "null" + - string + name: + type: + - "null" + - string + numberOfEmployees: + type: + - "null" + - string + numberOfUsers: + type: + - "null" + - string + parentGroupId: + type: + - "null" + - string + plan: + type: + - "null" + - string + propertyKeys: + type: + - "null" + - array + items: + location: + type: + - "null" + - string + sfdcId: + type: + - "null" + - string + sicCode: + type: + - "null" + - string + trackedSubscriptionId: + type: + - "null" + - string + website: + type: + - "null" + - string + title: Accounts Schema + admin_attributes: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + type: + type: + - "null" + - string + apiName: + type: + - "null" + - string + createdDate: + type: + - "null" + - number + defaultValue: + type: + - "null" + - string + description: + type: + - "null" + - string + id: + type: + - "null" + - string + internalName: + type: + - "null" + - string + modifiedDate: + type: + - "null" + - number + name: + type: + - "null" + - string + origin: + type: + - "null" + - string + state: + type: + - "null" + - string + title: User Attributes Schema + articles: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + articleKCs: + type: + - "null" + - array + items: + type: + - "null" + - object + additionalProperties: true + properties: + kcId: + type: + - "null" + - string + kcName: + type: + - "null" + - string + articleName: + type: + - "null" + - string + author: + type: + - "null" + - string + createdDate: + type: + - "null" + - number + id: + type: + - "null" + - string + modifiedBy: + type: + - "null" + - object + additionalProperties: true + properties: + id: + type: + - "null" + - string + name: + type: + - "null" + - string + modifiedDate: + type: + - "null" + - number + productId: + type: + - "null" + - string + productName: + type: + - "null" + - string + releaseDate: + type: + - "null" + - string + viewType: + type: + - "null" + - string + title: Articles Schema + feature: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + type: + type: + - "null" + - string + enum: + - FEATURE + - MODULE + featureLabels: + type: + - "null" + - object + additionalProperties: true + properties: + color: + type: + - "null" + - string + id: + type: + - "null" + - string + name: + type: + - "null" + - string + id: + type: + - "null" + - string + name: + type: + - "null" + - string + parentFeatureId: + type: + - "null" + - string + propertyKey: + type: + - "null" + - string + status: + type: + - "null" + - string + enum: + - ACTIVATED + - DELETED + title: Feature Schema + segments: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + id: + type: + - "null" + - string + name: + type: + - "null" + - string + title: Segment Schema + kcbot: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + createdBy: + type: + - "null" + - object + additionalProperties: true + properties: + id: + type: + - "null" + - string + name: + type: + - "null" + - string + createdDate: + type: + - "null" + - number + description: + type: + - "null" + - string + environments: + type: + - "null" + - array + items: + type: + - "null" + - string + id: + type: + - "null" + - string + modifiedBy: + type: + - "null" + - object + additionalProperties: true + properties: + id: + type: + - "null" + - string + name: + type: + - "null" + - string + modifiedDate: + type: + - "null" + - number + name: + type: + - "null" + - string + priority: + type: + - "null" + - number + productId: + type: + - "null" + - string + productName: + type: + - "null" + - string + status: + type: + - "null" + - string + title: KCBot Schema + user_attributes: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + type: + type: + - "null" + - string + apiName: + type: + - "null" + - string + createdDate: + type: + - "null" + - number + defaultValue: + type: + - "null" + - string + description: + type: + - "null" + - string + id: + type: + - "null" + - string + internalName: + type: + - "null" + - string + modifiedDate: + type: + - "null" + - number + name: + type: + - "null" + - string + origin: + type: + - "null" + - string + state: + type: + - "null" + - string + title: User Attributes Schema + users: + type: + - "null" + - object + $schema: http://json-schema.org/draft-07/schema# + additionalProperties: true + properties: + type: + type: + - "null" + - string + enum: + - LEAD + - USER + - VISITOR + - EMPTY_USER_TYPE + accountId: + type: + - "null" + - string + aptrinsicId: + type: + - "null" + - string + createDate: + type: + - "null" + - integer + format: int64 + email: + type: + - "null" + - string + firstName: + type: + - "null" + - string + firstVisitDate: + type: + - "null" + - integer + format: int64 + gender: + type: + - "null" + - string + enum: + - MALE + - FEMALE + - OTHER + - EMPTY_GENDER + globalUnsubscribe: + type: + - "null" + - boolean + id: + type: + - "null" + - string + description: Synonym for identifyId, output only, not filterable + identifyId: + type: + - "null" + - string + lastInferredLocation: + type: + - "null" + - object + additionalProperties: true + properties: + city: + type: + - "null" + - string + continent: + type: + - "null" + - string + coordinates: + type: + - "null" + - object + additionalProperties: true + properties: + latitude: + type: + - "null" + - number + longitude: + type: + - "null" + - number + countryCode: + type: + - "null" + - string + countryName: + type: + - "null" + - string + postalCode: + type: + - "null" + - string + regionName: + type: + - "null" + - string + stateCode: + type: + - "null" + - string + stateName: + type: + - "null" + - string + street: + type: + - "null" + - string + timeZone: + type: + - "null" + - string + lastModifiedDate: + type: + - "null" + - integer + format: int64 + lastName: + type: + - "null" + - string + lastSeenDate: + type: + - "null" + - integer + format: int64 + lastVisitedUserAgentData: + type: + - "null" + - array + items: + propertyKey: + type: + - "null" + - string + userAgent: + type: + - "null" + - object + additionalProperties: true + properties: + browserType: + type: + - "null" + - string + browserVersion: + type: + - "null" + - string + device: + type: + - "null" + - string + platformType: + type: + - "null" + - string + platformVersion: + type: + - "null" + - string + rawUserAgent: + type: + - "null" + - string + location: + type: + - "null" + - string + numberOfVisits: + type: + - "null" + - integer + format: int32 + phone: + type: + - "null" + - string + propertyKeys: + type: + - "null" + - array + description: Aptrinsic Tag Key, at least one is required + examples: + - - AP-XXXXXXXXXX-2 + items: + type: + - "null" + - string + role: + type: + - "null" + - string + score: + type: + - "null" + - integer + format: int64 + sfdcContactId: + type: + - "null" + - string + signUpDate: + type: + - "null" + - integer + format: int64 + subscriptionId: + type: + - "null" + - string + title: + type: + - "null" + - string + title: Users Schema diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py index f0e263867dd85..97008a8814eb3 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py +++ b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py @@ -6,7 +6,8 @@ import sys from airbyte_cdk.entrypoint import launch -from source_gainsight_px import SourceGainsightPx + +from .source import SourceGainsightPx def run(): diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/accounts.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/accounts.json deleted file mode 100644 index a1a30710c6f8a..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/accounts.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Accounts Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "trackedSubscriptionId": { - "type": ["null", "string"] - }, - "sfdcId": { - "type": ["null", "string"] - }, - "lastSeenDate": { - "type": ["null", "string"] - }, - "dunsNumber": { - "type": ["null", "string"] - }, - "industry": { - "type": ["null", "string"] - }, - "numberOfEmployees": { - "type": ["null", "string"] - }, - "sicCode": { - "type": ["null", "string"] - }, - "website": { - "type": ["null", "string"] - }, - "naicsCode": { - "type": ["null", "string"] - }, - "plan": { - "type": ["null", "string"] - }, - "location": { - "type": ["null", "string"] - }, - "numberOfUsers": { - "type": ["null", "string"] - }, - "propertyKeys": { - "type": ["null", "array"], - "items": { - "location": { - "type": ["null", "string"] - } - } - }, - "createDate": { - "type": ["null", "string"] - }, - "lastModifiedDate": { - "type": ["null", "string"] - }, - "customAttributes": { - "type": ["null", "object"], - "additionalProperties": true - }, - "parentGroupId": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/admin_attributes.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/admin_attributes.json deleted file mode 100644 index ac6e73995f9d4..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/admin_attributes.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "User Attributes Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "apiName": { - "type": ["null", "string"] - }, - "internalName": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "origin": { - "type": ["null", "string"] - }, - "createdDate": { - "type": ["null", "number"] - }, - "modifiedDate": { - "type": ["null", "number"] - }, - "defaultValue": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/articles.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/articles.json deleted file mode 100644 index 1143e451f009a..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/articles.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Articles Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "modifiedBy": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - } - } - }, - "articleKCs": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "kcId": { - "type": ["null", "string"] - }, - "kcName": { - "type": ["null", "string"] - } - } - } - }, - "articleName": { - "type": ["null", "string"] - }, - "author": { - "type": ["null", "string"] - }, - "createdDate": { - "type": ["null", "number"] - }, - "modifiedDate": { - "type": ["null", "number"] - }, - "productId": { - "type": ["null", "string"] - }, - "productName": { - "type": ["null", "string"] - }, - "releaseDate": { - "type": ["null", "string"] - }, - "viewType": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/feature.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/feature.json deleted file mode 100644 index 064d1979189a0..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/feature.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Feature Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"], - "enum": ["FEATURE", "MODULE"] - }, - "parentFeatureId": { - "type": ["null", "string"] - }, - "propertyKey": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"], - "enum": ["ACTIVATED", "DELETED"] - }, - "featureLabels": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "color": { - "type": ["null", "string"] - } - } - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/kcbot.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/kcbot.json deleted file mode 100644 index 13e357d4d841d..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/kcbot.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "KCBot Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "createdBy": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - } - } - }, - "createdDate": { - "type": ["null", "number"] - }, - "description": { - "type": ["null", "string"] - }, - "environments": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "id": { - "type": ["null", "string"] - }, - "modifiedBy": { - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - } - } - }, - "modifiedDate": { - "type": ["null", "number"] - }, - "name": { - "type": ["null", "string"] - }, - "priority": { - "type": ["null", "number"] - }, - "productId": { - "type": ["null", "string"] - }, - "productName": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/segments.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/segments.json deleted file mode 100644 index 1382369c2a865..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/segments.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Segment Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/user_attributes.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/user_attributes.json deleted file mode 100644 index ac6e73995f9d4..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/user_attributes.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "User Attributes Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "apiName": { - "type": ["null", "string"] - }, - "internalName": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "origin": { - "type": ["null", "string"] - }, - "createdDate": { - "type": ["null", "number"] - }, - "modifiedDate": { - "type": ["null", "number"] - }, - "defaultValue": { - "type": ["null", "string"] - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/users.json b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/users.json deleted file mode 100644 index e2337f049ba45..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/schemas/users.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Users Schema", - "additionalProperties": true, - "type": ["null", "object"], - "properties": { - "aptrinsicId": { - "type": ["null", "string"] - }, - "identifyId": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"], - "enum": ["LEAD", "USER", "VISITOR", "EMPTY_USER_TYPE"] - }, - "gender": { - "type": ["null", "string"], - "enum": ["MALE", "FEMALE", "OTHER", "EMPTY_GENDER"] - }, - "email": { - "type": ["null", "string"] - }, - "firstName": { - "type": ["null", "string"] - }, - "lastName": { - "type": ["null", "string"] - }, - "lastSeenDate": { - "type": ["null", "integer"], - "format": "int64" - }, - "signUpDate": { - "type": ["null", "integer"], - "format": "int64" - }, - "firstVisitDate": { - "type": ["null", "integer"], - "format": "int64" - }, - "title": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "score": { - "type": ["null", "integer"], - "format": "int64" - }, - "role": { - "type": ["null", "string"] - }, - "subscriptionId": { - "type": ["null", "string"] - }, - "accountId": { - "type": ["null", "string"] - }, - "numberOfVisits": { - "type": ["null", "integer"], - "format": "int32" - }, - "location": { - "type": ["null", "string"] - }, - "propertyKeys": { - "type": ["null", "array"], - "description": "Aptrinsic Tag Key, at least one is required", - "items": { - "type": ["null", "string"] - }, - "examples": [["AP-XXXXXXXXXX-2"]] - }, - "createDate": { - "type": ["null", "integer"], - "format": "int64" - }, - "lastModifiedDate": { - "type": ["null", "integer"], - "format": "int64" - }, - "globalUnsubscribe": { - "type": ["null", "boolean"] - }, - "sfdcContactId": { - "type": ["null", "string"] - }, - "lastVisitedUserAgentData": { - "type": ["null", "array"], - "items": { - "propertyKey": { - "type": ["null", "string"] - }, - "userAgent": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "rawUserAgent": { - "type": ["null", "string"] - }, - "device": { - "type": ["null", "string"] - }, - "platformType": { - "type": ["null", "string"] - }, - "platformVersion": { - "type": ["null", "string"] - }, - "browserType": { - "type": ["null", "string"] - }, - "browserVersion": { - "type": ["null", "string"] - } - } - } - } - }, - "id": { - "type": ["null", "string"], - "description": "Synonym for identifyId, output only, not filterable" - }, - "lastInferredLocation": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "countryName": { - "type": ["null", "string"] - }, - "countryCode": { - "type": ["null", "string"] - }, - "stateName": { - "type": ["null", "string"] - }, - "stateCode": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "street": { - "type": ["null", "string"] - }, - "postalCode": { - "type": ["null", "string"] - }, - "continent": { - "type": ["null", "string"] - }, - "regionName": { - "type": ["null", "string"] - }, - "timeZone": { - "type": ["null", "string"] - }, - "coordinates": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "latitude": { - "type": ["null", "number"] - }, - "longitude": { - "type": ["null", "number"] - } - } - } - } - } - } -} diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/source.py b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/source.py index 0ea94fe90b481..68a93b4e78229 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/source.py +++ b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/source.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. # from airbyte_cdk.sources.declarative.yaml_declarative_source import YamlDeclarativeSource diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/spec.yaml b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/spec.yaml deleted file mode 100644 index a78bb4fef4928..0000000000000 --- a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/spec.yaml +++ /dev/null @@ -1,14 +0,0 @@ -documentation_url: https://docs.airbyte.com/integrations/sources/gainsight-px -connectionSpecification: - $schema: http://json-schema.org/draft-07/schema# - title: Gainsight Px Spec - type: object - additionalProperties: true - required: - - api_key - properties: - api_key: - title: API Key - type: string - description: The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys) - airbyte_secret: true diff --git a/docs/integrations/sources/gainsight-px.md b/docs/integrations/sources/gainsight-px.md index 8a23d1133e38a..d76ea1bcd74b6 100644 --- a/docs/integrations/sources/gainsight-px.md +++ b/docs/integrations/sources/gainsight-px.md @@ -70,6 +70,7 @@ Gainsight-PX-API's [API reference](https://gainsightpx.docs.apiary.io/) has v1 a ## Changelog | Version | Date | Pull Request | Subject | -| :------ | :--------- | :------------------------------------------------------- | :-------------------------------------- | +| :------ | :--------- | :------------------------------------------------------- |:----------------------------------------| +| 0.1.2 | 2024-05-28 | [38669](https://github.com/airbytehq/airbyte/pull/38669) | Make connector compatible with Builder | | 0.1.1 | 2024-05-03 | [37593](https://github.com/airbytehq/airbyte/pull/37593) | Changed `last_records` to `last_record` | | 0.1.0 | 2023-05-10 | [26998](https://github.com/airbytehq/airbyte/pull/26998) | Initial PR |