@fabriktor/client 0.0.34 → 0.0.36

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 (37) hide show
  1. package/dist/src/billable/billable.d.ts +1 -25
  2. package/dist/src/billable/billable.js +0 -36
  3. package/dist/src/calls/calls.d.ts +1 -3
  4. package/dist/src/calls/calls.js +0 -3
  5. package/dist/src/chat/chat.d.ts +6 -23
  6. package/dist/src/chat/chat.js +2 -34
  7. package/dist/src/core/crud.d.ts +3 -11
  8. package/dist/src/core/crud.js +1 -15
  9. package/dist/src/core/type.d.ts +7 -0
  10. package/dist/src/core/type.js +6 -0
  11. package/dist/src/feed/feed.d.ts +1 -7
  12. package/dist/src/feed/feed.js +0 -9
  13. package/dist/src/fulfillments/fulfillments.d.ts +1 -3
  14. package/dist/src/fulfillments/fulfillments.js +0 -3
  15. package/dist/src/index.d.ts +1 -0
  16. package/dist/src/index.js +1 -0
  17. package/dist/src/jobs/jobs.d.ts +1 -7
  18. package/dist/src/jobs/jobs.js +0 -9
  19. package/dist/src/marketplace/marketplace.d.ts +1 -5
  20. package/dist/src/marketplace/marketplace.js +0 -6
  21. package/dist/src/memos/memos.d.ts +1 -5
  22. package/dist/src/memos/memos.js +0 -6
  23. package/dist/src/payments/payments.d.ts +1 -17
  24. package/dist/src/payments/payments.js +0 -24
  25. package/dist/src/payrolls/payrolls.d.ts +1 -21
  26. package/dist/src/payrolls/payrolls.js +0 -30
  27. package/dist/src/preferences/preferences.d.ts +1 -19
  28. package/dist/src/preferences/preferences.js +0 -27
  29. package/dist/src/privacy/privacy.d.ts +1 -5
  30. package/dist/src/privacy/privacy.js +0 -6
  31. package/dist/src/routes/routes.d.ts +1 -11
  32. package/dist/src/routes/routes.js +0 -15
  33. package/dist/src/storage/storage.d.ts +1 -23
  34. package/dist/src/storage/storage.js +0 -33
  35. package/dist/src/timesheets/timesheets.d.ts +1 -5
  36. package/dist/src/timesheets/timesheets.js +0 -6
  37. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { type Adjustment, type AdjustmentAggregate, type AdjustmentFolder, type AdjustmentRecord, type EmployeePayConfig, type HourBank, type InAdjustment, type InAdjustmentAggregate, type InAdjustmentFolder, type InAdjustmentRecord, type InEmployeePayConfig, type InHourBank, type InPayConfig, type InPayable, type InPayroll, type InPayrollProgram, type OperationResult, type PayConfig, type Payable, type Payroll, type PayrollProgram, type PLPayrollsGeneratePayrollFromEntities } from "@fabriktor/schema";
2
2
  import type { TokenProvider } from "../core/auth.js";
3
- import type { DeleteManyOptionsCRUD, DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD, SearchManyOptionsCRUD, SearchResultOf } from "../core/crud.js";
3
+ import type { DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD, SearchManyOptionsCRUD, SearchResultOf } from "../core/crud.js";
4
4
  import type { HTTPDoer } from "../core/http.js";
5
5
  export type GeneratePayrollOptions = InPayroll;
6
6
  export type GeneratePayrollFromEntitiesOptions = PLPayrollsGeneratePayrollFromEntities;
@@ -16,70 +16,60 @@ export interface PayrollsOperator {
16
16
  findOnePayable(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payable>>;
17
17
  replaceOnePayable(opts: ReplaceOneOptionsCRUD<InPayable>): Promise<OperationResult>;
18
18
  deleteOnePayable(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
19
- deleteManyPayables(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
20
19
  searchManyPayables(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payable>>>;
21
20
  queryPayrolls(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payroll[]>>;
22
21
  insertOnePayroll(opts: InsertOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
23
22
  findOnePayroll(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payroll>>;
24
23
  replaceOnePayroll(opts: ReplaceOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
25
24
  deleteOnePayroll(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
26
- deleteManyPayrolls(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
27
25
  searchManyPayrolls(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payroll>>>;
28
26
  queryPayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayConfig[]>>;
29
27
  insertOnePayConfig(opts: InsertOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
30
28
  findOnePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayConfig>>;
31
29
  replaceOnePayConfig(opts: ReplaceOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
32
30
  deleteOnePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
33
- deleteManyPayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
34
31
  searchManyPayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayConfig>>>;
35
32
  queryHourBanks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<HourBank[]>>;
36
33
  insertOneHourBank(opts: InsertOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
37
34
  findOneHourBank(opts: FindOneOptionsCRUD): Promise<OperationResultOf<HourBank>>;
38
35
  replaceOneHourBank(opts: ReplaceOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
39
36
  deleteOneHourBank(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
40
- deleteManyHourBanks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
41
37
  searchManyHourBanks(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<HourBank>>>;
42
38
  queryAdjustments(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Adjustment[]>>;
43
39
  insertOneAdjustment(opts: InsertOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
44
40
  findOneAdjustment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Adjustment>>;
45
41
  replaceOneAdjustment(opts: ReplaceOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
46
42
  deleteOneAdjustment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
47
- deleteManyAdjustments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
48
43
  searchManyAdjustments(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Adjustment>>>;
49
44
  queryAdjustmentFolders(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder[]>>;
50
45
  insertOneAdjustmentFolder(opts: InsertOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
51
46
  findOneAdjustmentFolder(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder>>;
52
47
  replaceOneAdjustmentFolder(opts: ReplaceOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
53
48
  deleteOneAdjustmentFolder(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
54
- deleteManyAdjustmentFolders(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
55
49
  searchManyAdjustmentFolders(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentFolder>>>;
56
50
  queryAdjustmentRecords(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord[]>>;
57
51
  insertOneAdjustmentRecord(opts: InsertOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
58
52
  findOneAdjustmentRecord(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord>>;
59
53
  replaceOneAdjustmentRecord(opts: ReplaceOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
60
54
  deleteOneAdjustmentRecord(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
61
- deleteManyAdjustmentRecords(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
62
55
  searchManyAdjustmentRecords(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentRecord>>>;
63
56
  queryAdjustmentAggregates(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate[]>>;
64
57
  insertOneAdjustmentAggregate(opts: InsertOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
65
58
  findOneAdjustmentAggregate(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate>>;
66
59
  replaceOneAdjustmentAggregate(opts: ReplaceOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
67
60
  deleteOneAdjustmentAggregate(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
68
- deleteManyAdjustmentAggregates(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
69
61
  searchManyAdjustmentAggregates(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentAggregate>>>;
70
62
  queryEmployeePayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig[]>>;
71
63
  insertOneEmployeePayConfig(opts: InsertOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
72
64
  findOneEmployeePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig>>;
73
65
  replaceOneEmployeePayConfig(opts: ReplaceOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
74
66
  deleteOneEmployeePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
75
- deleteManyEmployeePayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
76
67
  searchManyEmployeePayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<EmployeePayConfig>>>;
77
68
  queryPayrollPrograms(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayrollProgram[]>>;
78
69
  insertOnePayrollProgram(opts: InsertOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
79
70
  findOnePayrollProgram(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayrollProgram>>;
80
71
  replaceOnePayrollProgram(opts: ReplaceOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
81
72
  deleteOnePayrollProgram(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
82
- deleteManyPayrollPrograms(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
83
73
  searchManyPayrollPrograms(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayrollProgram>>>;
84
74
  generatePayroll(opts: GeneratePayrollOptions): Promise<OperationResult>;
85
75
  generatePayrollFromPayables(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
@@ -106,70 +96,60 @@ export declare class PayrollsClient implements PayrollsOperator {
106
96
  findOnePayable(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payable>>;
107
97
  replaceOnePayable(opts: ReplaceOneOptionsCRUD<InPayable>): Promise<OperationResult>;
108
98
  deleteOnePayable(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
109
- deleteManyPayables(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
110
99
  searchManyPayables(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payable>>>;
111
100
  queryPayrolls(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payroll[]>>;
112
101
  insertOnePayroll(opts: InsertOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
113
102
  findOnePayroll(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payroll>>;
114
103
  replaceOnePayroll(opts: ReplaceOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
115
104
  deleteOnePayroll(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
116
- deleteManyPayrolls(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
117
105
  searchManyPayrolls(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payroll>>>;
118
106
  queryPayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayConfig[]>>;
119
107
  insertOnePayConfig(opts: InsertOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
120
108
  findOnePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayConfig>>;
121
109
  replaceOnePayConfig(opts: ReplaceOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
122
110
  deleteOnePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
123
- deleteManyPayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
124
111
  searchManyPayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayConfig>>>;
125
112
  queryHourBanks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<HourBank[]>>;
126
113
  insertOneHourBank(opts: InsertOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
127
114
  findOneHourBank(opts: FindOneOptionsCRUD): Promise<OperationResultOf<HourBank>>;
128
115
  replaceOneHourBank(opts: ReplaceOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
129
116
  deleteOneHourBank(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
130
- deleteManyHourBanks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
131
117
  searchManyHourBanks(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<HourBank>>>;
132
118
  queryAdjustments(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Adjustment[]>>;
133
119
  insertOneAdjustment(opts: InsertOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
134
120
  findOneAdjustment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Adjustment>>;
135
121
  replaceOneAdjustment(opts: ReplaceOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
136
122
  deleteOneAdjustment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
137
- deleteManyAdjustments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
138
123
  searchManyAdjustments(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Adjustment>>>;
139
124
  queryAdjustmentFolders(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder[]>>;
140
125
  insertOneAdjustmentFolder(opts: InsertOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
141
126
  findOneAdjustmentFolder(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder>>;
142
127
  replaceOneAdjustmentFolder(opts: ReplaceOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
143
128
  deleteOneAdjustmentFolder(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
144
- deleteManyAdjustmentFolders(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
145
129
  searchManyAdjustmentFolders(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentFolder>>>;
146
130
  queryAdjustmentRecords(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord[]>>;
147
131
  insertOneAdjustmentRecord(opts: InsertOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
148
132
  findOneAdjustmentRecord(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord>>;
149
133
  replaceOneAdjustmentRecord(opts: ReplaceOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
150
134
  deleteOneAdjustmentRecord(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
151
- deleteManyAdjustmentRecords(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
152
135
  searchManyAdjustmentRecords(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentRecord>>>;
153
136
  queryAdjustmentAggregates(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate[]>>;
154
137
  insertOneAdjustmentAggregate(opts: InsertOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
155
138
  findOneAdjustmentAggregate(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate>>;
156
139
  replaceOneAdjustmentAggregate(opts: ReplaceOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
157
140
  deleteOneAdjustmentAggregate(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
158
- deleteManyAdjustmentAggregates(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
159
141
  searchManyAdjustmentAggregates(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentAggregate>>>;
160
142
  queryEmployeePayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig[]>>;
161
143
  insertOneEmployeePayConfig(opts: InsertOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
162
144
  findOneEmployeePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig>>;
163
145
  replaceOneEmployeePayConfig(opts: ReplaceOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
164
146
  deleteOneEmployeePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
165
- deleteManyEmployeePayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
166
147
  searchManyEmployeePayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<EmployeePayConfig>>>;
167
148
  queryPayrollPrograms(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayrollProgram[]>>;
168
149
  insertOnePayrollProgram(opts: InsertOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
169
150
  findOnePayrollProgram(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayrollProgram>>;
170
151
  replaceOnePayrollProgram(opts: ReplaceOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
171
152
  deleteOnePayrollProgram(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
172
- deleteManyPayrollPrograms(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
173
153
  searchManyPayrollPrograms(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayrollProgram>>>;
174
154
  generatePayroll(opts: GeneratePayrollOptions): Promise<OperationResult>;
175
155
  generatePayrollFromPayables(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
@@ -111,9 +111,6 @@ export class PayrollsClient {
111
111
  async deleteOnePayable(opts) {
112
112
  return await this.payables.deleteOne(opts);
113
113
  }
114
- async deleteManyPayables(opts) {
115
- return await this.payables.deleteMany(opts);
116
- }
117
114
  async searchManyPayables(opts) {
118
115
  return await this.payables.searchMany(opts);
119
116
  }
@@ -132,9 +129,6 @@ export class PayrollsClient {
132
129
  async deleteOnePayroll(opts) {
133
130
  return await this.payrolls.deleteOne(opts);
134
131
  }
135
- async deleteManyPayrolls(opts) {
136
- return await this.payrolls.deleteMany(opts);
137
- }
138
132
  async searchManyPayrolls(opts) {
139
133
  return await this.payrolls.searchMany(opts);
140
134
  }
@@ -153,9 +147,6 @@ export class PayrollsClient {
153
147
  async deleteOnePayConfig(opts) {
154
148
  return await this.pay_configs.deleteOne(opts);
155
149
  }
156
- async deleteManyPayConfigs(opts) {
157
- return await this.pay_configs.deleteMany(opts);
158
- }
159
150
  async searchManyPayConfigs(opts) {
160
151
  return await this.pay_configs.searchMany(opts);
161
152
  }
@@ -174,9 +165,6 @@ export class PayrollsClient {
174
165
  async deleteOneHourBank(opts) {
175
166
  return await this.hour_banks.deleteOne(opts);
176
167
  }
177
- async deleteManyHourBanks(opts) {
178
- return await this.hour_banks.deleteMany(opts);
179
- }
180
168
  async searchManyHourBanks(opts) {
181
169
  return await this.hour_banks.searchMany(opts);
182
170
  }
@@ -195,9 +183,6 @@ export class PayrollsClient {
195
183
  async deleteOneAdjustment(opts) {
196
184
  return await this.adjustments.deleteOne(opts);
197
185
  }
198
- async deleteManyAdjustments(opts) {
199
- return await this.adjustments.deleteMany(opts);
200
- }
201
186
  async searchManyAdjustments(opts) {
202
187
  return await this.adjustments.searchMany(opts);
203
188
  }
@@ -216,9 +201,6 @@ export class PayrollsClient {
216
201
  async deleteOneAdjustmentFolder(opts) {
217
202
  return await this.adjustment_folders.deleteOne(opts);
218
203
  }
219
- async deleteManyAdjustmentFolders(opts) {
220
- return await this.adjustment_folders.deleteMany(opts);
221
- }
222
204
  async searchManyAdjustmentFolders(opts) {
223
205
  return await this.adjustment_folders.searchMany(opts);
224
206
  }
@@ -237,9 +219,6 @@ export class PayrollsClient {
237
219
  async deleteOneAdjustmentRecord(opts) {
238
220
  return await this.adjustment_records.deleteOne(opts);
239
221
  }
240
- async deleteManyAdjustmentRecords(opts) {
241
- return await this.adjustment_records.deleteMany(opts);
242
- }
243
222
  async searchManyAdjustmentRecords(opts) {
244
223
  return await this.adjustment_records.searchMany(opts);
245
224
  }
@@ -258,9 +237,6 @@ export class PayrollsClient {
258
237
  async deleteOneAdjustmentAggregate(opts) {
259
238
  return await this.adjustment_aggregates.deleteOne(opts);
260
239
  }
261
- async deleteManyAdjustmentAggregates(opts) {
262
- return await this.adjustment_aggregates.deleteMany(opts);
263
- }
264
240
  async searchManyAdjustmentAggregates(opts) {
265
241
  return await this.adjustment_aggregates.searchMany(opts);
266
242
  }
@@ -279,9 +255,6 @@ export class PayrollsClient {
279
255
  async deleteOneEmployeePayConfig(opts) {
280
256
  return await this.employee_pay_configs.deleteOne(opts);
281
257
  }
282
- async deleteManyEmployeePayConfigs(opts) {
283
- return await this.employee_pay_configs.deleteMany(opts);
284
- }
285
258
  async searchManyEmployeePayConfigs(opts) {
286
259
  return await this.employee_pay_configs.searchMany(opts);
287
260
  }
@@ -300,9 +273,6 @@ export class PayrollsClient {
300
273
  async deleteOnePayrollProgram(opts) {
301
274
  return await this.payroll_programs.deleteOne(opts);
302
275
  }
303
- async deleteManyPayrollPrograms(opts) {
304
- return await this.payroll_programs.deleteMany(opts);
305
- }
306
276
  async searchManyPayrollPrograms(opts) {
307
277
  return await this.payroll_programs.searchMany(opts);
308
278
  }
@@ -1,6 +1,6 @@
1
1
  import { type InPrefClient, type InPrefCompany, type InPrefEmail, type InPrefEmployee, type InPrefLanguage, type InPrefNotif, type InPrefPayment, type InPrefTutorial, type InPrefVisibility, type OperationResult, type PrefClient, type PrefCompany, type PrefEmail, type PrefEmployee, type PrefLanguage, type PrefNotif, type PrefPayment, type PrefTutorial, type PrefVisibility } from "@fabriktor/schema";
2
2
  import type { TokenProvider } from "../core/auth.js";
3
- import type { DeleteManyOptionsCRUD, DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD } from "../core/crud.js";
3
+ import type { DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD } from "../core/crud.js";
4
4
  import type { HTTPDoer } from "../core/http.js";
5
5
  export type PreferencesClientOptions = {
6
6
  http: HTTPDoer;
@@ -13,55 +13,46 @@ export interface PreferencesOperator {
13
13
  findOnePrefPayment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefPayment>>;
14
14
  replaceOnePrefPayment(opts: ReplaceOneOptionsCRUD<InPrefPayment>): Promise<OperationResult>;
15
15
  deleteOnePrefPayment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
16
- deleteManyPrefPayments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
17
16
  queryPrefClients(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefClient[]>>;
18
17
  insertOnePrefClient(opts: InsertOneOptionsCRUD<InPrefClient>): Promise<OperationResult>;
19
18
  findOnePrefClient(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefClient>>;
20
19
  replaceOnePrefClient(opts: ReplaceOneOptionsCRUD<InPrefClient>): Promise<OperationResult>;
21
20
  deleteOnePrefClient(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
22
- deleteManyPrefClients(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
23
21
  queryPrefEmployees(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefEmployee[]>>;
24
22
  insertOnePrefEmployee(opts: InsertOneOptionsCRUD<InPrefEmployee>): Promise<OperationResult>;
25
23
  findOnePrefEmployee(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefEmployee>>;
26
24
  replaceOnePrefEmployee(opts: ReplaceOneOptionsCRUD<InPrefEmployee>): Promise<OperationResult>;
27
25
  deleteOnePrefEmployee(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
28
- deleteManyPrefEmployees(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
29
26
  queryPrefCompanies(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefCompany[]>>;
30
27
  insertOnePrefCompany(opts: InsertOneOptionsCRUD<InPrefCompany>): Promise<OperationResult>;
31
28
  findOnePrefCompany(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefCompany>>;
32
29
  replaceOnePrefCompany(opts: ReplaceOneOptionsCRUD<InPrefCompany>): Promise<OperationResult>;
33
30
  deleteOnePrefCompany(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
34
- deleteManyPrefCompanies(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
35
31
  queryPrefVisibilities(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefVisibility[]>>;
36
32
  insertOnePrefVisibility(opts: InsertOneOptionsCRUD<InPrefVisibility>): Promise<OperationResult>;
37
33
  findOnePrefVisibility(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefVisibility>>;
38
34
  replaceOnePrefVisibility(opts: ReplaceOneOptionsCRUD<InPrefVisibility>): Promise<OperationResult>;
39
35
  deleteOnePrefVisibility(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
40
- deleteManyPrefVisibilities(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
41
36
  queryPrefLanguages(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefLanguage[]>>;
42
37
  insertOnePrefLanguage(opts: InsertOneOptionsCRUD<InPrefLanguage>): Promise<OperationResult>;
43
38
  findOnePrefLanguage(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefLanguage>>;
44
39
  replaceOnePrefLanguage(opts: ReplaceOneOptionsCRUD<InPrefLanguage>): Promise<OperationResult>;
45
40
  deleteOnePrefLanguage(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
46
- deleteManyPrefLanguages(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
47
41
  queryPrefNotif(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefNotif[]>>;
48
42
  insertOnePrefNotif(opts: InsertOneOptionsCRUD<InPrefNotif>): Promise<OperationResult>;
49
43
  findOnePrefNotif(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefNotif>>;
50
44
  replaceOnePrefNotif(opts: ReplaceOneOptionsCRUD<InPrefNotif>): Promise<OperationResult>;
51
45
  deleteOnePrefNotif(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
52
- deleteManyPrefNotif(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
53
46
  queryPrefEmails(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefEmail[]>>;
54
47
  insertOnePrefEmail(opts: InsertOneOptionsCRUD<InPrefEmail>): Promise<OperationResult>;
55
48
  findOnePrefEmail(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefEmail>>;
56
49
  replaceOnePrefEmail(opts: ReplaceOneOptionsCRUD<InPrefEmail>): Promise<OperationResult>;
57
50
  deleteOnePrefEmail(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
58
- deleteManyPrefEmails(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
59
51
  queryPrefTutorials(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefTutorial[]>>;
60
52
  insertOnePrefTutorial(opts: InsertOneOptionsCRUD<InPrefTutorial>): Promise<OperationResult>;
61
53
  findOnePrefTutorial(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefTutorial>>;
62
54
  replaceOnePrefTutorial(opts: ReplaceOneOptionsCRUD<InPrefTutorial>): Promise<OperationResult>;
63
55
  deleteOnePrefTutorial(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
64
- deleteManyPrefTutorials(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
65
56
  }
66
57
  export declare class PreferencesClient implements PreferencesOperator {
67
58
  private pref_payments;
@@ -79,54 +70,45 @@ export declare class PreferencesClient implements PreferencesOperator {
79
70
  findOnePrefPayment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefPayment>>;
80
71
  replaceOnePrefPayment(opts: ReplaceOneOptionsCRUD<InPrefPayment>): Promise<OperationResult>;
81
72
  deleteOnePrefPayment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
82
- deleteManyPrefPayments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
83
73
  queryPrefClients(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefClient[]>>;
84
74
  insertOnePrefClient(opts: InsertOneOptionsCRUD<InPrefClient>): Promise<OperationResult>;
85
75
  findOnePrefClient(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefClient>>;
86
76
  replaceOnePrefClient(opts: ReplaceOneOptionsCRUD<InPrefClient>): Promise<OperationResult>;
87
77
  deleteOnePrefClient(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
88
- deleteManyPrefClients(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
89
78
  queryPrefEmployees(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefEmployee[]>>;
90
79
  insertOnePrefEmployee(opts: InsertOneOptionsCRUD<InPrefEmployee>): Promise<OperationResult>;
91
80
  findOnePrefEmployee(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefEmployee>>;
92
81
  replaceOnePrefEmployee(opts: ReplaceOneOptionsCRUD<InPrefEmployee>): Promise<OperationResult>;
93
82
  deleteOnePrefEmployee(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
94
- deleteManyPrefEmployees(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
95
83
  queryPrefCompanies(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefCompany[]>>;
96
84
  insertOnePrefCompany(opts: InsertOneOptionsCRUD<InPrefCompany>): Promise<OperationResult>;
97
85
  findOnePrefCompany(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefCompany>>;
98
86
  replaceOnePrefCompany(opts: ReplaceOneOptionsCRUD<InPrefCompany>): Promise<OperationResult>;
99
87
  deleteOnePrefCompany(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
100
- deleteManyPrefCompanies(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
101
88
  queryPrefVisibilities(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefVisibility[]>>;
102
89
  insertOnePrefVisibility(opts: InsertOneOptionsCRUD<InPrefVisibility>): Promise<OperationResult>;
103
90
  findOnePrefVisibility(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefVisibility>>;
104
91
  replaceOnePrefVisibility(opts: ReplaceOneOptionsCRUD<InPrefVisibility>): Promise<OperationResult>;
105
92
  deleteOnePrefVisibility(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
106
- deleteManyPrefVisibilities(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
107
93
  queryPrefLanguages(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefLanguage[]>>;
108
94
  insertOnePrefLanguage(opts: InsertOneOptionsCRUD<InPrefLanguage>): Promise<OperationResult>;
109
95
  findOnePrefLanguage(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefLanguage>>;
110
96
  replaceOnePrefLanguage(opts: ReplaceOneOptionsCRUD<InPrefLanguage>): Promise<OperationResult>;
111
97
  deleteOnePrefLanguage(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
112
- deleteManyPrefLanguages(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
113
98
  queryPrefNotif(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefNotif[]>>;
114
99
  insertOnePrefNotif(opts: InsertOneOptionsCRUD<InPrefNotif>): Promise<OperationResult>;
115
100
  findOnePrefNotif(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefNotif>>;
116
101
  replaceOnePrefNotif(opts: ReplaceOneOptionsCRUD<InPrefNotif>): Promise<OperationResult>;
117
102
  deleteOnePrefNotif(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
118
- deleteManyPrefNotif(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
119
103
  queryPrefEmails(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefEmail[]>>;
120
104
  insertOnePrefEmail(opts: InsertOneOptionsCRUD<InPrefEmail>): Promise<OperationResult>;
121
105
  findOnePrefEmail(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefEmail>>;
122
106
  replaceOnePrefEmail(opts: ReplaceOneOptionsCRUD<InPrefEmail>): Promise<OperationResult>;
123
107
  deleteOnePrefEmail(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
124
- deleteManyPrefEmails(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
125
108
  queryPrefTutorials(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PrefTutorial[]>>;
126
109
  insertOnePrefTutorial(opts: InsertOneOptionsCRUD<InPrefTutorial>): Promise<OperationResult>;
127
110
  findOnePrefTutorial(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PrefTutorial>>;
128
111
  replaceOnePrefTutorial(opts: ReplaceOneOptionsCRUD<InPrefTutorial>): Promise<OperationResult>;
129
112
  deleteOnePrefTutorial(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
130
- deleteManyPrefTutorials(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
131
113
  }
132
114
  export declare function newPreferencesClient(opts: PreferencesClientOptions): PreferencesClient;
@@ -95,9 +95,6 @@ export class PreferencesClient {
95
95
  async deleteOnePrefPayment(opts) {
96
96
  return await this.pref_payments.deleteOne(opts);
97
97
  }
98
- async deleteManyPrefPayments(opts) {
99
- return await this.pref_payments.deleteMany(opts);
100
- }
101
98
  async queryPrefClients(opts) {
102
99
  return await this.pref_clients.query(opts);
103
100
  }
@@ -113,9 +110,6 @@ export class PreferencesClient {
113
110
  async deleteOnePrefClient(opts) {
114
111
  return await this.pref_clients.deleteOne(opts);
115
112
  }
116
- async deleteManyPrefClients(opts) {
117
- return await this.pref_clients.deleteMany(opts);
118
- }
119
113
  async queryPrefEmployees(opts) {
120
114
  return await this.pref_employees.query(opts);
121
115
  }
@@ -131,9 +125,6 @@ export class PreferencesClient {
131
125
  async deleteOnePrefEmployee(opts) {
132
126
  return await this.pref_employees.deleteOne(opts);
133
127
  }
134
- async deleteManyPrefEmployees(opts) {
135
- return await this.pref_employees.deleteMany(opts);
136
- }
137
128
  async queryPrefCompanies(opts) {
138
129
  return await this.pref_companies.query(opts);
139
130
  }
@@ -149,9 +140,6 @@ export class PreferencesClient {
149
140
  async deleteOnePrefCompany(opts) {
150
141
  return await this.pref_companies.deleteOne(opts);
151
142
  }
152
- async deleteManyPrefCompanies(opts) {
153
- return await this.pref_companies.deleteMany(opts);
154
- }
155
143
  async queryPrefVisibilities(opts) {
156
144
  return await this.pref_visibilities.query(opts);
157
145
  }
@@ -167,9 +155,6 @@ export class PreferencesClient {
167
155
  async deleteOnePrefVisibility(opts) {
168
156
  return await this.pref_visibilities.deleteOne(opts);
169
157
  }
170
- async deleteManyPrefVisibilities(opts) {
171
- return await this.pref_visibilities.deleteMany(opts);
172
- }
173
158
  async queryPrefLanguages(opts) {
174
159
  return await this.pref_languages.query(opts);
175
160
  }
@@ -185,9 +170,6 @@ export class PreferencesClient {
185
170
  async deleteOnePrefLanguage(opts) {
186
171
  return await this.pref_languages.deleteOne(opts);
187
172
  }
188
- async deleteManyPrefLanguages(opts) {
189
- return await this.pref_languages.deleteMany(opts);
190
- }
191
173
  async queryPrefNotif(opts) {
192
174
  return await this.pref_notif.query(opts);
193
175
  }
@@ -203,9 +185,6 @@ export class PreferencesClient {
203
185
  async deleteOnePrefNotif(opts) {
204
186
  return await this.pref_notif.deleteOne(opts);
205
187
  }
206
- async deleteManyPrefNotif(opts) {
207
- return await this.pref_notif.deleteMany(opts);
208
- }
209
188
  async queryPrefEmails(opts) {
210
189
  return await this.pref_emails.query(opts);
211
190
  }
@@ -221,9 +200,6 @@ export class PreferencesClient {
221
200
  async deleteOnePrefEmail(opts) {
222
201
  return await this.pref_emails.deleteOne(opts);
223
202
  }
224
- async deleteManyPrefEmails(opts) {
225
- return await this.pref_emails.deleteMany(opts);
226
- }
227
203
  async queryPrefTutorials(opts) {
228
204
  return await this.pref_tutorials.query(opts);
229
205
  }
@@ -239,9 +215,6 @@ export class PreferencesClient {
239
215
  async deleteOnePrefTutorial(opts) {
240
216
  return await this.pref_tutorials.deleteOne(opts);
241
217
  }
242
- async deleteManyPrefTutorials(opts) {
243
- return await this.pref_tutorials.deleteMany(opts);
244
- }
245
218
  }
246
219
  export function newPreferencesClient(opts) {
247
220
  return new PreferencesClient(opts);
@@ -1,6 +1,6 @@
1
1
  import { type AccountLock, type DeletionRequest, type InAccountLock, type InDeletionRequest, type OperationResult } from "@fabriktor/schema";
2
2
  import type { TokenProvider } from "../core/auth.js";
3
- import type { DeleteManyOptionsCRUD, DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD } from "../core/crud.js";
3
+ import type { DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD } from "../core/crud.js";
4
4
  import type { HTTPDoer } from "../core/http.js";
5
5
  export type PrivacyExport = Record<string, unknown>;
6
6
  export type PrivacyClientOptions = {
@@ -14,13 +14,11 @@ export interface PrivacyOperator {
14
14
  findOneDeletionRequest(opts: FindOneOptionsCRUD): Promise<OperationResultOf<DeletionRequest>>;
15
15
  replaceOneDeletionRequest(opts: ReplaceOneOptionsCRUD<InDeletionRequest>): Promise<OperationResult>;
16
16
  deleteOneDeletionRequest(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
17
- deleteManyDeletionRequests(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
18
17
  queryAccountLocks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AccountLock[]>>;
19
18
  insertOneAccountLock(opts: InsertOneOptionsCRUD<InAccountLock>): Promise<OperationResult>;
20
19
  findOneAccountLock(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AccountLock>>;
21
20
  replaceOneAccountLock(opts: ReplaceOneOptionsCRUD<InAccountLock>): Promise<OperationResult>;
22
21
  deleteOneAccountLock(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
23
- deleteManyAccountLocks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
24
22
  exportData(): Promise<PrivacyExport>;
25
23
  }
26
24
  export declare class PrivacyClient implements PrivacyOperator {
@@ -35,13 +33,11 @@ export declare class PrivacyClient implements PrivacyOperator {
35
33
  findOneDeletionRequest(opts: FindOneOptionsCRUD): Promise<OperationResultOf<DeletionRequest>>;
36
34
  replaceOneDeletionRequest(opts: ReplaceOneOptionsCRUD<InDeletionRequest>): Promise<OperationResult>;
37
35
  deleteOneDeletionRequest(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
38
- deleteManyDeletionRequests(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
39
36
  queryAccountLocks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AccountLock[]>>;
40
37
  insertOneAccountLock(opts: InsertOneOptionsCRUD<InAccountLock>): Promise<OperationResult>;
41
38
  findOneAccountLock(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AccountLock>>;
42
39
  replaceOneAccountLock(opts: ReplaceOneOptionsCRUD<InAccountLock>): Promise<OperationResult>;
43
40
  deleteOneAccountLock(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
44
- deleteManyAccountLocks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
45
41
  exportData(): Promise<PrivacyExport>;
46
42
  }
47
43
  export declare function newPrivacyClient(opts: PrivacyClientOptions): PrivacyClient;
@@ -47,9 +47,6 @@ export class PrivacyClient {
47
47
  async deleteOneDeletionRequest(opts) {
48
48
  return await this.deletion_requests.deleteOne(opts);
49
49
  }
50
- async deleteManyDeletionRequests(opts) {
51
- return await this.deletion_requests.deleteMany(opts);
52
- }
53
50
  async queryAccountLocks(opts) {
54
51
  return await this.account_locks.query(opts);
55
52
  }
@@ -65,9 +62,6 @@ export class PrivacyClient {
65
62
  async deleteOneAccountLock(opts) {
66
63
  return await this.account_locks.deleteOne(opts);
67
64
  }
68
- async deleteManyAccountLocks(opts) {
69
- return await this.account_locks.deleteMany(opts);
70
- }
71
65
  async exportData() {
72
66
  const token = await requiredToken(this.get_token);
73
67
  return await this.http.do({
@@ -1,6 +1,6 @@
1
1
  import { type ClientAvailability, type InClientAvailability, type InRoute, type InRouteTeam, type InTag, type InTracking, type OperationResult, type PLRoutesAvailability, type PLRoutesDesignation, type Route, type RouteTeam, type RPRoutesAvailability, type Tag, type Tracking } from "@fabriktor/schema";
2
2
  import type { TokenProvider } from "../core/auth.js";
3
- import type { DeleteManyOptionsCRUD, DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD, SearchManyOptionsCRUD, SearchResultOf } from "../core/crud.js";
3
+ import type { DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD, SearchManyOptionsCRUD, SearchResultOf } from "../core/crud.js";
4
4
  import type { HTTPDoer } from "../core/http.js";
5
5
  export type GetAvailabilityOptions = PLRoutesAvailability;
6
6
  export type GetDesignationOptions = PLRoutesDesignation;
@@ -15,32 +15,27 @@ export interface RoutesOperator {
15
15
  findOneRoute(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Route>>;
16
16
  replaceOneRoute(opts: ReplaceOneOptionsCRUD<InRoute>): Promise<OperationResult>;
17
17
  deleteOneRoute(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
18
- deleteManyRoutes(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
19
18
  queryTags(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Tag[]>>;
20
19
  insertOneTag(opts: InsertOneOptionsCRUD<InTag>): Promise<OperationResult>;
21
20
  findOneTag(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Tag>>;
22
21
  replaceOneTag(opts: ReplaceOneOptionsCRUD<InTag>): Promise<OperationResult>;
23
22
  deleteOneTag(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
24
- deleteManyTags(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
25
23
  searchManyTags(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Tag>>>;
26
24
  queryClientAvailabilities(opts?: QueryOptionsCRUD): Promise<OperationResultOf<ClientAvailability[]>>;
27
25
  insertOneClientAvailability(opts: InsertOneOptionsCRUD<InClientAvailability>): Promise<OperationResult>;
28
26
  findOneClientAvailability(opts: FindOneOptionsCRUD): Promise<OperationResultOf<ClientAvailability>>;
29
27
  replaceOneClientAvailability(opts: ReplaceOneOptionsCRUD<InClientAvailability>): Promise<OperationResult>;
30
28
  deleteOneClientAvailability(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
31
- deleteManyClientAvailabilities(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
32
29
  queryTracking(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Tracking[]>>;
33
30
  insertOneTracking(opts: InsertOneOptionsCRUD<InTracking>): Promise<OperationResult>;
34
31
  findOneTracking(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Tracking>>;
35
32
  replaceOneTracking(opts: ReplaceOneOptionsCRUD<InTracking>): Promise<OperationResult>;
36
33
  deleteOneTracking(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
37
- deleteManyTracking(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
38
34
  queryRouteTeams(opts?: QueryOptionsCRUD): Promise<OperationResultOf<RouteTeam[]>>;
39
35
  insertOneRouteTeam(opts: InsertOneOptionsCRUD<InRouteTeam>): Promise<OperationResult>;
40
36
  findOneRouteTeam(opts: FindOneOptionsCRUD): Promise<OperationResultOf<RouteTeam>>;
41
37
  replaceOneRouteTeam(opts: ReplaceOneOptionsCRUD<InRouteTeam>): Promise<OperationResult>;
42
38
  deleteOneRouteTeam(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
43
- deleteManyRouteTeams(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
44
39
  searchManyRouteTeams(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<RouteTeam>>>;
45
40
  getAvailability(opts: GetAvailabilityOptions): Promise<OperationResultOf<RPRoutesAvailability>>;
46
41
  getDesignation(opts: GetDesignationOptions): Promise<OperationResultOf<Route[]>>;
@@ -60,32 +55,27 @@ export declare class RoutesClient implements RoutesOperator {
60
55
  findOneRoute(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Route>>;
61
56
  replaceOneRoute(opts: ReplaceOneOptionsCRUD<InRoute>): Promise<OperationResult>;
62
57
  deleteOneRoute(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
63
- deleteManyRoutes(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
64
58
  queryTags(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Tag[]>>;
65
59
  insertOneTag(opts: InsertOneOptionsCRUD<InTag>): Promise<OperationResult>;
66
60
  findOneTag(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Tag>>;
67
61
  replaceOneTag(opts: ReplaceOneOptionsCRUD<InTag>): Promise<OperationResult>;
68
62
  deleteOneTag(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
69
- deleteManyTags(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
70
63
  searchManyTags(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Tag>>>;
71
64
  queryClientAvailabilities(opts?: QueryOptionsCRUD): Promise<OperationResultOf<ClientAvailability[]>>;
72
65
  insertOneClientAvailability(opts: InsertOneOptionsCRUD<InClientAvailability>): Promise<OperationResult>;
73
66
  findOneClientAvailability(opts: FindOneOptionsCRUD): Promise<OperationResultOf<ClientAvailability>>;
74
67
  replaceOneClientAvailability(opts: ReplaceOneOptionsCRUD<InClientAvailability>): Promise<OperationResult>;
75
68
  deleteOneClientAvailability(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
76
- deleteManyClientAvailabilities(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
77
69
  queryTracking(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Tracking[]>>;
78
70
  insertOneTracking(opts: InsertOneOptionsCRUD<InTracking>): Promise<OperationResult>;
79
71
  findOneTracking(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Tracking>>;
80
72
  replaceOneTracking(opts: ReplaceOneOptionsCRUD<InTracking>): Promise<OperationResult>;
81
73
  deleteOneTracking(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
82
- deleteManyTracking(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
83
74
  queryRouteTeams(opts?: QueryOptionsCRUD): Promise<OperationResultOf<RouteTeam[]>>;
84
75
  insertOneRouteTeam(opts: InsertOneOptionsCRUD<InRouteTeam>): Promise<OperationResult>;
85
76
  findOneRouteTeam(opts: FindOneOptionsCRUD): Promise<OperationResultOf<RouteTeam>>;
86
77
  replaceOneRouteTeam(opts: ReplaceOneOptionsCRUD<InRouteTeam>): Promise<OperationResult>;
87
78
  deleteOneRouteTeam(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
88
- deleteManyRouteTeams(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
89
79
  searchManyRouteTeams(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<RouteTeam>>>;
90
80
  getAvailability(opts: GetAvailabilityOptions): Promise<OperationResultOf<RPRoutesAvailability>>;
91
81
  getDesignation(opts: GetDesignationOptions): Promise<OperationResultOf<Route[]>>;