@fabriktor/client 0.0.34 → 0.0.35
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/dist/src/billable/billable.d.ts +1 -25
- package/dist/src/billable/billable.js +0 -36
- package/dist/src/calls/calls.d.ts +1 -3
- package/dist/src/calls/calls.js +0 -3
- package/dist/src/chat/chat.d.ts +6 -23
- package/dist/src/chat/chat.js +2 -34
- package/dist/src/core/crud.d.ts +0 -5
- package/dist/src/core/crud.js +0 -14
- package/dist/src/feed/feed.d.ts +1 -7
- package/dist/src/feed/feed.js +0 -9
- package/dist/src/fulfillments/fulfillments.d.ts +1 -3
- package/dist/src/fulfillments/fulfillments.js +0 -3
- package/dist/src/jobs/jobs.d.ts +1 -7
- package/dist/src/jobs/jobs.js +0 -9
- package/dist/src/marketplace/marketplace.d.ts +1 -5
- package/dist/src/marketplace/marketplace.js +0 -6
- package/dist/src/memos/memos.d.ts +1 -5
- package/dist/src/memos/memos.js +0 -6
- package/dist/src/payments/payments.d.ts +1 -17
- package/dist/src/payments/payments.js +0 -24
- package/dist/src/payrolls/payrolls.d.ts +1 -21
- package/dist/src/payrolls/payrolls.js +0 -30
- package/dist/src/preferences/preferences.d.ts +1 -19
- package/dist/src/preferences/preferences.js +0 -27
- package/dist/src/privacy/privacy.d.ts +1 -5
- package/dist/src/privacy/privacy.js +0 -6
- package/dist/src/routes/routes.d.ts +1 -11
- package/dist/src/routes/routes.js +0 -15
- package/dist/src/storage/storage.d.ts +1 -23
- package/dist/src/storage/storage.js +0 -33
- package/dist/src/timesheets/timesheets.d.ts +1 -5
- package/dist/src/timesheets/timesheets.js +0 -6
- package/package.json +1 -1
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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[]>>;
|
|
@@ -71,9 +71,6 @@ export class RoutesClient {
|
|
|
71
71
|
async deleteOneRoute(opts) {
|
|
72
72
|
return await this.routes.deleteOne(opts);
|
|
73
73
|
}
|
|
74
|
-
async deleteManyRoutes(opts) {
|
|
75
|
-
return await this.routes.deleteMany(opts);
|
|
76
|
-
}
|
|
77
74
|
async queryTags(opts) {
|
|
78
75
|
return await this.tags.query(opts);
|
|
79
76
|
}
|
|
@@ -89,9 +86,6 @@ export class RoutesClient {
|
|
|
89
86
|
async deleteOneTag(opts) {
|
|
90
87
|
return await this.tags.deleteOne(opts);
|
|
91
88
|
}
|
|
92
|
-
async deleteManyTags(opts) {
|
|
93
|
-
return await this.tags.deleteMany(opts);
|
|
94
|
-
}
|
|
95
89
|
async searchManyTags(opts) {
|
|
96
90
|
return await this.tags.searchMany(opts);
|
|
97
91
|
}
|
|
@@ -110,9 +104,6 @@ export class RoutesClient {
|
|
|
110
104
|
async deleteOneClientAvailability(opts) {
|
|
111
105
|
return await this.client_availabilities.deleteOne(opts);
|
|
112
106
|
}
|
|
113
|
-
async deleteManyClientAvailabilities(opts) {
|
|
114
|
-
return await this.client_availabilities.deleteMany(opts);
|
|
115
|
-
}
|
|
116
107
|
async queryTracking(opts) {
|
|
117
108
|
return await this.tracking.query(opts);
|
|
118
109
|
}
|
|
@@ -128,9 +119,6 @@ export class RoutesClient {
|
|
|
128
119
|
async deleteOneTracking(opts) {
|
|
129
120
|
return await this.tracking.deleteOne(opts);
|
|
130
121
|
}
|
|
131
|
-
async deleteManyTracking(opts) {
|
|
132
|
-
return await this.tracking.deleteMany(opts);
|
|
133
|
-
}
|
|
134
122
|
async queryRouteTeams(opts) {
|
|
135
123
|
return await this.route_teams.query(opts);
|
|
136
124
|
}
|
|
@@ -146,9 +134,6 @@ export class RoutesClient {
|
|
|
146
134
|
async deleteOneRouteTeam(opts) {
|
|
147
135
|
return await this.route_teams.deleteOne(opts);
|
|
148
136
|
}
|
|
149
|
-
async deleteManyRouteTeams(opts) {
|
|
150
|
-
return await this.route_teams.deleteMany(opts);
|
|
151
|
-
}
|
|
152
137
|
async searchManyRouteTeams(opts) {
|
|
153
138
|
return await this.route_teams.searchMany(opts);
|
|
154
139
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Object as StorageObject, type OperationResult, type PLStorageDownload, type RPStorageUpload } from "@fabriktor/schema";
|
|
2
2
|
import type { TokenProvider } from "../core/auth.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { DeleteOneOptionsCRUD, OperationResultOf } from "../core/crud.js";
|
|
4
4
|
import type { HTTPDoer } from "../core/http.js";
|
|
5
5
|
import { type MultipartDoer } from "../core/multipart.js";
|
|
6
6
|
export declare const storageCollections: readonly ["calls", "chat", "contacts", "jobs", "locations", "memos", "qr", "reports", "tickets", "users"];
|
|
@@ -26,47 +26,36 @@ export interface StorageOperator {
|
|
|
26
26
|
upload(col: StorageCollection, opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
27
27
|
download(col: StorageCollection, opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
28
28
|
deleteOne(col: StorageCollection, opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
29
|
-
deleteMany(col: StorageCollection, opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
30
29
|
uploadCalls(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
31
30
|
downloadCalls(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
32
31
|
deleteOneCallObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
33
|
-
deleteManyCallObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
34
32
|
uploadChat(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
35
33
|
downloadChat(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
36
34
|
deleteOneChatObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
37
|
-
deleteManyChatObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
38
35
|
uploadContacts(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
39
36
|
downloadContacts(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
40
37
|
deleteOneContactObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
41
|
-
deleteManyContactObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
42
38
|
uploadJobs(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
43
39
|
downloadJobs(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
44
40
|
deleteOneJobObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
45
|
-
deleteManyJobObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
46
41
|
uploadLocations(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
47
42
|
downloadLocations(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
48
43
|
deleteOneLocationObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
49
|
-
deleteManyLocationObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
50
44
|
uploadMemos(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
51
45
|
downloadMemos(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
52
46
|
deleteOneMemoObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
53
|
-
deleteManyMemoObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
54
47
|
uploadQR(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
55
48
|
downloadQR(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
56
49
|
deleteOneQRObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
57
|
-
deleteManyQRObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
58
50
|
uploadReports(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
59
51
|
downloadReports(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
60
52
|
deleteOneReportObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
61
|
-
deleteManyReportObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
62
53
|
uploadTickets(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
63
54
|
downloadTickets(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
64
55
|
deleteOneTicketObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
65
|
-
deleteManyTicketObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
66
56
|
uploadUsers(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
67
57
|
downloadUsers(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
68
58
|
deleteOneUserObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
69
|
-
deleteManyUserObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
70
59
|
}
|
|
71
60
|
export declare class StorageClient implements StorageOperator {
|
|
72
61
|
private objects;
|
|
@@ -78,47 +67,36 @@ export declare class StorageClient implements StorageOperator {
|
|
|
78
67
|
upload(col: StorageCollection, opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
79
68
|
download(col: StorageCollection, opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
80
69
|
deleteOne(col: StorageCollection, opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
81
|
-
deleteMany(col: StorageCollection, opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
82
70
|
uploadCalls(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
83
71
|
downloadCalls(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
84
72
|
deleteOneCallObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
85
|
-
deleteManyCallObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
86
73
|
uploadChat(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
87
74
|
downloadChat(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
88
75
|
deleteOneChatObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
89
|
-
deleteManyChatObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
90
76
|
uploadContacts(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
91
77
|
downloadContacts(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
92
78
|
deleteOneContactObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
93
|
-
deleteManyContactObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
94
79
|
uploadJobs(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
95
80
|
downloadJobs(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
96
81
|
deleteOneJobObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
97
|
-
deleteManyJobObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
98
82
|
uploadLocations(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
99
83
|
downloadLocations(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
100
84
|
deleteOneLocationObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
101
|
-
deleteManyLocationObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
102
85
|
uploadMemos(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
103
86
|
downloadMemos(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
104
87
|
deleteOneMemoObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
105
|
-
deleteManyMemoObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
106
88
|
uploadQR(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
107
89
|
downloadQR(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
108
90
|
deleteOneQRObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
109
|
-
deleteManyQRObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
110
91
|
uploadReports(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
111
92
|
downloadReports(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
112
93
|
deleteOneReportObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
113
|
-
deleteManyReportObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
114
94
|
uploadTickets(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
115
95
|
downloadTickets(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
116
96
|
deleteOneTicketObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
117
|
-
deleteManyTicketObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
118
97
|
uploadUsers(opts: UploadStorageOptions): Promise<OperationResultOf<RPStorageUpload>>;
|
|
119
98
|
downloadUsers(opts: DownloadStorageOptions): Promise<OperationResultOf<StorageObject[]>>;
|
|
120
99
|
deleteOneUserObject(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
121
|
-
deleteManyUserObjects(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
122
100
|
private object;
|
|
123
101
|
}
|
|
124
102
|
export declare function newStorageClient(opts: StorageClientOptions): StorageClient;
|