@connectreport/connectreport-js 2.81.0-beta.2 → 2.81.0-beta.4

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @connectreport/connectreport-js@2.80.5
1
+ ## @connectreport/connectreport-js@2.81.1
2
2
 
3
3
  - View the [Library Docs](https://connectreport.com/docs/classes/_index_.connectreport.html)
4
4
  - View the [ConnectReport HTTP API Reference](https://connectreport.com/api-reference.html)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.5
7
+ * The version of the OpenAPI document: 2.81.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +21,156 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
 
24
+ /**
25
+ * Configuration for data-driven report cycles where each row in a data source creates a child report task
26
+ * @export
27
+ * @interface CycleConfig
28
+ */
29
+ export interface CycleConfig {
30
+ /**
31
+ * Type of cycle configuration - \'filters\' for Dynamic Filters, \'recipients\' for Dynamic Recipients
32
+ * @type {string}
33
+ * @memberof CycleConfig
34
+ */
35
+ configType: CycleConfigConfigTypeEnum;
36
+ /**
37
+ * Data connector name (case-insensitive)
38
+ * @type {string}
39
+ * @memberof CycleConfig
40
+ */
41
+ connector: string;
42
+ /**
43
+ * Data source document ID
44
+ * @type {string}
45
+ * @memberof CycleConfig
46
+ */
47
+ docId: string;
48
+ /**
49
+ * Columns to query - defines what data to fetch (each row creates a child task)
50
+ * @type {Array<FieldInfo>}
51
+ * @memberof CycleConfig
52
+ */
53
+ tableColumns: Array<FieldInfo>;
54
+ /**
55
+ * Maximum number of rows to fetch from the data source
56
+ * @type {number}
57
+ * @memberof CycleConfig
58
+ */
59
+ tableHeight?: number;
60
+ /**
61
+ *
62
+ * @type {RowExclusion}
63
+ * @memberof CycleConfig
64
+ */
65
+ excludedValues?: RowExclusion;
66
+ /**
67
+ * Map source fields to report filter fields
68
+ * @type {Array<FilterMapping>}
69
+ * @memberof CycleConfig
70
+ */
71
+ filterMappings?: Array<FilterMapping>;
72
+ /**
73
+ *
74
+ * @type {FieldInfo}
75
+ * @memberof CycleConfig
76
+ */
77
+ recipientsFieldInfo?: FieldInfo;
78
+ /**
79
+ *
80
+ * @type {FieldInfo}
81
+ * @memberof CycleConfig
82
+ */
83
+ emailSubjectFieldInfo?: FieldInfo;
84
+ /**
85
+ *
86
+ * @type {FieldInfo}
87
+ * @memberof CycleConfig
88
+ */
89
+ emailBodyFieldInfo?: FieldInfo;
90
+ /**
91
+ *
92
+ * @type {FieldInfo}
93
+ * @memberof CycleConfig
94
+ */
95
+ titleFieldInfo?: FieldInfo;
96
+ /**
97
+ *
98
+ * @type {FieldInfo}
99
+ * @memberof CycleConfig
100
+ */
101
+ oneDriveParentFolderIdFieldInfo?: FieldInfo;
102
+ /**
103
+ *
104
+ * @type {FieldInfo}
105
+ * @memberof CycleConfig
106
+ */
107
+ tagsFieldInfo?: FieldInfo;
108
+ /**
109
+ *
110
+ * @type {FieldInfo}
111
+ * @memberof CycleConfig
112
+ */
113
+ groupsToShareWithFieldInfo?: FieldInfo;
114
+ /**
115
+ *
116
+ * @type {FieldInfo}
117
+ * @memberof CycleConfig
118
+ */
119
+ emailFieldInfo?: FieldInfo;
120
+ /**
121
+ * Automatically tag child reports with first column value
122
+ * @type {boolean}
123
+ * @memberof CycleConfig
124
+ */
125
+ autotag?: boolean;
126
+ }
127
+
128
+ /**
129
+ * @export
130
+ * @enum {string}
131
+ */
132
+ export enum CycleConfigConfigTypeEnum {
133
+ Filters = 'filters',
134
+ Recipients = 'recipients'
135
+ }
136
+
137
+ /**
138
+ * Field metadata from data source
139
+ * @export
140
+ * @interface FieldInfo
141
+ */
142
+ export interface FieldInfo {
143
+ /**
144
+ * Display name of the field
145
+ * @type {string}
146
+ * @memberof FieldInfo
147
+ */
148
+ fieldName?: string;
149
+ /**
150
+ * Definition/expression of the field
151
+ * @type {string}
152
+ * @memberof FieldInfo
153
+ */
154
+ fieldDef: string;
155
+ /**
156
+ * Unique identifier of the field
157
+ * @type {string}
158
+ * @memberof FieldInfo
159
+ */
160
+ id?: string;
161
+ /**
162
+ * Table identifier
163
+ * @type {string}
164
+ * @memberof FieldInfo
165
+ */
166
+ table?: string;
167
+ /**
168
+ * Display name of the table
169
+ * @type {string}
170
+ * @memberof FieldInfo
171
+ */
172
+ tableName?: string;
173
+ }
24
174
  /**
25
175
  *
26
176
  * @export
@@ -171,6 +321,12 @@ export interface FilterCycle {
171
321
  * @memberof FilterCycle
172
322
  */
173
323
  onedriveParentFolderId?: string;
324
+ /**
325
+ *
326
+ * @type {CycleConfig}
327
+ * @memberof FilterCycle
328
+ */
329
+ cycle?: CycleConfig;
174
330
  /**
175
331
  *
176
332
  * @type {FilterCycleAllOfFieldInfo}
@@ -338,6 +494,25 @@ export interface FilterCycleAllOfFieldValues {
338
494
  */
339
495
  number?: number;
340
496
  }
497
+ /**
498
+ * Maps a source table field to a report filter field
499
+ * @export
500
+ * @interface FilterMapping
501
+ */
502
+ export interface FilterMapping {
503
+ /**
504
+ *
505
+ * @type {FieldInfo}
506
+ * @memberof FilterMapping
507
+ */
508
+ from: FieldInfo;
509
+ /**
510
+ *
511
+ * @type {FieldInfo}
512
+ * @memberof FilterMapping
513
+ */
514
+ to: FieldInfo;
515
+ }
341
516
  /**
342
517
  *
343
518
  * @export
@@ -753,6 +928,12 @@ export interface ReportTask {
753
928
  * @memberof ReportTask
754
929
  */
755
930
  onedriveParentFolderId?: string;
931
+ /**
932
+ *
933
+ * @type {CycleConfig}
934
+ * @memberof ReportTask
935
+ */
936
+ cycle?: CycleConfig;
756
937
  }
757
938
 
758
939
  /**
@@ -797,12 +978,24 @@ export interface ReportTaskCustomSelection {
797
978
  * @memberof ReportTaskCustomSelection
798
979
  */
799
980
  fieldDef?: string;
981
+ /**
982
+ * The name of the table containing this field.
983
+ * @type {string}
984
+ * @memberof ReportTaskCustomSelection
985
+ */
986
+ tableName?: string;
800
987
  /**
801
988
  *
802
989
  * @type {Array<ReportTaskFieldValues>}
803
990
  * @memberof ReportTaskCustomSelection
804
991
  */
805
992
  fieldValues?: Array<ReportTaskFieldValues>;
993
+ /**
994
+ * Optional mappings to target specific report fields with optional scoping
995
+ * @type {Array<ReportTaskMappings>}
996
+ * @memberof ReportTaskCustomSelection
997
+ */
998
+ mappings?: Array<ReportTaskMappings>;
806
999
  }
807
1000
  /**
808
1001
  *
@@ -880,6 +1073,25 @@ export interface ReportTaskGroupsToShareWith {
880
1073
  */
881
1074
  groupId?: string;
882
1075
  }
1076
+ /**
1077
+ *
1078
+ * @export
1079
+ * @interface ReportTaskMappings
1080
+ */
1081
+ export interface ReportTaskMappings {
1082
+ /**
1083
+ *
1084
+ * @type {ReportTaskTo}
1085
+ * @memberof ReportTaskMappings
1086
+ */
1087
+ to?: ReportTaskTo;
1088
+ /**
1089
+ *
1090
+ * @type {ReportTaskScope}
1091
+ * @memberof ReportTaskMappings
1092
+ */
1093
+ scope?: ReportTaskScope;
1094
+ }
883
1095
  /**
884
1096
  *
885
1097
  * @export
@@ -1030,6 +1242,12 @@ export interface ReportTaskRequest {
1030
1242
  * @memberof ReportTaskRequest
1031
1243
  */
1032
1244
  onedriveParentFolderId?: string;
1245
+ /**
1246
+ *
1247
+ * @type {CycleConfig}
1248
+ * @memberof ReportTaskRequest
1249
+ */
1250
+ cycle?: CycleConfig;
1033
1251
  /**
1034
1252
  * Emails to send the report to. This is only allowed if \"Allow reports to be shared with any email\" is to true.
1035
1253
  * @type {Array<string>}
@@ -1268,6 +1486,12 @@ export interface ReportTaskResponse {
1268
1486
  * @memberof ReportTaskResponse
1269
1487
  */
1270
1488
  onedriveParentFolderId?: string;
1489
+ /**
1490
+ *
1491
+ * @type {CycleConfig}
1492
+ * @memberof ReportTaskResponse
1493
+ */
1494
+ cycle?: CycleConfig;
1271
1495
  /**
1272
1496
  * Users to share the published report with. This field will be updated entirely if provided
1273
1497
  * @type {Array<ReportTaskResponseAllOfUsersToShareWith>}
@@ -1483,6 +1707,38 @@ export interface ReportTaskResponseAllOfUsersToShareWith {
1483
1707
  */
1484
1708
  email?: string;
1485
1709
  }
1710
+ /**
1711
+ *
1712
+ * @export
1713
+ * @interface ReportTaskScope
1714
+ */
1715
+ export interface ReportTaskScope {
1716
+ /**
1717
+ *
1718
+ * @type {Array<ReportTaskScopeObjects>}
1719
+ * @memberof ReportTaskScope
1720
+ */
1721
+ objects?: Array<ReportTaskScopeObjects>;
1722
+ }
1723
+ /**
1724
+ *
1725
+ * @export
1726
+ * @interface ReportTaskScopeObjects
1727
+ */
1728
+ export interface ReportTaskScopeObjects {
1729
+ /**
1730
+ *
1731
+ * @type {string}
1732
+ * @memberof ReportTaskScopeObjects
1733
+ */
1734
+ objectKey?: string;
1735
+ /**
1736
+ *
1737
+ * @type {boolean}
1738
+ * @memberof ReportTaskScopeObjects
1739
+ */
1740
+ included?: boolean;
1741
+ }
1486
1742
  /**
1487
1743
  *
1488
1744
  * @export
@@ -1502,6 +1758,31 @@ export interface ReportTaskTags {
1502
1758
  */
1503
1759
  name?: string;
1504
1760
  }
1761
+ /**
1762
+ *
1763
+ * @export
1764
+ * @interface ReportTaskTo
1765
+ */
1766
+ export interface ReportTaskTo {
1767
+ /**
1768
+ *
1769
+ * @type {string}
1770
+ * @memberof ReportTaskTo
1771
+ */
1772
+ fieldName?: string;
1773
+ /**
1774
+ *
1775
+ * @type {string}
1776
+ * @memberof ReportTaskTo
1777
+ */
1778
+ fieldDef?: string;
1779
+ /**
1780
+ *
1781
+ * @type {string}
1782
+ * @memberof ReportTaskTo
1783
+ */
1784
+ tableName?: string;
1785
+ }
1505
1786
  /**
1506
1787
  *
1507
1788
  * @export
@@ -1521,6 +1802,44 @@ export interface ReportTaskVariables {
1521
1802
  */
1522
1803
  value?: string;
1523
1804
  }
1805
+ /**
1806
+ * Filter out rows where field matches specified values
1807
+ * @export
1808
+ * @interface RowExclusion
1809
+ */
1810
+ export interface RowExclusion {
1811
+ /**
1812
+ *
1813
+ * @type {FieldInfo}
1814
+ * @memberof RowExclusion
1815
+ */
1816
+ exclusionFieldInfo: FieldInfo;
1817
+ /**
1818
+ *
1819
+ * @type {Array<RowExclusionFieldValues>}
1820
+ * @memberof RowExclusion
1821
+ */
1822
+ fieldValues: Array<RowExclusionFieldValues>;
1823
+ }
1824
+ /**
1825
+ *
1826
+ * @export
1827
+ * @interface RowExclusionFieldValues
1828
+ */
1829
+ export interface RowExclusionFieldValues {
1830
+ /**
1831
+ *
1832
+ * @type {string}
1833
+ * @memberof RowExclusionFieldValues
1834
+ */
1835
+ text: string;
1836
+ /**
1837
+ *
1838
+ * @type {number}
1839
+ * @memberof RowExclusionFieldValues
1840
+ */
1841
+ number?: number;
1842
+ }
1524
1843
  /**
1525
1844
  *
1526
1845
  * @export
@@ -1630,10 +1949,10 @@ export interface Visualization {
1630
1949
  filterSets?: Array<ReportTaskFilterSets>;
1631
1950
  /**
1632
1951
  * Custom filters to apply. This field will be updated entirely if provided
1633
- * @type {Array<ReportTaskCustomSelection>}
1952
+ * @type {Array<VisualizationSelections>}
1634
1953
  * @memberof Visualization
1635
1954
  */
1636
- selections?: Array<ReportTaskCustomSelection>;
1955
+ selections?: Array<VisualizationSelections>;
1637
1956
  /**
1638
1957
  *
1639
1958
  * @type {Array<ReportTaskVariables>}
@@ -1641,6 +1960,31 @@ export interface Visualization {
1641
1960
  */
1642
1961
  variables?: Array<ReportTaskVariables>;
1643
1962
  }
1963
+ /**
1964
+ *
1965
+ * @export
1966
+ * @interface VisualizationSelections
1967
+ */
1968
+ export interface VisualizationSelections {
1969
+ /**
1970
+ * The label of the field. Used for display in certain scenarios.
1971
+ * @type {string}
1972
+ * @memberof VisualizationSelections
1973
+ */
1974
+ fieldName?: string;
1975
+ /**
1976
+ * The definition of the field.
1977
+ * @type {string}
1978
+ * @memberof VisualizationSelections
1979
+ */
1980
+ fieldDef?: string;
1981
+ /**
1982
+ *
1983
+ * @type {Array<ReportTaskFieldValues>}
1984
+ * @memberof VisualizationSelections
1985
+ */
1986
+ fieldValues?: Array<ReportTaskFieldValues>;
1987
+ }
1644
1988
 
1645
1989
  /**
1646
1990
  * BaseTemplatesApi - axios parameter creator
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.5
7
+ * The version of the OpenAPI document: 2.81.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.5
7
+ * The version of the OpenAPI document: 2.81.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.5
7
+ * The version of the OpenAPI document: 2.81.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.cjs CHANGED
@@ -78,6 +78,7 @@ __export(index_exports, {
78
78
  BaseTemplatesApiFactory: () => BaseTemplatesApiFactory,
79
79
  BaseTemplatesApiFp: () => BaseTemplatesApiFp,
80
80
  ConnectReport: () => ConnectReport,
81
+ CycleConfigConfigTypeEnum: () => CycleConfigConfigTypeEnum,
81
82
  DocumentsApi: () => DocumentsApi,
82
83
  DocumentsApiAxiosParamCreator: () => DocumentsApiAxiosParamCreator,
83
84
  DocumentsApiFactory: () => DocumentsApiFactory,
@@ -198,6 +199,11 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
198
199
  };
199
200
 
200
201
  // api.ts
202
+ var CycleConfigConfigTypeEnum = /* @__PURE__ */ ((CycleConfigConfigTypeEnum2) => {
203
+ CycleConfigConfigTypeEnum2["Filters"] = "filters";
204
+ CycleConfigConfigTypeEnum2["Recipients"] = "recipients";
205
+ return CycleConfigConfigTypeEnum2;
206
+ })(CycleConfigConfigTypeEnum || {});
201
207
  var FilterCycleFrequencyEnum = /* @__PURE__ */ ((FilterCycleFrequencyEnum2) => {
202
208
  FilterCycleFrequencyEnum2["Monthly"] = "Monthly";
203
209
  FilterCycleFrequencyEnum2["OnceNow"] = "Once - now";
@@ -3127,6 +3133,7 @@ globalThis.ConnectReport = ConnectReport;
3127
3133
  BaseTemplatesApiFactory,
3128
3134
  BaseTemplatesApiFp,
3129
3135
  ConnectReport,
3136
+ CycleConfigConfigTypeEnum,
3130
3137
  DocumentsApi,
3131
3138
  DocumentsApiAxiosParamCreator,
3132
3139
  DocumentsApiFactory,