@3e/sqa-common 6.24.0-2 → 6.24.0-20

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.
Files changed (4) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +1 -1
  3. package/sqa_common.js +1484 -1468
  4. package/types.ts +25 -0
package/types.ts CHANGED
@@ -1278,3 +1278,28 @@ export type ObjectParameter = {
1278
1278
  * - sqa.common.setPeriodParameter
1279
1279
  */
1280
1280
  export type Parameter = PeriodParameter | GranularityParameter | ObjectParameter
1281
+
1282
+ export enum ViewExportFormat {
1283
+ CSV = 'text/csv',
1284
+ EXCEL = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
1285
+ }
1286
+
1287
+ export enum ViewExportLayout {
1288
+ OBJECT_X_INDICATOR = 'object_x_indicator',
1289
+ TIME_X_OBJECT_INDICATOR = 'time_x_object_indicator'
1290
+ }
1291
+
1292
+ export type SaveDataArguments = {
1293
+ to_date: ISODateString
1294
+ from_date: ISODateString
1295
+ filename: string
1296
+ 'reply-tz'?: TimezoneValue
1297
+ object_indicator_sets: {
1298
+ object: string[]
1299
+ indicator: string[]
1300
+ }[]
1301
+ granularity: Granularity
1302
+ format?: ViewExportFormat
1303
+ compression?: "zip" | "none"
1304
+ layout?: ViewExportLayout
1305
+ }