@synap-core/workspace-templates 0.77.0 → 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 +173 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- 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 +173 -0
package/dist/index.js
CHANGED
|
@@ -32752,6 +32752,12 @@ Pick the SINGLE best provider for this need, or none if nothing fits well. Respo
|
|
|
32752
32752
|
"kind": "workspace",
|
|
32753
32753
|
"relation": "require",
|
|
32754
32754
|
"reason": "Provides the pod-wide `client` role this space onboards and serves (Clients board, Onboard a client) and its automations query."
|
|
32755
|
+
},
|
|
32756
|
+
{
|
|
32757
|
+
"slug": "brand-library",
|
|
32758
|
+
"kind": "workspace",
|
|
32759
|
+
"relation": "require",
|
|
32760
|
+
"reason": "Provides the shared brand-template kind an estimate is generated from."
|
|
32755
32761
|
}
|
|
32756
32762
|
],
|
|
32757
32763
|
"profiles": [
|
|
@@ -33052,6 +33058,142 @@ Pick the SINGLE best provider for this need, or none if nothing fits well. Respo
|
|
|
33052
33058
|
}
|
|
33053
33059
|
]
|
|
33054
33060
|
},
|
|
33061
|
+
{
|
|
33062
|
+
"slug": "estimate",
|
|
33063
|
+
"displayName": "Estimate",
|
|
33064
|
+
"icon": "calculator",
|
|
33065
|
+
"description": "A priced quote for a client, sent before any contract \u2014 its lines, currency, VAT, version and the date it is valid until.",
|
|
33066
|
+
"lifecycle": {
|
|
33067
|
+
"property": "estimate-status",
|
|
33068
|
+
"options": [
|
|
33069
|
+
{
|
|
33070
|
+
"key": "draft",
|
|
33071
|
+
"category": "open"
|
|
33072
|
+
},
|
|
33073
|
+
{
|
|
33074
|
+
"key": "sent",
|
|
33075
|
+
"category": "active"
|
|
33076
|
+
},
|
|
33077
|
+
{
|
|
33078
|
+
"key": "accepted",
|
|
33079
|
+
"category": "done",
|
|
33080
|
+
"humanOnly": true
|
|
33081
|
+
},
|
|
33082
|
+
{
|
|
33083
|
+
"key": "declined",
|
|
33084
|
+
"category": "lost",
|
|
33085
|
+
"humanOnly": true
|
|
33086
|
+
},
|
|
33087
|
+
{
|
|
33088
|
+
"key": "expired",
|
|
33089
|
+
"category": "lost"
|
|
33090
|
+
},
|
|
33091
|
+
{
|
|
33092
|
+
"key": "superseded",
|
|
33093
|
+
"category": "lost"
|
|
33094
|
+
}
|
|
33095
|
+
]
|
|
33096
|
+
},
|
|
33097
|
+
"properties": [
|
|
33098
|
+
{
|
|
33099
|
+
"slug": "estimate-status",
|
|
33100
|
+
"label": "Status",
|
|
33101
|
+
"valueType": "string",
|
|
33102
|
+
"inputType": "select",
|
|
33103
|
+
"enumValues": [
|
|
33104
|
+
"draft",
|
|
33105
|
+
"sent",
|
|
33106
|
+
"accepted",
|
|
33107
|
+
"declined",
|
|
33108
|
+
"expired",
|
|
33109
|
+
"superseded"
|
|
33110
|
+
],
|
|
33111
|
+
"constraints": {
|
|
33112
|
+
"defaultValue": "draft"
|
|
33113
|
+
}
|
|
33114
|
+
},
|
|
33115
|
+
{
|
|
33116
|
+
"slug": "estimate-number",
|
|
33117
|
+
"label": "Number",
|
|
33118
|
+
"valueType": "string",
|
|
33119
|
+
"inputType": "text"
|
|
33120
|
+
},
|
|
33121
|
+
{
|
|
33122
|
+
"slug": "estimate-version",
|
|
33123
|
+
"label": "Version",
|
|
33124
|
+
"valueType": "number",
|
|
33125
|
+
"inputType": "number",
|
|
33126
|
+
"constraints": {
|
|
33127
|
+
"defaultValue": 1
|
|
33128
|
+
}
|
|
33129
|
+
},
|
|
33130
|
+
{
|
|
33131
|
+
"slug": "issued-date",
|
|
33132
|
+
"label": "Issued",
|
|
33133
|
+
"valueType": "date",
|
|
33134
|
+
"inputType": "date"
|
|
33135
|
+
},
|
|
33136
|
+
{
|
|
33137
|
+
"slug": "valid-until",
|
|
33138
|
+
"label": "Valid until",
|
|
33139
|
+
"valueType": "date",
|
|
33140
|
+
"inputType": "date"
|
|
33141
|
+
},
|
|
33142
|
+
{
|
|
33143
|
+
"slug": "estimate-currency",
|
|
33144
|
+
"label": "Currency",
|
|
33145
|
+
"valueType": "string",
|
|
33146
|
+
"inputType": "text",
|
|
33147
|
+
"constraints": {
|
|
33148
|
+
"defaultValue": "EUR"
|
|
33149
|
+
}
|
|
33150
|
+
},
|
|
33151
|
+
{
|
|
33152
|
+
"slug": "estimate-vat-bp",
|
|
33153
|
+
"label": "VAT (basis points)",
|
|
33154
|
+
"valueType": "number",
|
|
33155
|
+
"inputType": "number",
|
|
33156
|
+
"constraints": {
|
|
33157
|
+
"defaultValue": 2e3
|
|
33158
|
+
}
|
|
33159
|
+
},
|
|
33160
|
+
{
|
|
33161
|
+
"slug": "estimate-lines",
|
|
33162
|
+
"label": "Lines",
|
|
33163
|
+
"description": "The priced lines: a list of { label, quantity, unit_price }, unit_price an integer in minor units (cents).",
|
|
33164
|
+
"valueType": "array",
|
|
33165
|
+
"inputType": "json"
|
|
33166
|
+
},
|
|
33167
|
+
{
|
|
33168
|
+
"slug": "estimate-client",
|
|
33169
|
+
"label": "Client",
|
|
33170
|
+
"valueType": "entity_id",
|
|
33171
|
+
"targetProfileSlug": "client",
|
|
33172
|
+
"inputType": "entity_select"
|
|
33173
|
+
},
|
|
33174
|
+
{
|
|
33175
|
+
"slug": "estimate-deal",
|
|
33176
|
+
"label": "Deal",
|
|
33177
|
+
"valueType": "entity_id",
|
|
33178
|
+
"targetProfileSlug": "deal",
|
|
33179
|
+
"relation": "estimate_for_deal",
|
|
33180
|
+
"inputType": "entity_select"
|
|
33181
|
+
},
|
|
33182
|
+
{
|
|
33183
|
+
"slug": "estimate-template",
|
|
33184
|
+
"label": "Template",
|
|
33185
|
+
"valueType": "entity_id",
|
|
33186
|
+
"targetProfileSlug": "brand-template",
|
|
33187
|
+
"inputType": "entity_select"
|
|
33188
|
+
}
|
|
33189
|
+
]
|
|
33190
|
+
},
|
|
33191
|
+
{
|
|
33192
|
+
"slug": "brand-template",
|
|
33193
|
+
"displayName": "Brand Template",
|
|
33194
|
+
"scope": "shared",
|
|
33195
|
+
"properties": []
|
|
33196
|
+
},
|
|
33055
33197
|
{
|
|
33056
33198
|
"slug": "client-briefing",
|
|
33057
33199
|
"displayName": "Client Briefing",
|
|
@@ -33135,6 +33277,24 @@ Pick the SINGLE best provider for this need, or none if nothing fits well. Respo
|
|
|
33135
33277
|
"targetProfileSlug": "engagement",
|
|
33136
33278
|
"type": "contract_for_engagement",
|
|
33137
33279
|
"label": "Engagement"
|
|
33280
|
+
},
|
|
33281
|
+
{
|
|
33282
|
+
"sourceProfileSlug": "estimate",
|
|
33283
|
+
"targetProfileSlug": "deal",
|
|
33284
|
+
"type": "estimate_for_deal",
|
|
33285
|
+
"label": "Deal"
|
|
33286
|
+
},
|
|
33287
|
+
{
|
|
33288
|
+
"sourceProfileSlug": "estimate",
|
|
33289
|
+
"targetProfileSlug": "contract",
|
|
33290
|
+
"type": "estimate_becomes_contract",
|
|
33291
|
+
"label": "Contract"
|
|
33292
|
+
},
|
|
33293
|
+
{
|
|
33294
|
+
"sourceProfileSlug": "estimate",
|
|
33295
|
+
"targetProfileSlug": "estimate",
|
|
33296
|
+
"type": "revises",
|
|
33297
|
+
"label": "Revises"
|
|
33138
33298
|
}
|
|
33139
33299
|
],
|
|
33140
33300
|
"views": [
|
|
@@ -33185,6 +33345,13 @@ Pick the SINGLE best provider for this need, or none if nothing fits well. Respo
|
|
|
33185
33345
|
"groupByField": "contract-status"
|
|
33186
33346
|
}
|
|
33187
33347
|
},
|
|
33348
|
+
{
|
|
33349
|
+
"name": "Estimates",
|
|
33350
|
+
"slug": "estimates",
|
|
33351
|
+
"type": "table",
|
|
33352
|
+
"scopeProfileSlug": "estimate",
|
|
33353
|
+
"description": "Estimates with their status, client, deal and validity."
|
|
33354
|
+
},
|
|
33188
33355
|
{
|
|
33189
33356
|
"name": "Client Briefings",
|
|
33190
33357
|
"slug": "client-briefings",
|
|
@@ -33262,6 +33429,12 @@ Pick the SINGLE best provider for this need, or none if nothing fits well. Respo
|
|
|
33262
33429
|
"viewName": "Contracts",
|
|
33263
33430
|
"label": "Contracts",
|
|
33264
33431
|
"icon": "file-signature"
|
|
33432
|
+
},
|
|
33433
|
+
{
|
|
33434
|
+
"kind": "view",
|
|
33435
|
+
"viewName": "Estimates",
|
|
33436
|
+
"label": "Estimates",
|
|
33437
|
+
"icon": "calculator"
|
|
33265
33438
|
}
|
|
33266
33439
|
]
|
|
33267
33440
|
},
|