@synap-core/workspace-templates 0.76.1 → 0.78.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/dist/index.js +265 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/builder.yaml +4 -0
- package/src/content-os.relations.template.test.ts +83 -0
- package/src/content-os.yaml +66 -0
- package/src/lifecycle-declarations.test.ts +2 -0
- package/src/operations.estimate.template.test.ts +125 -0
- package/src/operations.yaml +138 -0
- package/src/templates.ts +265 -0
package/src/templates.ts
CHANGED
|
@@ -6081,6 +6081,7 @@ const DATA = {
|
|
|
6081
6081
|
"label": "App",
|
|
6082
6082
|
"valueType": "entity_id",
|
|
6083
6083
|
"targetProfileSlug": "devplane_app",
|
|
6084
|
+
"relation": "belongs_to",
|
|
6084
6085
|
"inputType": "entity_select",
|
|
6085
6086
|
"description": "The app this design is for (one devplane_app, filed into the design's project). The Design app lists an app's designs by it; target-surface stays the screen's name."
|
|
6086
6087
|
},
|
|
@@ -6148,6 +6149,7 @@ const DATA = {
|
|
|
6148
6149
|
"label": "Screenshot",
|
|
6149
6150
|
"valueType": "entity_id",
|
|
6150
6151
|
"targetProfileSlug": "file",
|
|
6152
|
+
"relation": "references",
|
|
6151
6153
|
"inputType": "entity_select",
|
|
6152
6154
|
"description": "A render of the design, for review at a glance."
|
|
6153
6155
|
},
|
|
@@ -6297,6 +6299,7 @@ const DATA = {
|
|
|
6297
6299
|
"label": "Screenshot",
|
|
6298
6300
|
"valueType": "entity_id",
|
|
6299
6301
|
"targetProfileSlug": "file",
|
|
6302
|
+
"relation": "references",
|
|
6300
6303
|
"inputType": "entity_select",
|
|
6301
6304
|
"description": "A render of its main story, for review at a glance."
|
|
6302
6305
|
},
|
|
@@ -6326,6 +6329,7 @@ const DATA = {
|
|
|
6326
6329
|
"label": "App",
|
|
6327
6330
|
"valueType": "entity_id",
|
|
6328
6331
|
"targetProfileSlug": "devplane_app",
|
|
6332
|
+
"relation": "belongs_to",
|
|
6329
6333
|
"inputType": "entity_select",
|
|
6330
6334
|
"description": "The app (devplane_app) whose Storybook it comes from."
|
|
6331
6335
|
},
|
|
@@ -12565,6 +12569,7 @@ const DATA = {
|
|
|
12565
12569
|
"label": "Sponsor",
|
|
12566
12570
|
"valueType": "entity_id",
|
|
12567
12571
|
"targetProfileSlug": "sponsor",
|
|
12572
|
+
"relation": "sponsored_by",
|
|
12568
12573
|
"inputType": "entity_select"
|
|
12569
12574
|
},
|
|
12570
12575
|
{
|
|
@@ -12572,6 +12577,7 @@ const DATA = {
|
|
|
12572
12577
|
"label": "Journey Stage",
|
|
12573
12578
|
"valueType": "entity_id",
|
|
12574
12579
|
"targetProfileSlug": "journey-stage",
|
|
12580
|
+
"relation": "at_journey_stage",
|
|
12575
12581
|
"inputType": "entity_select"
|
|
12576
12582
|
},
|
|
12577
12583
|
{
|
|
@@ -12594,6 +12600,7 @@ const DATA = {
|
|
|
12594
12600
|
"label": "Offer",
|
|
12595
12601
|
"valueType": "entity_id",
|
|
12596
12602
|
"targetProfileSlug": "offer",
|
|
12603
|
+
"relation": "teaches_toward",
|
|
12597
12604
|
"inputType": "entity_select"
|
|
12598
12605
|
},
|
|
12599
12606
|
{
|
|
@@ -12644,6 +12651,7 @@ const DATA = {
|
|
|
12644
12651
|
"label": "Repurposed From",
|
|
12645
12652
|
"valueType": "entity_id",
|
|
12646
12653
|
"targetProfileSlug": "post",
|
|
12654
|
+
"relation": "derived_from",
|
|
12647
12655
|
"inputType": "entity_select"
|
|
12648
12656
|
},
|
|
12649
12657
|
{
|
|
@@ -12860,6 +12868,7 @@ const DATA = {
|
|
|
12860
12868
|
"label": "Journey Stage",
|
|
12861
12869
|
"valueType": "entity_id",
|
|
12862
12870
|
"targetProfileSlug": "journey-stage",
|
|
12871
|
+
"relation": "at_journey_stage",
|
|
12863
12872
|
"inputType": "entity_select"
|
|
12864
12873
|
},
|
|
12865
12874
|
{
|
|
@@ -12936,6 +12945,7 @@ const DATA = {
|
|
|
12936
12945
|
"label": "Audience",
|
|
12937
12946
|
"valueType": "entity_id",
|
|
12938
12947
|
"targetProfileSlug": "audience",
|
|
12948
|
+
"relation": "targets",
|
|
12939
12949
|
"inputType": "entity_select"
|
|
12940
12950
|
},
|
|
12941
12951
|
{
|
|
@@ -13029,6 +13039,7 @@ const DATA = {
|
|
|
13029
13039
|
"label": "Audience",
|
|
13030
13040
|
"valueType": "entity_id",
|
|
13031
13041
|
"targetProfileSlug": "audience",
|
|
13042
|
+
"relation": "targets",
|
|
13032
13043
|
"inputType": "entity_select"
|
|
13033
13044
|
},
|
|
13034
13045
|
{
|
|
@@ -13107,6 +13118,7 @@ const DATA = {
|
|
|
13107
13118
|
"label": "Pillar",
|
|
13108
13119
|
"valueType": "entity_id",
|
|
13109
13120
|
"targetProfileSlug": "pillar",
|
|
13121
|
+
"relation": "belongs_to_pillar",
|
|
13110
13122
|
"inputType": "entity_select"
|
|
13111
13123
|
}
|
|
13112
13124
|
]
|
|
@@ -13367,6 +13379,7 @@ const DATA = {
|
|
|
13367
13379
|
"label": "Sponsor",
|
|
13368
13380
|
"valueType": "entity_id",
|
|
13369
13381
|
"targetProfileSlug": "sponsor",
|
|
13382
|
+
"relation": "sponsored_by",
|
|
13370
13383
|
"inputType": "entity_select"
|
|
13371
13384
|
},
|
|
13372
13385
|
{
|
|
@@ -13374,6 +13387,7 @@ const DATA = {
|
|
|
13374
13387
|
"label": "Campaign",
|
|
13375
13388
|
"valueType": "entity_id",
|
|
13376
13389
|
"targetProfileSlug": "campaign",
|
|
13390
|
+
"relation": "part_of_campaign",
|
|
13377
13391
|
"inputType": "entity_select"
|
|
13378
13392
|
},
|
|
13379
13393
|
{
|
|
@@ -13381,6 +13395,7 @@ const DATA = {
|
|
|
13381
13395
|
"label": "Primary Pillar",
|
|
13382
13396
|
"valueType": "entity_id",
|
|
13383
13397
|
"targetProfileSlug": "pillar",
|
|
13398
|
+
"relation": "belongs_to_pillar",
|
|
13384
13399
|
"inputType": "entity_select"
|
|
13385
13400
|
},
|
|
13386
13401
|
{
|
|
@@ -13650,6 +13665,7 @@ const DATA = {
|
|
|
13650
13665
|
"label": "Audience",
|
|
13651
13666
|
"valueType": "entity_id",
|
|
13652
13667
|
"targetProfileSlug": "audience",
|
|
13668
|
+
"relation": "affects",
|
|
13653
13669
|
"inputType": "entity_select"
|
|
13654
13670
|
},
|
|
13655
13671
|
{
|
|
@@ -13771,6 +13787,7 @@ const DATA = {
|
|
|
13771
13787
|
"label": "Audience",
|
|
13772
13788
|
"valueType": "entity_id",
|
|
13773
13789
|
"targetProfileSlug": "audience",
|
|
13790
|
+
"relation": "targets",
|
|
13774
13791
|
"inputType": "entity_select"
|
|
13775
13792
|
},
|
|
13776
13793
|
{
|
|
@@ -13973,6 +13990,7 @@ const DATA = {
|
|
|
13973
13990
|
"label": "Template",
|
|
13974
13991
|
"valueType": "entity_id",
|
|
13975
13992
|
"targetProfileSlug": "brand-template",
|
|
13993
|
+
"relation": "uses",
|
|
13976
13994
|
"inputType": "entity_select",
|
|
13977
13995
|
"description": "The reusable brand-template shell this started from."
|
|
13978
13996
|
},
|
|
@@ -14153,6 +14171,7 @@ const DATA = {
|
|
|
14153
14171
|
"label": "Cut from take",
|
|
14154
14172
|
"valueType": "entity_id",
|
|
14155
14173
|
"targetProfileSlug": "content-asset",
|
|
14174
|
+
"relation": "derived_from",
|
|
14156
14175
|
"inputType": "entity_select"
|
|
14157
14176
|
},
|
|
14158
14177
|
{
|
|
@@ -14253,6 +14272,7 @@ const DATA = {
|
|
|
14253
14272
|
"label": "Output",
|
|
14254
14273
|
"valueType": "entity_id",
|
|
14255
14274
|
"targetProfileSlug": "file",
|
|
14275
|
+
"relation": "references",
|
|
14256
14276
|
"inputType": "entity_select"
|
|
14257
14277
|
},
|
|
14258
14278
|
{
|
|
@@ -14632,6 +14652,78 @@ const DATA = {
|
|
|
14632
14652
|
}
|
|
14633
14653
|
},
|
|
14634
14654
|
"entityLinks": [
|
|
14655
|
+
{
|
|
14656
|
+
"sourceProfileSlug": "idea",
|
|
14657
|
+
"targetProfileSlug": "journey-stage",
|
|
14658
|
+
"type": "at_journey_stage",
|
|
14659
|
+
"label": "Journey Stage"
|
|
14660
|
+
},
|
|
14661
|
+
{
|
|
14662
|
+
"sourceProfileSlug": "pillar",
|
|
14663
|
+
"targetProfileSlug": "audience",
|
|
14664
|
+
"type": "targets",
|
|
14665
|
+
"label": "Audience"
|
|
14666
|
+
},
|
|
14667
|
+
{
|
|
14668
|
+
"sourceProfileSlug": "journey-stage",
|
|
14669
|
+
"targetProfileSlug": "audience",
|
|
14670
|
+
"type": "targets",
|
|
14671
|
+
"label": "Audience"
|
|
14672
|
+
},
|
|
14673
|
+
{
|
|
14674
|
+
"sourceProfileSlug": "series",
|
|
14675
|
+
"targetProfileSlug": "pillar",
|
|
14676
|
+
"type": "belongs_to_pillar",
|
|
14677
|
+
"label": "Pillar"
|
|
14678
|
+
},
|
|
14679
|
+
{
|
|
14680
|
+
"sourceProfileSlug": "newsletter",
|
|
14681
|
+
"targetProfileSlug": "sponsor",
|
|
14682
|
+
"type": "sponsored_by",
|
|
14683
|
+
"label": "Sponsor"
|
|
14684
|
+
},
|
|
14685
|
+
{
|
|
14686
|
+
"sourceProfileSlug": "newsletter",
|
|
14687
|
+
"targetProfileSlug": "campaign",
|
|
14688
|
+
"type": "part_of_campaign",
|
|
14689
|
+
"label": "Campaign"
|
|
14690
|
+
},
|
|
14691
|
+
{
|
|
14692
|
+
"sourceProfileSlug": "newsletter",
|
|
14693
|
+
"targetProfileSlug": "pillar",
|
|
14694
|
+
"type": "belongs_to_pillar",
|
|
14695
|
+
"label": "Pillar"
|
|
14696
|
+
},
|
|
14697
|
+
{
|
|
14698
|
+
"sourceProfileSlug": "offer",
|
|
14699
|
+
"targetProfileSlug": "audience",
|
|
14700
|
+
"type": "targets",
|
|
14701
|
+
"label": "Audience"
|
|
14702
|
+
},
|
|
14703
|
+
{
|
|
14704
|
+
"sourceProfileSlug": "content-composition",
|
|
14705
|
+
"targetProfileSlug": "brand-template",
|
|
14706
|
+
"type": "uses",
|
|
14707
|
+
"label": "Template"
|
|
14708
|
+
},
|
|
14709
|
+
{
|
|
14710
|
+
"sourceProfileSlug": "content-asset",
|
|
14711
|
+
"targetProfileSlug": "content-asset",
|
|
14712
|
+
"type": "derived_from",
|
|
14713
|
+
"label": "Taken from"
|
|
14714
|
+
},
|
|
14715
|
+
{
|
|
14716
|
+
"sourceProfileSlug": "pain-point",
|
|
14717
|
+
"targetProfileSlug": "audience",
|
|
14718
|
+
"type": "affects",
|
|
14719
|
+
"label": "Audience"
|
|
14720
|
+
},
|
|
14721
|
+
{
|
|
14722
|
+
"sourceProfileSlug": "render-job",
|
|
14723
|
+
"targetProfileSlug": "file",
|
|
14724
|
+
"type": "references",
|
|
14725
|
+
"label": "Output file"
|
|
14726
|
+
},
|
|
14635
14727
|
{
|
|
14636
14728
|
"sourceProfileSlug": "post",
|
|
14637
14729
|
"targetProfileSlug": "campaign",
|
|
@@ -32548,6 +32640,12 @@ const DATA = {
|
|
|
32548
32640
|
"kind": "workspace",
|
|
32549
32641
|
"relation": "require",
|
|
32550
32642
|
"reason": "Provides the pod-wide `client` role this space onboards and serves (Clients board, Onboard a client) and its automations query."
|
|
32643
|
+
},
|
|
32644
|
+
{
|
|
32645
|
+
"slug": "brand-library",
|
|
32646
|
+
"kind": "workspace",
|
|
32647
|
+
"relation": "require",
|
|
32648
|
+
"reason": "Provides the shared brand-template kind an estimate is generated from."
|
|
32551
32649
|
}
|
|
32552
32650
|
],
|
|
32553
32651
|
"profiles": [
|
|
@@ -32848,6 +32946,142 @@ const DATA = {
|
|
|
32848
32946
|
}
|
|
32849
32947
|
]
|
|
32850
32948
|
},
|
|
32949
|
+
{
|
|
32950
|
+
"slug": "estimate",
|
|
32951
|
+
"displayName": "Estimate",
|
|
32952
|
+
"icon": "calculator",
|
|
32953
|
+
"description": "A priced quote for a client, sent before any contract — its lines, currency, VAT, version and the date it is valid until.",
|
|
32954
|
+
"lifecycle": {
|
|
32955
|
+
"property": "estimate-status",
|
|
32956
|
+
"options": [
|
|
32957
|
+
{
|
|
32958
|
+
"key": "draft",
|
|
32959
|
+
"category": "open"
|
|
32960
|
+
},
|
|
32961
|
+
{
|
|
32962
|
+
"key": "sent",
|
|
32963
|
+
"category": "active"
|
|
32964
|
+
},
|
|
32965
|
+
{
|
|
32966
|
+
"key": "accepted",
|
|
32967
|
+
"category": "done",
|
|
32968
|
+
"humanOnly": true
|
|
32969
|
+
},
|
|
32970
|
+
{
|
|
32971
|
+
"key": "declined",
|
|
32972
|
+
"category": "lost",
|
|
32973
|
+
"humanOnly": true
|
|
32974
|
+
},
|
|
32975
|
+
{
|
|
32976
|
+
"key": "expired",
|
|
32977
|
+
"category": "lost"
|
|
32978
|
+
},
|
|
32979
|
+
{
|
|
32980
|
+
"key": "superseded",
|
|
32981
|
+
"category": "lost"
|
|
32982
|
+
}
|
|
32983
|
+
]
|
|
32984
|
+
},
|
|
32985
|
+
"properties": [
|
|
32986
|
+
{
|
|
32987
|
+
"slug": "estimate-status",
|
|
32988
|
+
"label": "Status",
|
|
32989
|
+
"valueType": "string",
|
|
32990
|
+
"inputType": "select",
|
|
32991
|
+
"enumValues": [
|
|
32992
|
+
"draft",
|
|
32993
|
+
"sent",
|
|
32994
|
+
"accepted",
|
|
32995
|
+
"declined",
|
|
32996
|
+
"expired",
|
|
32997
|
+
"superseded"
|
|
32998
|
+
],
|
|
32999
|
+
"constraints": {
|
|
33000
|
+
"defaultValue": "draft"
|
|
33001
|
+
}
|
|
33002
|
+
},
|
|
33003
|
+
{
|
|
33004
|
+
"slug": "estimate-number",
|
|
33005
|
+
"label": "Number",
|
|
33006
|
+
"valueType": "string",
|
|
33007
|
+
"inputType": "text"
|
|
33008
|
+
},
|
|
33009
|
+
{
|
|
33010
|
+
"slug": "estimate-version",
|
|
33011
|
+
"label": "Version",
|
|
33012
|
+
"valueType": "number",
|
|
33013
|
+
"inputType": "number",
|
|
33014
|
+
"constraints": {
|
|
33015
|
+
"defaultValue": 1
|
|
33016
|
+
}
|
|
33017
|
+
},
|
|
33018
|
+
{
|
|
33019
|
+
"slug": "issued-date",
|
|
33020
|
+
"label": "Issued",
|
|
33021
|
+
"valueType": "date",
|
|
33022
|
+
"inputType": "date"
|
|
33023
|
+
},
|
|
33024
|
+
{
|
|
33025
|
+
"slug": "valid-until",
|
|
33026
|
+
"label": "Valid until",
|
|
33027
|
+
"valueType": "date",
|
|
33028
|
+
"inputType": "date"
|
|
33029
|
+
},
|
|
33030
|
+
{
|
|
33031
|
+
"slug": "estimate-currency",
|
|
33032
|
+
"label": "Currency",
|
|
33033
|
+
"valueType": "string",
|
|
33034
|
+
"inputType": "text",
|
|
33035
|
+
"constraints": {
|
|
33036
|
+
"defaultValue": "EUR"
|
|
33037
|
+
}
|
|
33038
|
+
},
|
|
33039
|
+
{
|
|
33040
|
+
"slug": "estimate-vat-bp",
|
|
33041
|
+
"label": "VAT (basis points)",
|
|
33042
|
+
"valueType": "number",
|
|
33043
|
+
"inputType": "number",
|
|
33044
|
+
"constraints": {
|
|
33045
|
+
"defaultValue": 2000
|
|
33046
|
+
}
|
|
33047
|
+
},
|
|
33048
|
+
{
|
|
33049
|
+
"slug": "estimate-lines",
|
|
33050
|
+
"label": "Lines",
|
|
33051
|
+
"description": "The priced lines: a list of { label, quantity, unit_price }, unit_price an integer in minor units (cents).",
|
|
33052
|
+
"valueType": "array",
|
|
33053
|
+
"inputType": "json"
|
|
33054
|
+
},
|
|
33055
|
+
{
|
|
33056
|
+
"slug": "estimate-client",
|
|
33057
|
+
"label": "Client",
|
|
33058
|
+
"valueType": "entity_id",
|
|
33059
|
+
"targetProfileSlug": "client",
|
|
33060
|
+
"inputType": "entity_select"
|
|
33061
|
+
},
|
|
33062
|
+
{
|
|
33063
|
+
"slug": "estimate-deal",
|
|
33064
|
+
"label": "Deal",
|
|
33065
|
+
"valueType": "entity_id",
|
|
33066
|
+
"targetProfileSlug": "deal",
|
|
33067
|
+
"relation": "estimate_for_deal",
|
|
33068
|
+
"inputType": "entity_select"
|
|
33069
|
+
},
|
|
33070
|
+
{
|
|
33071
|
+
"slug": "estimate-template",
|
|
33072
|
+
"label": "Template",
|
|
33073
|
+
"valueType": "entity_id",
|
|
33074
|
+
"targetProfileSlug": "brand-template",
|
|
33075
|
+
"inputType": "entity_select"
|
|
33076
|
+
}
|
|
33077
|
+
]
|
|
33078
|
+
},
|
|
33079
|
+
{
|
|
33080
|
+
"slug": "brand-template",
|
|
33081
|
+
"displayName": "Brand Template",
|
|
33082
|
+
"scope": "shared",
|
|
33083
|
+
"properties": []
|
|
33084
|
+
},
|
|
32851
33085
|
{
|
|
32852
33086
|
"slug": "client-briefing",
|
|
32853
33087
|
"displayName": "Client Briefing",
|
|
@@ -32931,6 +33165,24 @@ const DATA = {
|
|
|
32931
33165
|
"targetProfileSlug": "engagement",
|
|
32932
33166
|
"type": "contract_for_engagement",
|
|
32933
33167
|
"label": "Engagement"
|
|
33168
|
+
},
|
|
33169
|
+
{
|
|
33170
|
+
"sourceProfileSlug": "estimate",
|
|
33171
|
+
"targetProfileSlug": "deal",
|
|
33172
|
+
"type": "estimate_for_deal",
|
|
33173
|
+
"label": "Deal"
|
|
33174
|
+
},
|
|
33175
|
+
{
|
|
33176
|
+
"sourceProfileSlug": "estimate",
|
|
33177
|
+
"targetProfileSlug": "contract",
|
|
33178
|
+
"type": "estimate_becomes_contract",
|
|
33179
|
+
"label": "Contract"
|
|
33180
|
+
},
|
|
33181
|
+
{
|
|
33182
|
+
"sourceProfileSlug": "estimate",
|
|
33183
|
+
"targetProfileSlug": "estimate",
|
|
33184
|
+
"type": "revises",
|
|
33185
|
+
"label": "Revises"
|
|
32934
33186
|
}
|
|
32935
33187
|
],
|
|
32936
33188
|
"views": [
|
|
@@ -32981,6 +33233,13 @@ const DATA = {
|
|
|
32981
33233
|
"groupByField": "contract-status"
|
|
32982
33234
|
}
|
|
32983
33235
|
},
|
|
33236
|
+
{
|
|
33237
|
+
"name": "Estimates",
|
|
33238
|
+
"slug": "estimates",
|
|
33239
|
+
"type": "table",
|
|
33240
|
+
"scopeProfileSlug": "estimate",
|
|
33241
|
+
"description": "Estimates with their status, client, deal and validity."
|
|
33242
|
+
},
|
|
32984
33243
|
{
|
|
32985
33244
|
"name": "Client Briefings",
|
|
32986
33245
|
"slug": "client-briefings",
|
|
@@ -33057,6 +33316,12 @@ const DATA = {
|
|
|
33057
33316
|
"viewName": "Contracts",
|
|
33058
33317
|
"label": "Contracts",
|
|
33059
33318
|
"icon": "file-signature"
|
|
33319
|
+
},
|
|
33320
|
+
{
|
|
33321
|
+
"kind": "view",
|
|
33322
|
+
"viewName": "Estimates",
|
|
33323
|
+
"label": "Estimates",
|
|
33324
|
+
"icon": "calculator"
|
|
33060
33325
|
}
|
|
33061
33326
|
]
|
|
33062
33327
|
},
|