@rlvt/datasources-query-openapi-client 1.0.353 → 1.0.355

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/build/api.d.ts CHANGED
@@ -1,230 +1,219 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
- import type { WorkerFetcherFetchOpts, IngesterFetcherFetchOpts, TrackingFetcherFetchOpts, ProxyFetcherFetchOpts, CarrefourStoresWithDriveSlotsFetcherFetchOpts, BestWesternHotelsFetcherFetchOpts, FdjBetsFetcherFetchOpts, SarenzaSizesFetcherFetchOpts, RenaultPricesFetcherFetchOpts, DecathlonProductFallbackFetcherFetchOpts, GenericUnwindRowsFetcherFetchOpts, WorkflowEventsFetcherFetchOpts, ExpiredProductLifetimeFetcherFetchOpts, PerUserFetcherFetchOpts, GenericProxyLockFetcherFetchOpts, InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, WorkerFetcherCountOpts, IngesterFetcherCountOpts, TrackingFetcherCountOpts, ProxyFetcherCountOpts, CarrefourStoresWithDriveSlotsFetcherCountOpts, BestWesternHotelsFetcherCountOpts, FdjBetsFetcherCountOpts, SarenzaSizesFetcherCountOpts, RenaultPricesFetcherCountOpts, DecathlonProductFallbackFetcherCountOpts, GenericUnwindRowsFetcherCountOpts, WorkflowEventsFetcherCountOpts, ExpiredProductLifetimeFetcherCountOpts, PerUserFetcherCountOpts, GenericProxyLockFetcherCountOpts, InternalResponse, WorkerFetcherFetchOpts_Without_DatasourceId, DatasourceLocation, DatasourceGeneric, DatasourceProduct, DatasourceCRM, DatasourcePush, IngesterFetcherFetchOpts_Without_DatasourceId, TrackingFetcherFetchOpts_Without_DatasourceId, ProxyFetcherFetchOpts_Without_DatasourceId, CarrefourStoresWithDriveSlotsFetcherFetchOpts_Without_DatasourceId, BestWesternHotelsFetcherFetchOpts_Without_DatasourceId, FdjBetsFetcherFetchOpts_Without_DatasourceId, SarenzaSizesFetcherFetchOpts_Without_DatasourceId, RenaultPricesFetcherFetchOpts_Without_DatasourceId, DecathlonProductFallbackFetcherFetchOpts_Without_DatasourceId, GenericUnwindRowsFetcherFetchOpts_Without_DatasourceId, WorkflowEventsFetcherFetchOpts_Without_DatasourceId, ExpiredProductLifetimeFetcherFetchOpts_Without_DatasourceId, PerUserFetcherFetchOpts_Without_DatasourceId, GenericProxyLockFetcherFetchOpts_Without_DatasourceId, WorkerFetcherQueryOpts, IngesterFetcherQueryOpts, TrackingFetcherQueryOpts, ProxyFetcherQueryOpts, CarrefourStoresWithDriveSlotsFetcherQueryOpts, BestWesternHotelsFetcherQueryOpts, FdjBetsFetcherQueryOpts, SarenzaSizesFetcherQueryOpts, RenaultPricesFetcherQueryOpts, DecathlonProductFallbackFetcherQueryOpts, GenericUnwindRowsFetcherQueryOpts, WorkflowEventsFetcherQueryOpts, ExpiredProductLifetimeFetcherQueryOpts, PerUserFetcherQueryOpts, GenericProxyLockFetcherQueryOpts, InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number, InternalResponse_Array_string } from "./definitions";
2
+ import type { ProxyFetcherQueryOpts, InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number, InternalResponse_Array_string, PerUserFetcherFetchOpts, ProxyFetcherFetchOpts, WorkerFetcherFetchOpts, IngesterFetcherFetchOpts, InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, InternalResponse, PerUserFetcherFetchOpts_Without_DatasourceId, DatasourceLocation, DatasourceGeneric, DatasourceProduct, DatasourceCRM, DatasourcePush, GenericProxyLockFetcherFetchOpts_Without_DatasourceId, ProxyFetcherFetchOpts_Without_DatasourceId, WorkerFetcherFetchOpts_Without_DatasourceId, IngesterFetcherFetchOpts_Without_DatasourceId, TrackingFetcherFetchOpts_Without_DatasourceId, FdjBetsFetcherFetchOpts_Without_DatasourceId, RenaultPricesFetcherFetchOpts_Without_DatasourceId, DecathlonProductFallbackFetcherFetchOpts_Without_DatasourceId, GenericUnwindRowsFetcherFetchOpts_Without_DatasourceId, WorkflowEventsFetcherFetchOpts_Without_DatasourceId, ExpiredProductLifetimeFetcherFetchOpts_Without_DatasourceId, GenericProxyAggregationFetcherFetchOpts_Without_DatasourceId } from "./definitions";
3
3
  export * from "./definitions";
4
4
  export default class {
5
5
  axios: AxiosInstance;
6
6
  constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
7
+ private query;
8
+ private queryValues;
7
9
  private fetch;
8
10
  private count;
9
11
  private findAndFetch;
10
- private query;
11
- private queryValues;
12
12
  get Data(): {
13
+ query: (params: {
14
+ page?: number | undefined;
15
+ perPage?: number | undefined;
16
+ 'x-rlvt-no-cache'?: boolean | undefined;
17
+ }, data: import("./definitions").WorkerFetcherOpts | import("./definitions").IngesterFetcherOpts | ProxyFetcherQueryOpts | import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId | import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId_Sort_Filters | PerUserFetcherFetchOpts | ProxyFetcherFetchOpts, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
18
+ paginationCount: number;
19
+ paginationPage: number;
20
+ paginationLimit: number;
21
+ } & {
22
+ status: "success";
23
+ } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number, any, {}>>;
24
+ queryValues: (params: {
25
+ 'x-rlvt-no-cache'?: boolean | undefined;
26
+ }, data: {
27
+ datasourceId: string;
28
+ field: string;
29
+ query?: string | undefined;
30
+ limit?: number | undefined;
31
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
32
+ status: "success";
33
+ } & InternalResponse_Array_string, any, {}>>;
13
34
  fetch: (params: {
14
35
  'x-rlvt-no-cache'?: boolean | undefined;
15
- }, data: WorkerFetcherFetchOpts | IngesterFetcherFetchOpts | TrackingFetcherFetchOpts | ProxyFetcherFetchOpts | CarrefourStoresWithDriveSlotsFetcherFetchOpts | BestWesternHotelsFetcherFetchOpts | FdjBetsFetcherFetchOpts | SarenzaSizesFetcherFetchOpts | RenaultPricesFetcherFetchOpts | DecathlonProductFallbackFetcherFetchOpts | GenericUnwindRowsFetcherFetchOpts | WorkflowEventsFetcherFetchOpts | ExpiredProductLifetimeFetcherFetchOpts | PerUserFetcherFetchOpts | GenericProxyLockFetcherFetchOpts, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
36
+ }, data: import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId | import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId_Sort_Filters | PerUserFetcherFetchOpts | ProxyFetcherFetchOpts | WorkerFetcherFetchOpts | IngesterFetcherFetchOpts | import("./definitions").TrackingFetcherOpts, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
16
37
  status: "success";
17
- } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, any>>;
38
+ } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, any, {}>>;
18
39
  count: (params: {
19
40
  'x-rlvt-no-cache'?: boolean | undefined;
20
- }, data: WorkerFetcherCountOpts | IngesterFetcherCountOpts | TrackingFetcherCountOpts | ProxyFetcherCountOpts | CarrefourStoresWithDriveSlotsFetcherCountOpts | BestWesternHotelsFetcherCountOpts | FdjBetsFetcherCountOpts | SarenzaSizesFetcherCountOpts | RenaultPricesFetcherCountOpts | DecathlonProductFallbackFetcherCountOpts | GenericUnwindRowsFetcherCountOpts | WorkflowEventsFetcherCountOpts | ExpiredProductLifetimeFetcherCountOpts | PerUserFetcherCountOpts | GenericProxyLockFetcherCountOpts, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
41
+ }, data: import("./definitions").ProxyFetcherOpts | import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId | import("./definitions").WorkerFetcherFetchOpts_With_Query_DatasourceId_Sort_Filters | PerUserFetcherFetchOpts | ProxyFetcherFetchOpts | import("./definitions").WorkerFetcherOpts_Without_Sort | import("./definitions").IngesterFetcherOpts_Without_Sort, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
21
42
  status: "success";
22
- } & InternalResponse, any>>;
43
+ } & InternalResponse, any, {}>>;
23
44
  findAndFetch: (params: {
24
45
  'x-rlvt-no-cache'?: boolean | undefined;
25
- }, data: (WorkerFetcherFetchOpts_Without_DatasourceId & {
26
- type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
27
- name: "analytics";
28
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
29
- } | {
30
- name: "analytics";
31
- subtype: "purchases";
32
- options: {
33
- autoExclusions: boolean;
34
- };
35
- };
36
- companyId: string | null;
37
- }) | (IngesterFetcherFetchOpts_Without_DatasourceId & {
46
+ }, data: (PerUserFetcherFetchOpts_Without_DatasourceId & {
38
47
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
39
48
  name: "analytics";
40
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
49
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
41
50
  } | {
42
51
  name: "analytics";
43
52
  subtype: "purchases";
44
53
  options: {
45
- autoExclusions: boolean;
54
+ autoExclusions?: boolean | undefined;
55
+ noStats?: boolean | undefined;
46
56
  };
47
57
  };
48
58
  companyId: string | null;
49
- }) | (TrackingFetcherFetchOpts_Without_DatasourceId & {
59
+ }) | (GenericProxyLockFetcherFetchOpts_Without_DatasourceId & {
50
60
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
51
61
  name: "analytics";
52
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
62
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
53
63
  } | {
54
64
  name: "analytics";
55
65
  subtype: "purchases";
56
66
  options: {
57
- autoExclusions: boolean;
67
+ autoExclusions?: boolean | undefined;
68
+ noStats?: boolean | undefined;
58
69
  };
59
70
  };
60
71
  companyId: string | null;
61
72
  }) | (ProxyFetcherFetchOpts_Without_DatasourceId & {
62
73
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
63
74
  name: "analytics";
64
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
75
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
65
76
  } | {
66
77
  name: "analytics";
67
78
  subtype: "purchases";
68
79
  options: {
69
- autoExclusions: boolean;
80
+ autoExclusions?: boolean | undefined;
81
+ noStats?: boolean | undefined;
70
82
  };
71
83
  };
72
84
  companyId: string | null;
73
- }) | (CarrefourStoresWithDriveSlotsFetcherFetchOpts_Without_DatasourceId & {
85
+ }) | (WorkerFetcherFetchOpts_Without_DatasourceId & {
74
86
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
75
87
  name: "analytics";
76
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
88
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
77
89
  } | {
78
90
  name: "analytics";
79
91
  subtype: "purchases";
80
92
  options: {
81
- autoExclusions: boolean;
93
+ autoExclusions?: boolean | undefined;
94
+ noStats?: boolean | undefined;
82
95
  };
83
96
  };
84
97
  companyId: string | null;
85
- }) | (BestWesternHotelsFetcherFetchOpts_Without_DatasourceId & {
98
+ }) | (IngesterFetcherFetchOpts_Without_DatasourceId & {
86
99
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
87
100
  name: "analytics";
88
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
101
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
89
102
  } | {
90
103
  name: "analytics";
91
104
  subtype: "purchases";
92
105
  options: {
93
- autoExclusions: boolean;
106
+ autoExclusions?: boolean | undefined;
107
+ noStats?: boolean | undefined;
94
108
  };
95
109
  };
96
110
  companyId: string | null;
97
- }) | (FdjBetsFetcherFetchOpts_Without_DatasourceId & {
111
+ }) | (TrackingFetcherFetchOpts_Without_DatasourceId & {
98
112
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
99
113
  name: "analytics";
100
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
114
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
101
115
  } | {
102
116
  name: "analytics";
103
117
  subtype: "purchases";
104
118
  options: {
105
- autoExclusions: boolean;
119
+ autoExclusions?: boolean | undefined;
120
+ noStats?: boolean | undefined;
106
121
  };
107
122
  };
108
123
  companyId: string | null;
109
- }) | (SarenzaSizesFetcherFetchOpts_Without_DatasourceId & {
124
+ }) | (FdjBetsFetcherFetchOpts_Without_DatasourceId & {
110
125
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
111
126
  name: "analytics";
112
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
127
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
113
128
  } | {
114
129
  name: "analytics";
115
130
  subtype: "purchases";
116
131
  options: {
117
- autoExclusions: boolean;
132
+ autoExclusions?: boolean | undefined;
133
+ noStats?: boolean | undefined;
118
134
  };
119
135
  };
120
136
  companyId: string | null;
121
137
  }) | (RenaultPricesFetcherFetchOpts_Without_DatasourceId & {
122
138
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
123
139
  name: "analytics";
124
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
140
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
125
141
  } | {
126
142
  name: "analytics";
127
143
  subtype: "purchases";
128
144
  options: {
129
- autoExclusions: boolean;
145
+ autoExclusions?: boolean | undefined;
146
+ noStats?: boolean | undefined;
130
147
  };
131
148
  };
132
149
  companyId: string | null;
133
150
  }) | (DecathlonProductFallbackFetcherFetchOpts_Without_DatasourceId & {
134
151
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
135
152
  name: "analytics";
136
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
153
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
137
154
  } | {
138
155
  name: "analytics";
139
156
  subtype: "purchases";
140
157
  options: {
141
- autoExclusions: boolean;
158
+ autoExclusions?: boolean | undefined;
159
+ noStats?: boolean | undefined;
142
160
  };
143
161
  };
144
162
  companyId: string | null;
145
163
  }) | (GenericUnwindRowsFetcherFetchOpts_Without_DatasourceId & {
146
164
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
147
165
  name: "analytics";
148
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
166
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
149
167
  } | {
150
168
  name: "analytics";
151
169
  subtype: "purchases";
152
170
  options: {
153
- autoExclusions: boolean;
171
+ autoExclusions?: boolean | undefined;
172
+ noStats?: boolean | undefined;
154
173
  };
155
174
  };
156
175
  companyId: string | null;
157
176
  }) | (WorkflowEventsFetcherFetchOpts_Without_DatasourceId & {
158
177
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
159
178
  name: "analytics";
160
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
179
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
161
180
  } | {
162
181
  name: "analytics";
163
182
  subtype: "purchases";
164
183
  options: {
165
- autoExclusions: boolean;
184
+ autoExclusions?: boolean | undefined;
185
+ noStats?: boolean | undefined;
166
186
  };
167
187
  };
168
188
  companyId: string | null;
169
189
  }) | (ExpiredProductLifetimeFetcherFetchOpts_Without_DatasourceId & {
170
190
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
171
191
  name: "analytics";
172
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
192
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
173
193
  } | {
174
194
  name: "analytics";
175
195
  subtype: "purchases";
176
196
  options: {
177
- autoExclusions: boolean;
197
+ autoExclusions?: boolean | undefined;
198
+ noStats?: boolean | undefined;
178
199
  };
179
200
  };
180
201
  companyId: string | null;
181
- }) | (PerUserFetcherFetchOpts_Without_DatasourceId & {
202
+ }) | (GenericProxyAggregationFetcherFetchOpts_Without_DatasourceId & {
182
203
  type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
183
204
  name: "analytics";
184
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
205
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
185
206
  } | {
186
207
  name: "analytics";
187
208
  subtype: "purchases";
188
209
  options: {
189
- autoExclusions: boolean;
190
- };
191
- };
192
- companyId: string | null;
193
- }) | (GenericProxyLockFetcherFetchOpts_Without_DatasourceId & {
194
- type: DatasourceLocation | DatasourceGeneric | DatasourceProduct | DatasourceCRM | DatasourcePush | {
195
- name: "analytics";
196
- subtype: "reelevant" | "google_tag_manager" | "shopify" | "workflow_events" | "user" | "mutable";
197
- } | {
198
- name: "analytics";
199
- subtype: "purchases";
200
- options: {
201
- autoExclusions: boolean;
210
+ autoExclusions?: boolean | undefined;
211
+ noStats?: boolean | undefined;
202
212
  };
203
213
  };
204
214
  companyId: string | null;
205
215
  }), options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
206
216
  status: "success";
207
- } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, any>>;
208
- query: (params: {
209
- page?: number | undefined;
210
- perPage?: number | undefined;
211
- 'x-rlvt-no-cache'?: boolean | undefined;
212
- }, data: WorkerFetcherQueryOpts | IngesterFetcherQueryOpts | TrackingFetcherQueryOpts | ProxyFetcherQueryOpts | CarrefourStoresWithDriveSlotsFetcherQueryOpts | BestWesternHotelsFetcherQueryOpts | FdjBetsFetcherQueryOpts | SarenzaSizesFetcherQueryOpts | RenaultPricesFetcherQueryOpts | DecathlonProductFallbackFetcherQueryOpts | GenericUnwindRowsFetcherQueryOpts | WorkflowEventsFetcherQueryOpts | ExpiredProductLifetimeFetcherQueryOpts | PerUserFetcherQueryOpts | GenericProxyLockFetcherQueryOpts, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
213
- paginationCount: number;
214
- paginationPage: number;
215
- paginationLimit: number;
216
- } & {
217
- status: "success";
218
- } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number, any>>;
219
- queryValues: (params: {
220
- 'x-rlvt-no-cache'?: boolean | undefined;
221
- }, data: {
222
- datasourceId: string;
223
- field: string;
224
- query?: string | undefined;
225
- limit?: number | undefined;
226
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
227
- status: "success";
228
- } & InternalResponse_Array_string, any>>;
217
+ } & InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number, any, {}>>;
229
218
  };
230
219
  }
package/build/api.js CHANGED
@@ -27,39 +27,39 @@ class default_1 {
27
27
  ? configOrInstance
28
28
  : axios_1.default.create(configOrInstance);
29
29
  }
30
- fetch(params, data, options) {
31
- return this.axios.post("/fetch", data, Object.assign({}, {
30
+ query(params, data, options) {
31
+ return this.axios.post("/query", data, Object.assign({}, {
32
32
  headers: pick(params, "x-rlvt-no-cache"),
33
+ params: pick(params, "page", "perPage"),
33
34
  }, options));
34
35
  }
35
- count(params, data, options) {
36
- return this.axios.post("/count", data, Object.assign({}, {
36
+ queryValues(params, data, options) {
37
+ return this.axios.post("/query-values", data, Object.assign({}, {
37
38
  headers: pick(params, "x-rlvt-no-cache"),
38
39
  }, options));
39
40
  }
40
- findAndFetch(params, data, options) {
41
- return this.axios.post("/find-and-fetch", data, Object.assign({}, {
41
+ fetch(params, data, options) {
42
+ return this.axios.post("/fetch", data, Object.assign({}, {
42
43
  headers: pick(params, "x-rlvt-no-cache"),
43
44
  }, options));
44
45
  }
45
- query(params, data, options) {
46
- return this.axios.post("/query", data, Object.assign({}, {
46
+ count(params, data, options) {
47
+ return this.axios.post("/count", data, Object.assign({}, {
47
48
  headers: pick(params, "x-rlvt-no-cache"),
48
- params: pick(params, "page", "perPage"),
49
49
  }, options));
50
50
  }
51
- queryValues(params, data, options) {
52
- return this.axios.post("/query-values", data, Object.assign({}, {
51
+ findAndFetch(params, data, options) {
52
+ return this.axios.post("/find-and-fetch", data, Object.assign({}, {
53
53
  headers: pick(params, "x-rlvt-no-cache"),
54
54
  }, options));
55
55
  }
56
56
  get Data() {
57
57
  return {
58
+ query: this.query.bind(this),
59
+ queryValues: this.queryValues.bind(this),
58
60
  fetch: this.fetch.bind(this),
59
61
  count: this.count.bind(this),
60
- findAndFetch: this.findAndFetch.bind(this),
61
- query: this.query.bind(this),
62
- queryValues: this.queryValues.bind(this)
62
+ findAndFetch: this.findAndFetch.bind(this)
63
63
  };
64
64
  }
65
65
  }
@@ -72,4 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