@synap-core/workspace-templates 0.4.0 → 0.6.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.
@@ -200,6 +200,232 @@ profiles:
200
200
  valueType: string
201
201
  inputType: textarea
202
202
 
203
+ # ═══════════════════════════════════════════════════════════════════════════
204
+ # ECOSYSTEM ROLES — pod-wide, cross-workspace role vocabulary (SSOT)
205
+ #
206
+ # These are `profileKind: role` facets, `scope: shared` (pod-wide): defined
207
+ # ONCE here and attachable to a company OR a person from ANY workspace, and
208
+ # filterable from any workspace that references them. Foundation is pod_visible
209
+ # ("the outside-in layer every workspace inherits"), so it is the natural home
210
+ # for the shared relationship vocabulary. Other templates (crm, grants) reuse
211
+ # these by declaring the SAME slug with `scope: shared` — provisioning dedups
212
+ # to this one pod-wide profile and grants the referencing workspace access
213
+ # (see create-workspace-from-definition.ts: the `scope === "shared"` reuse
214
+ # branch). SHARED profiles are grant-gated, so a workspace must reference the
215
+ # slug to receive the grant — that is why consumers keep a `scope: shared`
216
+ # reference rather than dropping the profile entirely.
217
+ #
218
+ # This set is a starting vocabulary — extensible. Users mint more roles on the
219
+ # go; these cover the common commercial + web3 ecosystem relationships.
220
+ # ═══════════════════════════════════════════════════════════════════════════
221
+
222
+ # ── Client (active commercial relationship) ───────────────────────────────
223
+ - slug: client
224
+ displayName: Client
225
+ icon: briefcase
226
+ color: emerald
227
+ description: An active commercial relationship — created when a deal is won.
228
+ scope: shared
229
+ profileKind: role
230
+ applicableKinds:
231
+ - company
232
+ - person
233
+ properties:
234
+ - slug: clientStatus
235
+ label: Status
236
+ valueType: string
237
+ inputType: select
238
+ enumValues:
239
+ - prospect
240
+ - active
241
+ - paused
242
+ - former
243
+ - churned
244
+ - slug: accountManager
245
+ label: Account Manager
246
+ valueType: string
247
+ inputType: text
248
+ - slug: engagementStartDate
249
+ label: Engagement Start
250
+ valueType: date
251
+ inputType: date
252
+ - slug: satisfactionScore
253
+ label: Satisfaction
254
+ valueType: number
255
+ inputType: number
256
+ - slug: lifetimeValue
257
+ label: Lifetime Value
258
+ valueType: number
259
+ inputType: number
260
+ - slug: notes
261
+ label: Notes
262
+ valueType: string
263
+ inputType: textarea
264
+ - slug: contractValue
265
+ label: Contract Value
266
+ valueType: number
267
+ inputType: number
268
+ - slug: renewalDate
269
+ label: Renewal Date
270
+ valueType: date
271
+ inputType: date
272
+ - slug: healthScore
273
+ label: Health
274
+ valueType: string
275
+ inputType: select
276
+ enumValues:
277
+ - healthy
278
+ - at_risk
279
+ - critical
280
+
281
+ # ── Partner (referral source + co-delivery collaborator) ──────────────────
282
+ - slug: partner
283
+ displayName: Partner
284
+ icon: handshake
285
+ color: teal
286
+ description: A partner relationship — both a referral source and a co-delivery collaborator, distinguished by partner type.
287
+ scope: shared
288
+ profileKind: role
289
+ applicableKinds:
290
+ - company
291
+ - person
292
+ properties:
293
+ - slug: partnerStatus
294
+ label: Status
295
+ valueType: string
296
+ inputType: select
297
+ enumValues:
298
+ - prospect
299
+ - active
300
+ - paused
301
+ - churned
302
+ - slug: partnerType
303
+ label: Partner Type
304
+ valueType: string
305
+ inputType: select
306
+ enumValues:
307
+ - referral
308
+ - co-delivery
309
+ - both
310
+ - slug: accountManager
311
+ label: Account Manager
312
+ valueType: string
313
+ inputType: text
314
+ - slug: engagementStartDate
315
+ label: Engagement Start
316
+ valueType: date
317
+ inputType: date
318
+ - slug: satisfactionScore
319
+ label: Satisfaction
320
+ valueType: number
321
+ inputType: number
322
+ - slug: lifetimeValue
323
+ label: Lifetime Value
324
+ valueType: number
325
+ inputType: number
326
+ - slug: notes
327
+ label: Notes
328
+ valueType: string
329
+ inputType: textarea
330
+ - slug: contractValue
331
+ label: Contract Value
332
+ valueType: number
333
+ inputType: number
334
+ - slug: renewalDate
335
+ label: Renewal Date
336
+ valueType: date
337
+ inputType: date
338
+ - slug: healthScore
339
+ label: Health
340
+ valueType: string
341
+ inputType: select
342
+ enumValues:
343
+ - healthy
344
+ - at_risk
345
+ - critical
346
+
347
+ # ── Sponsor (backer of a program, round, or event) ────────────────────────
348
+ - slug: sponsor
349
+ displayName: Sponsor
350
+ icon: hand-coins
351
+ color: amber
352
+ description: A backer or sponsor of a program, round, or event.
353
+ scope: shared
354
+ profileKind: role
355
+ applicableKinds:
356
+ - company
357
+ - person
358
+ properties:
359
+ - slug: sponsorStatus
360
+ label: Status
361
+ valueType: string
362
+ inputType: select
363
+ enumValues:
364
+ - prospect
365
+ - active
366
+ - paused
367
+ - slug: sponsorType
368
+ label: Sponsor Type
369
+ valueType: string
370
+ inputType: text
371
+ - slug: notes
372
+ label: Notes
373
+ valueType: string
374
+ inputType: textarea
375
+
376
+ # ── Lead (early-pipeline prospect, pre-client) ─────────────────────────────
377
+ - slug: lead
378
+ displayName: Lead
379
+ icon: user-plus
380
+ color: yellow
381
+ description: An early-pipeline prospect — not yet a client, being qualified or nurtured.
382
+ scope: shared
383
+ profileKind: role
384
+ applicableKinds:
385
+ - company
386
+ - person
387
+ properties:
388
+ - slug: leadStage
389
+ label: Stage
390
+ valueType: string
391
+ inputType: select
392
+ enumValues:
393
+ - prospect
394
+ - qualified
395
+ - nurturing
396
+ - converted
397
+ - lost
398
+ constraints: { defaultValue: prospect }
399
+ - slug: notes
400
+ label: Notes
401
+ valueType: string
402
+ inputType: textarea
403
+
404
+ # ── Churned (formerly-active relationship that ended) ──────────────────────
405
+ - slug: churned
406
+ displayName: Churned
407
+ icon: user-x
408
+ color: gray
409
+ description: A relationship (client, partner, or otherwise) that was active and has since ended.
410
+ scope: shared
411
+ profileKind: role
412
+ applicableKinds:
413
+ - company
414
+ - person
415
+ properties:
416
+ - slug: churnedDate
417
+ label: Churned Date
418
+ valueType: date
419
+ inputType: date
420
+ - slug: churnReason
421
+ label: Reason
422
+ valueType: string
423
+ inputType: textarea
424
+ - slug: notes
425
+ label: Notes
426
+ valueType: string
427
+ inputType: textarea
428
+
203
429
  views:
204
430
  - name: Mission & Vision
205
431
  slug: mission-vision
@@ -326,7 +552,7 @@ app:
326
552
  layout:
327
553
  defaultView: Mission & Vision
328
554
  defaultApp: null
329
- pinnedApps: [dashboard, data, intelligence]
555
+ pinnedApps: [dashboard, data, chat]
330
556
  sidebarItems:
331
557
  - kind: view
332
558
  viewName: Mission & Vision