@quickpipeaiab/domain 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/campaigns.ttl CHANGED
@@ -13,8 +13,8 @@
13
13
 
14
14
  <https://id.quickpipe.ai/domain/campaigns>
15
15
  a owl:Ontology ;
16
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/campaigns> ;
17
- owl:versionInfo "0.11.0" ;
16
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0/campaigns> ;
17
+ owl:versionInfo "0.13.0" ;
18
18
  owl:imports <https://id.quickpipe.ai/domain/core> ,
19
19
  <https://id.quickpipe.ai/domain/vocab/campaigns> ,
20
20
  <https://id.quickpipe.ai/domain/desk> ,
@@ -246,10 +246,18 @@ campaigns:planned-enrollment owl:hasKey ( campaigns:of-campaign campaigns:of-lea
246
246
 
247
247
  campaigns:step-call owl:hasKey ( campaigns:in-enrollment campaigns:for-step campaigns:has-attempt ) .
248
248
 
249
+ campaigns:campaign-rule a owl:Class ;
250
+ rdfs:subClassOf core:entity ;
251
+ core:label "campaign rule"@en ;
252
+ core:definition "The reference of a campaign to its score rule: the decision draft of `lead-scoring` that holds the rule, and the event names that the campaign selects. A campaign has at most one rule. `outreach` keeps no copy of the rule."@en ;
253
+ core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
254
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
255
+ core:owner core:outreach .
256
+
249
257
  campaigns:kai-draft owl:hasKey ( campaigns:in-enrollment campaigns:for-step ) .
250
258
 
251
259
  [] a owl:AllDisjointClasses ;
252
- owl:members ( campaigns:campaign campaigns:cadence campaigns:step campaigns:step-map campaigns:attribution campaigns:enrollment campaigns:planned-enrollment campaigns:step-position campaigns:score campaigns:link-token campaigns:device campaigns:notice campaigns:channel-account campaigns:template-of-outreach campaigns:variable campaigns:kai-draft campaigns:send-window campaigns:step-call ) .
260
+ owl:members ( campaigns:campaign campaigns:cadence campaigns:step campaigns:step-map campaigns:attribution campaigns:enrollment campaigns:planned-enrollment campaigns:step-position campaigns:score campaigns:link-token campaigns:device campaigns:notice campaigns:channel-account campaigns:template-of-outreach campaigns:variable campaigns:kai-draft campaigns:send-window campaigns:step-call campaigns:campaign-rule ) .
253
261
 
254
262
  # Tables (docs/decisions/0003-modelling-patterns.md#Tables and columns).
255
263
 
@@ -1121,8 +1129,27 @@ campaigns:has-decision a owl:ObjectProperty , owl:FunctionalProperty ;
1121
1129
  core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
1122
1130
  core:owner core:lead-scoring .
1123
1131
 
1132
+ campaigns:has-rule-draft a owl:ObjectProperty , owl:FunctionalProperty ;
1133
+ rdfs:domain campaigns:campaign-rule ;
1134
+ rdfs:range scoring:decision ;
1135
+ core:label "has rule draft"@en ;
1136
+ core:definition "The decision draft of `lead-scoring` that holds the score rule of a campaign."@en ;
1137
+ core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
1138
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
1139
+ core:owner core:outreach .
1140
+
1141
+ campaigns:has-rule-draft-version a owl:DatatypeProperty , owl:FunctionalProperty ;
1142
+ rdfs:domain campaigns:campaign-rule ;
1143
+ rdfs:range xsd:string ;
1144
+ core:label "has rule draft version"@en ;
1145
+ core:definition "The version of the decision draft that the caller keeps when it puts the rule on the campaign."@en ;
1146
+ core:source "docs/specs/lead-scoring/docs/internal/decisions/0114-the-score-rule-of-a-campaign.md#Decision" ;
1147
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
1148
+ core:owner core:outreach ;
1149
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1150
+
1124
1151
  campaigns:selects-event a owl:ObjectProperty ;
1125
- rdfs:domain campaigns:campaign ;
1152
+ rdfs:domain [ a owl:Class ; owl:unionOf ( campaigns:campaign campaigns:campaign-rule ) ] ;
1126
1153
  rdfs:range core:concept ;
1127
1154
  core:label "selects event"@en ;
1128
1155
  core:definition "An event name that the user selected for the campaign. The request of `PUT /campaigns/{campaignId}` has the template, the events that the user selected and `cadences`."@en ;
@@ -1993,6 +2020,16 @@ campaigns:column-campaigns-review-mode a owl:NamedIndividual , core:column ;
1993
2020
  core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
1994
2021
  core:owner core:outreach .
1995
2022
 
2023
+ campaigns:column-campaigns-mailbox-ids a owl:NamedIndividual , core:column ;
2024
+ core:of-table campaigns:table-outreach-campaigns ;
2025
+ core:has-name "mailbox_ids" ;
2026
+ core:not-modelled-reason "The picked set is a list of opaque mailbox ids. The model keeps no property for a list of ids."@en ;
2027
+ core:label "outreach.campaigns.mailbox_ids"@en ;
2028
+ core:definition "The picked set of mailboxes of the campaign. A Start and a lead that a teammate adds use it."@en ;
2029
+ core:source "docs/specs/outreach/docs/internal/decisions/0025-campaign-mailbox-sets.md#Decision" ;
2030
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
2031
+ core:owner core:outreach .
2032
+
1996
2033
  campaigns:column-campaigns-goal a owl:NamedIndividual , core:column ;
1997
2034
  core:of-table campaigns:table-outreach-campaigns ;
1998
2035
  core:has-name "goal" ;
@@ -2417,6 +2454,16 @@ campaigns:column-enrollments-mailbox-id a owl:NamedIndividual , core:column ;
2417
2454
  core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
2418
2455
  core:owner core:outreach .
2419
2456
 
2457
+ campaigns:column-enrollments-mailbox-ids a owl:NamedIndividual , core:column ;
2458
+ core:of-table campaigns:table-outreach-enrollments ;
2459
+ core:has-name "mailbox_ids" ;
2460
+ core:not-modelled-reason "The picked set is a list of opaque mailbox ids. The model keeps no property for a list of ids."@en ;
2461
+ core:label "outreach.enrollments.mailbox_ids"@en ;
2462
+ core:definition "The picked set of mailboxes of the enrollment. Its first item is the column mailbox_id."@en ;
2463
+ core:source "docs/specs/outreach/docs/internal/decisions/0025-campaign-mailbox-sets.md#Decision" ;
2464
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
2465
+ core:owner core:outreach .
2466
+
2420
2467
  campaigns:column-enrollments-sender-id a owl:NamedIndividual , core:column ;
2421
2468
  core:of-table campaigns:table-outreach-enrollments ;
2422
2469
  core:has-name "sender_id" ;
@@ -2832,7 +2879,7 @@ campaigns:column-public-link-token-uses-created-at a owl:NamedIndividual , core:
2832
2879
  campaigns:table-outreach-campaign-rules a owl:NamedIndividual , core:table ;
2833
2880
  core:in-database-schema campaigns:schema-outreach ;
2834
2881
  core:has-name "campaign_rules" ;
2835
- core:not-modelled-reason "The reference to the score rule of a campaign. The model has the events that the campaign selects (`campaigns:selects-event`) and no class for the reference to the decision draft of `lead-scoring`."@en ;
2882
+ core:has-row-class campaigns:campaign-rule ;
2836
2883
  core:label "outreach.campaign_rules"@en ;
2837
2884
  core:definition "The table of the score rules of `outreach`: one row for each campaign with a rule."@en ;
2838
2885
  core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
@@ -2842,7 +2889,7 @@ campaigns:table-outreach-campaign-rules a owl:NamedIndividual , core:table ;
2842
2889
  campaigns:column-campaign-rules-campaign-id a owl:NamedIndividual , core:column ;
2843
2890
  core:of-table campaigns:table-outreach-campaign-rules ;
2844
2891
  core:has-name "campaign_id" ;
2845
- core:not-modelled-reason "The row is not in the model. The column gives the campaign of the rule."@en ;
2892
+ core:stores-property campaigns:of-campaign ;
2846
2893
  core:in-primary-key true ;
2847
2894
  core:label "outreach.campaign_rules.campaign_id"@en ;
2848
2895
  core:definition "The id of the campaign of the score rule. It is the primary key."@en ;
@@ -2853,7 +2900,7 @@ campaigns:column-campaign-rules-campaign-id a owl:NamedIndividual , core:column
2853
2900
  campaigns:column-campaign-rules-workspace a owl:NamedIndividual , core:column ;
2854
2901
  core:of-table campaigns:table-outreach-campaign-rules ;
2855
2902
  core:has-name "workspace" ;
2856
- core:not-modelled-reason "The row is not in the model. The column gives the workspace of the campaign."@en ;
2903
+ core:stores-property core:in-workspace ;
2857
2904
  core:label "outreach.campaign_rules.workspace"@en ;
2858
2905
  core:definition "The id of the workspace of the campaign of the rule."@en ;
2859
2906
  core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
@@ -2863,7 +2910,7 @@ campaigns:column-campaign-rules-workspace a owl:NamedIndividual , core:column ;
2863
2910
  campaigns:column-campaign-rules-draft-id a owl:NamedIndividual , core:column ;
2864
2911
  core:of-table campaigns:table-outreach-campaign-rules ;
2865
2912
  core:has-name "draft_id" ;
2866
- core:not-modelled-reason "The row is not in the model. The column gives the decision draft of `lead-scoring`."@en ;
2913
+ core:stores-property campaigns:has-rule-draft ;
2867
2914
  core:label "outreach.campaign_rules.draft_id"@en ;
2868
2915
  core:definition "The id of the decision draft of `lead-scoring` that keeps the rule."@en ;
2869
2916
  core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
@@ -2873,7 +2920,7 @@ campaigns:column-campaign-rules-draft-id a owl:NamedIndividual , core:column ;
2873
2920
  campaigns:column-campaign-rules-draft-version a owl:NamedIndividual , core:column ;
2874
2921
  core:of-table campaigns:table-outreach-campaign-rules ;
2875
2922
  core:has-name "draft_version" ;
2876
- core:not-modelled-reason "The row is not in the model. The column gives the version of the decision draft of `lead-scoring`."@en ;
2923
+ core:stores-property campaigns:has-rule-draft-version ;
2877
2924
  core:label "outreach.campaign_rules.draft_version"@en ;
2878
2925
  core:definition "The version of the decision draft of `lead-scoring`."@en ;
2879
2926
  core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
@@ -2883,7 +2930,7 @@ campaigns:column-campaign-rules-draft-version a owl:NamedIndividual , core:colum
2883
2930
  campaigns:column-campaign-rules-events a owl:NamedIndividual , core:column ;
2884
2931
  core:of-table campaigns:table-outreach-campaign-rules ;
2885
2932
  core:has-name "events" ;
2886
- core:not-modelled-reason "The row is not in the model. The column gives the events that the campaign selects."@en ;
2933
+ core:stores-property campaigns:selects-event ;
2887
2934
  core:label "outreach.campaign_rules.events"@en ;
2888
2935
  core:definition "The names of the events that the campaign selects, as text."@en ;
2889
2936
  core:source "docs/specs/outreach/docs/internal/decisions/0015-kai-creates-the-campaign.md#Decision" ;
@@ -3262,6 +3309,36 @@ campaigns:column-workspace-settings-bounce-limit a owl:NamedIndividual , core:co
3262
3309
  core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
3263
3310
  core:owner core:outreach .
3264
3311
 
3312
+ campaigns:column-workspace-settings-legal-name a owl:NamedIndividual , core:column ;
3313
+ core:of-table campaigns:table-outreach-workspace-settings ;
3314
+ core:has-name "legal_name" ;
3315
+ core:not-modelled-reason "The legal name of the company of a workspace. The model has no property for the footer of a message."@en ;
3316
+ core:label "outreach.workspace_settings.legal_name"@en ;
3317
+ core:definition "The legal name of the company of the workspace, for the footer of each email. A workspace with no value sends the legal name of QuickPipe."@en ;
3318
+ core:source "docs/specs/email/docs/internal/decisions/0018-unsubscribe-and-footer.md#Decision" ;
3319
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
3320
+ core:owner core:outreach .
3321
+
3322
+ campaigns:column-workspace-settings-postal-address a owl:NamedIndividual , core:column ;
3323
+ core:of-table campaigns:table-outreach-workspace-settings ;
3324
+ core:has-name "postal_address" ;
3325
+ core:not-modelled-reason "The postal address of the company of a workspace. The model has no property for the footer of a message."@en ;
3326
+ core:label "outreach.workspace_settings.postal_address"@en ;
3327
+ core:definition "The postal address of the company of the workspace, for the footer of each email. A workspace with no value sends the postal address of QuickPipe."@en ;
3328
+ core:source "docs/specs/email/docs/internal/decisions/0018-unsubscribe-and-footer.md#Decision" ;
3329
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
3330
+ core:owner core:outreach .
3331
+
3332
+ campaigns:column-workspace-settings-privacy-notice-url a owl:NamedIndividual , core:column ;
3333
+ core:of-table campaigns:table-outreach-workspace-settings ;
3334
+ core:has-name "privacy_notice_url" ;
3335
+ core:not-modelled-reason "The URL of the privacy notice of a workspace. The model has no property for the footer of a message."@en ;
3336
+ core:label "outreach.workspace_settings.privacy_notice_url"@en ;
3337
+ core:definition "The https URL of the privacy notice of the workspace, for the footer of each email. A workspace with no value sends the notice of QuickPipe."@en ;
3338
+ core:source "docs/specs/email/docs/internal/decisions/0018-unsubscribe-and-footer.md#Decision" ;
3339
+ core:defined-by <https://id.quickpipe.ai/domain/campaigns> ;
3340
+ core:owner core:outreach .
3341
+
3265
3342
  campaigns:column-step-calls-failures a owl:NamedIndividual , core:column ;
3266
3343
  core:of-table campaigns:table-outreach-step-calls ;
3267
3344
  core:has-name "failures" ;
package/core.ttl CHANGED
@@ -13,8 +13,8 @@
13
13
 
14
14
  <https://id.quickpipe.ai/domain/core>
15
15
  a owl:Ontology ;
16
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/core> ;
17
- owl:versionInfo "0.11.0" ;
16
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0/core> ;
17
+ owl:versionInfo "0.13.0" ;
18
18
  core:title "QuickPipe domain model: core"@en ;
19
19
  core:preferred-prefix "core" ;
20
20
  core:preferred-namespace "https://id.quickpipe.ai/domain/core#".
package/crm.ttl CHANGED
@@ -9,8 +9,8 @@
9
9
 
10
10
  <https://id.quickpipe.ai/domain/crm>
11
11
  a owl:Ontology ;
12
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/crm> ;
13
- owl:versionInfo "0.11.0" ;
12
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0/crm> ;
13
+ owl:versionInfo "0.13.0" ;
14
14
  core:title "QuickPipe domain model: crm"@en ;
15
15
  core:preferred-prefix "crm" ;
16
16
  core:preferred-namespace "https://id.quickpipe.ai/domain/crm#" ;
@@ -79,6 +79,7 @@ crm:note a owl:Class ;
79
79
  core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" ;
80
80
  core:defined-by <https://id.quickpipe.ai/domain/crm> ;
81
81
  core:owner core:crm ;
82
+ core:has-contract true ;
82
83
  core:retention "P30D" ;
83
84
  core:retention-clock core-vocab:retention-clock-since-closed ;
84
85
  core:controller-role core-vocab:controller-role-processor .
@@ -144,11 +145,11 @@ crm:for-account-record a owl:ObjectProperty , owl:FunctionalProperty ;
144
145
  core:owner core:crm .
145
146
 
146
147
  crm:has-owner-seller a owl:ObjectProperty , owl:FunctionalProperty ;
147
- rdfs:domain [ a owl:Class ; owl:unionOf ( crm:lead-record crm:account-record ) ] ;
148
+ rdfs:domain [ a owl:Class ; owl:unionOf ( crm:lead-record crm:account-record crm:deal ) ] ;
148
149
  rdfs:range desk:teammate ;
149
150
  core:label "has owner seller"@en ;
150
- core:definition "The one teammate that owns a lead record or an account record."@en ;
151
- core:hint "The teammate who owns this record."@en ;
151
+ core:definition "The one teammate that owns a lead record, an account record or a deal."@en ;
152
+ core:hint "The teammate who owns this record or deal."@en ;
152
153
  core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Teammates and ownership" ;
153
154
  core:defined-by <https://id.quickpipe.ai/domain/crm> ;
154
155
  core:owner core:crm .
@@ -437,3 +438,56 @@ crm:at-deal-stage a owl:ObjectProperty , owl:FunctionalProperty ;
437
438
  core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" ;
438
439
  core:defined-by <https://id.quickpipe.ai/domain/crm> ;
439
440
  core:owner core:crm .
441
+
442
+ crm:has-amount a owl:DatatypeProperty , owl:FunctionalProperty ;
443
+ rdfs:domain crm:deal ;
444
+ rdfs:range xsd:long ;
445
+ core:label "has amount"@en ;
446
+ core:definition "The value of a deal, as an integer in micro units of the currency of the deal. It is the sale data of the client, not QuickPipe money. The event `deal.created` sends it as `amountMicros`."@en ;
447
+ core:hint "The value of this sale."@en ;
448
+ core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" , "docs/specs/crm/docs/internal/decisions/0015-events-to-lead-scoring.md#Decision" ;
449
+ core:defined-by <https://id.quickpipe.ai/domain/crm> ;
450
+ core:owner core:crm ;
451
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
452
+
453
+ crm:has-currency-code a owl:DatatypeProperty , owl:FunctionalProperty ;
454
+ rdfs:domain crm:deal ;
455
+ rdfs:range xsd:string ;
456
+ core:label "has currency code"@en ;
457
+ core:definition "The ISO 4217 code of the currency of the amount of a deal. The event `deal.created` sends it as `currencyCode`."@en ;
458
+ core:hint "The currency of the value of this sale."@en ;
459
+ core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" , "docs/specs/crm/docs/internal/decisions/0015-events-to-lead-scoring.md#Decision" ;
460
+ core:defined-by <https://id.quickpipe.ai/domain/crm> ;
461
+ core:owner core:crm ;
462
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
463
+
464
+ crm:due-at a owl:DatatypeProperty , owl:FunctionalProperty ;
465
+ rdfs:domain crm:follow-up ;
466
+ rdfs:range xsd:dateTime ;
467
+ core:label "due at"@en ;
468
+ core:definition "The date and time at which the teammate must do a follow-up."@en ;
469
+ core:hint "When the teammate must do this follow-up."@en ;
470
+ core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" ;
471
+ core:defined-by <https://id.quickpipe.ai/domain/crm> ;
472
+ core:owner core:crm ;
473
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
474
+
475
+ crm:has-follow-up-status a owl:ObjectProperty , owl:FunctionalProperty ;
476
+ rdfs:domain crm:follow-up ;
477
+ rdfs:range core:concept ;
478
+ core:label "has follow-up status"@en ;
479
+ core:definition "The one state of a follow-up, from the scheme of follow-up statuses: `todo`, `in-progress` or `done`."@en ;
480
+ core:hint "Whether this follow-up is to do, in progress or done."@en ;
481
+ core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" ;
482
+ core:defined-by <https://id.quickpipe.ai/domain/crm> ;
483
+ core:owner core:crm .
484
+
485
+ crm:for-target a owl:ObjectProperty ;
486
+ rdfs:domain crm:follow-up ;
487
+ rdfs:range [ a owl:Class ; owl:unionOf ( crm:lead-record crm:account-record crm:deal ) ] ;
488
+ core:label "for target"@en ;
489
+ core:definition "A lead record, an account record or a deal that a follow-up is about (`followUpTarget`). A follow-up has one or more targets."@en ;
490
+ core:hint "The person, account or deal that this follow-up is about."@en ;
491
+ core:source "docs/specs/crm/docs/internal/decisions/0003-concepts.md#Records" ;
492
+ core:defined-by <https://id.quickpipe.ai/domain/crm> ;
493
+ core:owner core:crm .
package/desk.ttl CHANGED
@@ -12,8 +12,8 @@
12
12
 
13
13
  <https://id.quickpipe.ai/domain/desk>
14
14
  a owl:Ontology ;
15
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/desk> ;
16
- owl:versionInfo "0.11.0" ;
15
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0/desk> ;
16
+ owl:versionInfo "0.13.0" ;
17
17
  core:title "QuickPipe domain model: desk"@en ;
18
18
  core:preferred-prefix "desk" ;
19
19
  core:preferred-namespace "https://id.quickpipe.ai/domain/desk#" ;
@@ -233,7 +233,7 @@ desk:claims-workspace a owl:ObjectProperty , owl:FunctionalProperty ;
233
233
  desk:onboarding-job a owl:Class ;
234
234
  rdfs:subClassOf core:activity ;
235
235
  core:label "onboarding job"@en ;
236
- core:definition "One long step of an onboarding session: the company, the ICP draft or the Koa preview. It has a state and a progress, and the route `GET /onboarding/jobs/{id}` gives them."@en ;
236
+ core:definition "One long step of an onboarding session: the company, the ICP draft, the Koa preview of accounts or the Koa preview of people. It has a state and a progress, and the route `GET /onboarding/jobs/{id}` gives them."@en ;
237
237
  core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
238
238
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
239
239
  core:owner core:desk ;
@@ -253,6 +253,193 @@ desk:has-job-state a owl:ObjectProperty , owl:FunctionalProperty ;
253
253
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
254
254
  core:owner core:desk .
255
255
 
256
+ desk:has-failure-code a owl:ObjectProperty , owl:FunctionalProperty ;
257
+ rdfs:domain desk:onboarding-job ;
258
+ rdfs:range core:concept ;
259
+ core:label "has failure code"@en ;
260
+ core:definition "The problem code that tells why an onboarding job failed, from the scheme of error codes. A job that did not fail has none. The app reads it to choose its next screen."@en ;
261
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
262
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
263
+ core:owner core:desk .
264
+
265
+ desk:has-company-relation a owl:ObjectProperty , owl:FunctionalProperty ;
266
+ rdfs:domain desk:onboarding-job ;
267
+ rdfs:range core:concept ;
268
+ core:label "has company relation"@en ;
269
+ core:definition "What the domain of a company step is for the person, from the scheme of company relations: `own` is the company of the person, and `look-alike` is a similar company whose research gives the ideal customer."@en ;
270
+ core:hint "Whether the website is your company or a company like yours."@en ;
271
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
272
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
273
+ core:owner core:desk ;
274
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
275
+
276
+ desk:has-preview-subject a owl:ObjectProperty , owl:FunctionalProperty ;
277
+ rdfs:domain desk:onboarding-job ;
278
+ rdfs:range core:concept ;
279
+ core:label "has preview subject"@en ;
280
+ core:definition "What a Koa preview samples, from the scheme of preview subjects: `accounts` or `people`. The default is `accounts`."@en ;
281
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
282
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
283
+ core:owner core:desk ;
284
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
285
+
286
+ desk:has-found-field a owl:ObjectProperty ;
287
+ rdfs:domain desk:onboarding-job ;
288
+ rdfs:range core:concept ;
289
+ core:label "has found field"@en ;
290
+ core:definition "A field that the company step found so far, from the scheme of researched fields. A job lists the found fields in the order that they arrived."@en ;
291
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
292
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
293
+ core:owner core:desk ;
294
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
295
+
296
+ desk:has-people-count a owl:DatatypeProperty , owl:FunctionalProperty ;
297
+ rdfs:domain desk:onboarding-job ;
298
+ rdfs:range xsd:nonNegativeInteger ;
299
+ core:label "has people count"@en ;
300
+ core:definition "How many people match the ideal customer of the session, as the source counts them. A done job of the Koa preview of people has it when the source gives a total."@en ;
301
+ core:hint "How many people match your ideal customer."@en ;
302
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
303
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
304
+ core:owner core:desk ;
305
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
306
+
307
+ desk:masked-person a owl:Class ;
308
+ rdfs:subClassOf core:entity ;
309
+ core:label "masked person"@en ;
310
+ core:definition "One person of the Koa preview of people before sign-up. It has a job title, a seniority when known and a company with its name, domain and logo. It has no name, no initials, no email address, no LinkedIn URL and no id, so the visitor never gets personal data. `desk` keeps it only in the result of a job and in the shared research of a domain."@en ;
311
+ core:hint "A person that matches your ideal customer, shown with a job title and a company and nothing else."@en ;
312
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
313
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
314
+ core:owner core:desk ;
315
+ core:division core-vocab:division-open ;
316
+ core:gdpr-category core-vocab:gdpr-category-pseudonymised ;
317
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
318
+ core:review-status core-vocab:review-status-draft ;
319
+ core:retention "P30D" ;
320
+ core:retention-clock core-vocab:retention-clock-since-created ;
321
+ core:controller-role core-vocab:controller-role-controller .
322
+
323
+ desk:has-bot-check-token a owl:DatatypeProperty , owl:FunctionalProperty ;
324
+ rdfs:domain desk:onboarding-session ;
325
+ rdfs:range xsd:string ;
326
+ core:label "has bot check token"@en ;
327
+ core:definition "The token of the bot check that the browser got for the visit. The request to start an onboarding session carries it, and `desk` checks it with the bot check of the environment. `desk` does not keep it."@en ;
328
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
329
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
330
+ core:owner core:desk ;
331
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
332
+
333
+ desk:has-first-search-draft a owl:DatatypeProperty , owl:FunctionalProperty ;
334
+ rdfs:domain desk:onboarding-session ;
335
+ rdfs:range xsd:string ;
336
+ core:label "has first search draft"@en ;
337
+ core:definition "The id of the draft campaign that the complete step makes for the default offer. The first search commits its best people, and they join the plan of the draft as `desk` writes them to `crm`. `desk` keeps it in `onboarding.first_searches`."@en ;
338
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
339
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
340
+ core:owner core:desk ;
341
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
342
+
343
+ desk:table-onboarding-first-searches a owl:NamedIndividual , core:table ;
344
+ core:in-database-schema desk:schema-onboarding ;
345
+ core:has-name "first_searches" ;
346
+ core:not-modelled-reason "Work state of `desk`: which draft campaign and which run of `leads` belong to the first search of one onboarding session. The model has no class for it."@en ;
347
+ core:label "onboarding.first_searches"@en ;
348
+ core:definition "The table of the first searches of the complete step: one row for each onboarding session, with the draft campaign, its cadence, the run of `leads` and the time that `desk` committed the best people."@en ;
349
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
350
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
351
+ core:owner core:desk .
352
+
353
+ desk:column-onboarding-first-searches-session a owl:NamedIndividual , core:column ;
354
+ core:of-table desk:table-onboarding-first-searches ;
355
+ core:has-name "session" ;
356
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
357
+ core:label "onboarding.first_searches.session"@en ;
358
+ core:definition "The id of the onboarding session whose complete step started the first search. It is the primary key."@en ;
359
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
360
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
361
+ core:owner core:desk .
362
+
363
+ desk:column-onboarding-first-searches-workspace a owl:NamedIndividual , core:column ;
364
+ core:of-table desk:table-onboarding-first-searches ;
365
+ core:has-name "workspace" ;
366
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
367
+ core:label "onboarding.first_searches.workspace"@en ;
368
+ core:definition "The workspace that the session made."@en ;
369
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
370
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
371
+ core:owner core:desk .
372
+
373
+ desk:column-onboarding-first-searches-user-id a owl:NamedIndividual , core:column ;
374
+ core:of-table desk:table-onboarding-first-searches ;
375
+ core:has-name "user_id" ;
376
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
377
+ core:label "onboarding.first_searches.user_id"@en ;
378
+ core:definition "The teammate that completed the session."@en ;
379
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
380
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
381
+ core:owner core:desk .
382
+
383
+ desk:column-onboarding-first-searches-campaign-id a owl:NamedIndividual , core:column ;
384
+ core:of-table desk:table-onboarding-first-searches ;
385
+ core:has-name "campaign_id" ;
386
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
387
+ core:label "onboarding.first_searches.campaign_id"@en ;
388
+ core:definition "The id of the draft campaign of `outreach`."@en ;
389
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
390
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
391
+ core:owner core:desk .
392
+
393
+ desk:column-onboarding-first-searches-cadence-id a owl:NamedIndividual , core:column ;
394
+ core:of-table desk:table-onboarding-first-searches ;
395
+ core:has-name "cadence_id" ;
396
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
397
+ core:label "onboarding.first_searches.cadence_id"@en ;
398
+ core:definition "The id of the cadence of the draft campaign that holds the planned leads."@en ;
399
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
400
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
401
+ core:owner core:desk .
402
+
403
+ desk:column-onboarding-first-searches-leads-run-id a owl:NamedIndividual , core:column ;
404
+ core:of-table desk:table-onboarding-first-searches ;
405
+ core:has-name "leads_run_id" ;
406
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
407
+ core:label "onboarding.first_searches.leads_run_id"@en ;
408
+ core:definition "The id of the run of `leads` of the first search. It is empty when the search did not start."@en ;
409
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
410
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
411
+ core:owner core:desk .
412
+
413
+ desk:column-onboarding-first-searches-committed-at a owl:NamedIndividual , core:column ;
414
+ core:of-table desk:table-onboarding-first-searches ;
415
+ core:has-name "committed_at" ;
416
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
417
+ core:label "onboarding.first_searches.committed_at"@en ;
418
+ core:definition "The time that `desk` committed the best people of the run."@en ;
419
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
420
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
421
+ core:owner core:desk .
422
+
423
+ desk:column-onboarding-first-searches-created-at a owl:NamedIndividual , core:column ;
424
+ core:of-table desk:table-onboarding-first-searches ;
425
+ core:has-name "created_at" ;
426
+ core:not-modelled-reason "Work state of `desk` for the first search of a session. The model has no class for it."@en ;
427
+ core:label "onboarding.first_searches.created_at"@en ;
428
+ core:definition "The time that `desk` started the first search of the onboarding session."@en ;
429
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
430
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
431
+ core:owner core:desk .
432
+
433
+ desk:has-first-search-run a owl:DatatypeProperty , owl:FunctionalProperty ;
434
+ rdfs:domain desk:onboarding-session ;
435
+ rdfs:range xsd:string ;
436
+ core:label "has first search run"@en ;
437
+ core:definition "The id of the run of `leads` that the complete step starts in the new workspace: a search for people with the default offer. A session starts at most one. The complete response gives it, and `desk` does not keep it on the session."@en ;
438
+ core:source "docs/decisions/0032-welcome-sign-up.md#Sign-up and complete" ;
439
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
440
+ core:owner core:desk ;
441
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
442
+
256
443
  # Watch lists.
257
444
 
258
445
  desk:watch-list a owl:Class ;
@@ -3406,9 +3593,9 @@ desk:column-onboarding-jobs-session a owl:NamedIndividual , core:column ;
3406
3593
  desk:column-onboarding-jobs-step a owl:NamedIndividual , core:column ;
3407
3594
  core:of-table desk:table-onboarding-jobs ;
3408
3595
  core:has-name "step" ;
3409
- core:not-modelled-reason "The step of the session that the job runs: company, icp or preview. The model has no scheme of onboarding steps."@en ;
3596
+ core:not-modelled-reason "The step of the session that the job runs: company, icp, preview or people. The model has no scheme of onboarding steps."@en ;
3410
3597
  core:label "onboarding.jobs.step"@en ;
3411
- core:definition "The step of the session that the job runs: `company`, `icp` or `preview`."@en ;
3598
+ core:definition "The step of the session that the job runs: `company`, `icp`, `preview` or `people`."@en ;
3412
3599
  core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3413
3600
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3414
3601
  core:owner core:desk .
@@ -3453,6 +3640,56 @@ desk:column-onboarding-jobs-updated-at a owl:NamedIndividual , core:column ;
3453
3640
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3454
3641
  core:owner core:desk .
3455
3642
 
3643
+ desk:table-onboarding-research-cache a owl:NamedIndividual , core:table ;
3644
+ core:in-database-schema desk:schema-onboarding ;
3645
+ core:has-name "research_cache" ;
3646
+ core:not-modelled-reason "A copy of what the research of `leads` and the ICP task of `kai-agent` gave for a public web domain. `leads` owns the profile, and `desk` owns no class for the shared copy."@en ;
3647
+ core:label "onboarding.research_cache"@en ;
3648
+ core:definition "The table of the shared research of a public web domain: one row for each domain, kept for 30 days. It holds only what comes from the public site, never a text of a person."@en ;
3649
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3650
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3651
+ core:owner core:desk .
3652
+
3653
+ desk:column-onboarding-research-cache-domain a owl:NamedIndividual , core:column ;
3654
+ core:of-table desk:table-onboarding-research-cache ;
3655
+ core:has-name "domain" ;
3656
+ core:not-modelled-reason "The normalized host of the company, which is the key of the cache. The model has no class for it."@en ;
3657
+ core:label "onboarding.research_cache.domain"@en ;
3658
+ core:definition "The normalized host of the company site, as the primary key."@en ;
3659
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3660
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3661
+ core:owner core:desk .
3662
+
3663
+ desk:column-onboarding-research-cache-result a owl:NamedIndividual , core:column ;
3664
+ core:of-table desk:table-onboarding-research-cache ;
3665
+ core:has-name "result" ;
3666
+ core:not-modelled-reason "The profile of the company and the ideal customer that the public site gives, as a JSON object. The model has `leads:profile` for the profile only."@en ;
3667
+ core:label "onboarding.research_cache.result"@en ;
3668
+ core:definition "The profile and the ideal customer that the research found for the domain."@en ;
3669
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3670
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3671
+ core:owner core:desk .
3672
+
3673
+ desk:column-onboarding-research-cache-created-at a owl:NamedIndividual , core:column ;
3674
+ core:of-table desk:table-onboarding-research-cache ;
3675
+ core:has-name "created_at" ;
3676
+ core:not-modelled-reason "Work state of `desk`: the time that the research was written, which decides the 30 days of its life."@en ;
3677
+ core:label "onboarding.research_cache.created_at"@en ;
3678
+ core:definition "The time that `desk` wrote the research of the domain."@en ;
3679
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3680
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3681
+ core:owner core:desk .
3682
+
3683
+ desk:column-onboarding-jobs-code a owl:NamedIndividual , core:column ;
3684
+ core:of-table desk:table-onboarding-jobs ;
3685
+ core:has-name "code" ;
3686
+ core:stores-property desk:has-failure-code ;
3687
+ core:label "onboarding.jobs.code"@en ;
3688
+ core:definition "The problem code that tells why the job failed. It is present only for the state `failed`."@en ;
3689
+ core:source "docs/decisions/0032-welcome-sign-up.md#The onboarding session" ;
3690
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
3691
+ core:owner core:desk .
3692
+
3456
3693
  desk:column-onboarding-sessions-research a owl:NamedIndividual , core:column ;
3457
3694
  core:of-table desk:table-onboarding-sessions ;
3458
3695
  core:has-name "research" ;
@@ -4151,12 +4388,31 @@ desk:column-life-merges-undo-until a owl:NamedIndividual , core:column ;
4151
4388
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
4152
4389
  core:owner core:desk .
4153
4390
 
4391
+ desk:undone-by a owl:ObjectProperty , owl:FunctionalProperty ;
4392
+ rdfs:domain desk:merge ;
4393
+ rdfs:range core:user ;
4394
+ core:label "undone by"@en ;
4395
+ core:definition "The teammate who started the undo of a merge."@en ;
4396
+ core:source "docs/specs/desk/docs/internal/decisions/0008-crm-writes.md#Decision" ;
4397
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
4398
+ core:owner core:desk .
4399
+
4400
+ desk:column-life-merges-undone-by a owl:NamedIndividual , core:column ;
4401
+ core:of-table desk:table-life-merges ;
4402
+ core:has-name "undone_by" ;
4403
+ core:stores-property desk:undone-by ;
4404
+ core:label "life.merges.undone_by"@en ;
4405
+ core:definition "The teammate who started the undo, set when the merge gets the state `undoing`."@en ;
4406
+ core:source "docs/specs/desk/docs/internal/decisions/0008-crm-writes.md#Decision" ;
4407
+ core:defined-by <https://id.quickpipe.ai/domain/desk> ;
4408
+ core:owner core:desk .
4409
+
4154
4410
  desk:column-life-merges-state a owl:NamedIndividual , core:column ;
4155
4411
  core:of-table desk:table-life-merges ;
4156
4412
  core:has-name "state" ;
4157
- core:not-modelled-reason "The state of the merge, `open`, `undone` or `final`. The model has no scheme for it."@en ;
4413
+ core:stores-property core:has-status ;
4158
4414
  core:label "life.merges.state"@en ;
4159
- core:definition "The state of the merge: `open` in the undo window, `undone` after an undo, or `final` after the worker synced it."@en ;
4415
+ core:definition "The state of the merge: `open` in the undo window, `undoing` while the services undo it, `undone` after an undo, or `final` after the worker synced it."@en ;
4160
4416
  core:source "docs/specs/desk/docs/internal/decisions/0008-crm-writes.md#Decision" ;
4161
4417
  core:defined-by <https://id.quickpipe.ai/domain/desk> ;
4162
4418
  core:owner core:desk .
@@ -4329,7 +4585,7 @@ desk:column-agenda-held-calls-fingerprint a owl:NamedIndividual , core:column ;
4329
4585
  desk:column-agenda-held-calls-status a owl:NamedIndividual , core:column ;
4330
4586
  core:of-table desk:table-agenda-held-calls ;
4331
4587
  core:has-name "status" ;
4332
- core:not-modelled-reason "The held call status, `held`, `running`, `done`, `failed`, `refused` or `expired`. The model has the scheme `held call answer status`, which merges `held` and `running` into `pending`."@en ;
4588
+ core:stores-property core:has-status ;
4333
4589
  core:label "agenda.held_calls.status"@en ;
4334
4590
  core:definition "The stored status of the held call: `held`, `running`, `done`, `failed`, `refused` or `expired`."@en ;
4335
4591
  core:source "docs/specs/desk/docs/internal/decisions/0027-held-calls.md#Store" ;
package/domain.ttl CHANGED
@@ -7,8 +7,8 @@
7
7
 
8
8
  <https://id.quickpipe.ai/domain>
9
9
  a owl:Ontology ;
10
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0> ;
11
- owl:versionInfo "0.11.0" ;
10
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.13.0> ;
11
+ owl:versionInfo "0.13.0" ;
12
12
  core:title "QuickPipe domain model"@en ;
13
13
  owl:imports <https://id.quickpipe.ai/domain/core> ,
14
14
  <https://id.quickpipe.ai/domain/identity> ,