@hiver/connector-agent 4.27.0-appWidgets-beta.1 → 4.27.0-appWidgets-beta.3
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/features/app-widget/model.d.ts +11 -1
- package/features/app-widget/model.d.ts.map +1 -1
- package/index.es.js +2953 -2952
- package/index.umd.js +261 -261
- package/package.json +1 -1
|
@@ -9,7 +9,17 @@ type Row = {
|
|
|
9
9
|
fields: RawField[];
|
|
10
10
|
externalResourceId?: string;
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Reads rows without mutating the response (parseCardData sorts in place).
|
|
14
|
+
*
|
|
15
|
+
* A card that found nothing, or whose upstream call failed, still comes back with its
|
|
16
|
+
* fields (null values) plus a cardErrorMessage: "No '<card>' found for …" for a miss,
|
|
17
|
+
* "Issue with the connected <app> app … (Error code: …)" for a failure. Under an ID
|
|
18
|
+
* lookup a miss has no data at all. The app tab shows these as empty or errored cards
|
|
19
|
+
* (isCardEmpty / isCardError), never as records, so they are not records here either:
|
|
20
|
+
* counting them turned every miss or failed read into a phantom card titled with the
|
|
21
|
+
* field label.
|
|
22
|
+
*/
|
|
13
23
|
export declare const extractRows: (data: ISpecificCard | null) => Row[];
|
|
14
24
|
export declare const toNumber: (value: CardFieldValue | undefined) => number | null;
|
|
15
25
|
/** "$12.4K"; plain compact number when the row carries no ISO currency code. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAe,kBAAkB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,KAAK,EAAE,OAAO,EAAyB,MAAM,QAAQ,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAkB,cAAc,EAAmB,MAAM,SAAS,CAAC;AAElG,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC,GAAG;IAC1F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,yFAAyF;AACzF,KAAK,GAAG,GAAG;IACT,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAmBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,SAAU,aAAa,GAAG,IAAI,KAAG,GAAG,EAuB3D,CAAC;AAmBF,eAAO,MAAM,QAAQ,UAAW,cAAc,GAAG,SAAS,KAAG,MAAM,GAAG,IAIrE,CAAC;AAOF,gFAAgF;AAChF,eAAO,MAAM,WAAW,WAAY,MAAM,aAAa,MAAM,KAAG,MAS/D,CAAC;AA2RF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAS,OAAO,SAAS,iBAAiB,EAAE,KAAG,cAqB9E,CAAC"}
|