├── lead.view.lkml ├── user.view.lkml ├── account.view.lkml ├── contact.view.lkml ├── campaign.view.lkml ├── opportunity.view.lkml ├── block_stitch_salesforce_config.model.lkml ├── manifest.lkml └── LICENSE /lead.view.lkml: -------------------------------------------------------------------------------- 1 | view: lead_config { 2 | extends: [lead_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /user.view.lkml: -------------------------------------------------------------------------------- 1 | view: user_config { 2 | extends: [user_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /account.view.lkml: -------------------------------------------------------------------------------- 1 | view: account_config { 2 | extends: [account_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /contact.view.lkml: -------------------------------------------------------------------------------- 1 | view: contact_config { 2 | extends: [contact_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /campaign.view.lkml: -------------------------------------------------------------------------------- 1 | view: campaign_config { 2 | extends: [campaign_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /opportunity.view.lkml: -------------------------------------------------------------------------------- 1 | view: opportunity_config { 2 | extends: [opportunity_core] 3 | extension: required 4 | } 5 | -------------------------------------------------------------------------------- /block_stitch_salesforce_config.model.lkml: -------------------------------------------------------------------------------- 1 | # preliminaries # 2 | 3 | connection: "@{CONNECTION_NAME}" 4 | 5 | include: "*.view" 6 | 7 | # views to explore——i.e., "base views" # 8 | 9 | explore: account_config { 10 | extends: [account_core] 11 | extension: required 12 | } 13 | 14 | explore: lead_config { 15 | extends: [lead_core] 16 | extension: required 17 | } 18 | 19 | explore: opportunity_config { 20 | extends: [opportunity_core] 21 | extension: required 22 | } 23 | -------------------------------------------------------------------------------- /manifest.lkml: -------------------------------------------------------------------------------- 1 | project_name: "block-stitch-salesforce-config" 2 | 3 | ################ Constants ################ 4 | constant: CONNECTION_NAME { 5 | value: "salesforce_data" 6 | export: override_required 7 | } 8 | 9 | constant: SALESFORCE_SCHEMA_NAME { 10 | value: "salesforce_data" 11 | export: override_required 12 | } 13 | 14 | constant: SALESFORCE_ACCOUNT_TABLE_NAME { 15 | value: "sf_account" 16 | export: override_required 17 | } 18 | 19 | constant: SALESFORCE_CAMPAIGN_TABLE_NAME { 20 | value: "sf_campaign" 21 | export: override_required 22 | } 23 | 24 | constant: SALESFORCE_CONTACT_TABLE_NAME { 25 | value: "sf_contact" 26 | export: override_required 27 | } 28 | 29 | constant: SALESFORCE_LEAD_TABLE_NAME { 30 | value: "sf_lead" 31 | export: override_required 32 | } 33 | 34 | constant: SALESFORCE_OPPORTUNITY_TABLE_NAME { 35 | value: "sf_opportunity" 36 | export: override_required 37 | } 38 | 39 | constant: SALESFORCE_USER_TABLE_NAME { 40 | value: "sf_user" 41 | export: override_required 42 | } 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Looker Data Sciences, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------