@hiver/connector-agent 4.27.0-appWidgets-beta.11 → 4.27.0-appWidgets-beta.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "4.27.0-appWidgets-beta.11",
3
+ "version": "4.27.0-appWidgets-beta.13",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,42 +0,0 @@
1
- import { AppWidgetCategory } from './types';
2
- /**
3
- * How to pick one value from a template card. Templates are admin-editable and many customers
4
- * run their own variant (shopify_zwift_uk, salesforce_bayzat...), so a pick lists every field
5
- * key we have seen for it, then a label pattern. When neither matches, the model falls back to
6
- * the card's next field by priority rather than showing nothing.
7
- */
8
- export type FieldPick = {
9
- label: string;
10
- keys: string[];
11
- labelPattern?: RegExp;
12
- /** Keys whose values are joined with a space (first_name + last_name). */
13
- join?: string[];
14
- format?: 'date' | 'money';
15
- };
16
- export type RecordSpec = {
17
- /** Shown above the card title. */
18
- recordType: string;
19
- /** Matches the template card's title. */
20
- cardTitle: RegExp;
21
- /** Template cards whose title also matches this are not this record (e.g. automation cards). */
22
- excludeTitle?: RegExp;
23
- title: FieldPick;
24
- fields: [FieldPick, FieldPick];
25
- };
26
- export type AppSpec = {
27
- id: string;
28
- /** Matches the connector name, which custom variants prefix or suffix ("Shopify - Zwift UK"). */
29
- namePattern: RegExp;
30
- category: AppWidgetCategory;
31
- records: RecordSpec[];
32
- /** PM tools: the tool's own word for a record, singular and plural. */
33
- recordWord?: [string, string];
34
- /** Opportunity/deal word used in the collapsed value. */
35
- dealWord?: [string, string];
36
- /** Label of the Create button; apps without one show only Search & link, full width. */
37
- createLabel?: string;
38
- };
39
- export declare const APP_SPECS: AppSpec[];
40
- /** The widget spec for a connector, or null when the app has no widget in M1. */
41
- export declare const getAppSpec: (connectorName: string | undefined | null) => AppSpec | null;
42
- //# sourceMappingURL=apps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,iGAAiG;IACjG,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,uEAAuE;IACvE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA4QF,eAAO,MAAM,SAAS,EAAE,OAAO,EAAsE,CAAC;AAEtG,iFAAiF;AACjF,eAAO,MAAM,UAAU,kBAAmB,MAAM,GAAG,SAAS,GAAG,IAAI,KAAG,OAAO,GAAG,IACiB,CAAC"}