@fabriktor/client 0.0.28 → 0.0.31
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 +213 -0
- package/dist/src/billable/billable.js +441 -0
- package/dist/src/calls/calls.d.ts +34 -0
- package/dist/src/calls/calls.js +65 -0
- package/dist/src/chat/chat.d.ts +97 -0
- package/dist/src/chat/chat.js +224 -0
- package/dist/src/contacts/contacts.d.ts +37 -0
- package/dist/src/contacts/contacts.js +94 -0
- package/dist/src/core/col.d.ts +7 -1
- package/dist/src/core/col.js +29 -14
- package/dist/src/core/crud.d.ts +1 -1
- package/dist/src/core/crud.js +1 -1
- package/dist/src/core/http.d.ts +3 -4
- package/dist/src/core/http.js +3 -3
- package/dist/src/core/idempotency.js +1 -1
- package/dist/src/core/multipart.d.ts +25 -0
- package/dist/src/core/multipart.js +93 -0
- package/dist/src/feed/feed.d.ts +65 -0
- package/dist/src/feed/feed.js +130 -0
- package/dist/src/fulfillments/fulfillments.d.ts +36 -0
- package/dist/src/fulfillments/fulfillments.js +68 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +14 -0
- package/dist/src/jobs/jobs.d.ts +69 -0
- package/dist/src/jobs/jobs.js +143 -0
- package/dist/src/marketplace/marketplace.d.ts +49 -0
- package/dist/src/marketplace/marketplace.js +94 -0
- package/dist/src/payments/payments.d.ts +154 -0
- package/dist/src/payments/payments.js +328 -0
- package/dist/src/payrolls/payrolls.d.ts +179 -0
- package/dist/src/payrolls/payrolls.js +380 -0
- package/dist/src/processes/processes.d.ts +3 -3
- package/dist/src/routes/routes.d.ts +93 -0
- package/dist/src/routes/routes.js +185 -0
- package/dist/src/storage/storage.d.ts +124 -0
- package/dist/src/storage/storage.js +242 -0
- package/dist/src/timesheets/timesheets.d.ts +49 -0
- package/dist/src/timesheets/timesheets.js +105 -0
- package/dist/src/users/tmp_phones.d.ts +1 -1
- package/dist/src/users/tmp_usernames.d.ts +5 -4
- package/dist/src/users/users.d.ts +13 -12
- package/dist/src/users/users.js +4 -1
- package/package.json +3 -2
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// Copyright (C) Fabriktor, Inc. 2025-present.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
4
|
+
// not use this file except in compliance with the License. You may obtain
|
|
5
|
+
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
import { ColPaymentsCreditLedger, ColPaymentsPayments, ColPaymentsPmtAccounts, ColPaymentsPmtBankAccounts, ColPaymentsPmtCards, ColPaymentsPmtCustomers, ColPaymentsPmtPublicSessions, ColPaymentsPmtRefunds, HTTPMethodPost, PathPaymentsBalance, PathPaymentsFromPublicSession, PathPaymentsOpen, PathPaymentsPurchase, PathPaymentsTotal, SvcPayments, } from "@fabriktor/schema";
|
|
7
|
+
import { requiredToken } from "../core/auth.js";
|
|
8
|
+
import { newCRUDClient } from "../core/crud.js";
|
|
9
|
+
import { buildPath } from "../core/path.js";
|
|
10
|
+
export class PaymentsClient {
|
|
11
|
+
payments;
|
|
12
|
+
pmt_accounts;
|
|
13
|
+
pmt_bank_accounts;
|
|
14
|
+
pmt_cards;
|
|
15
|
+
pmt_refunds;
|
|
16
|
+
pmt_customers;
|
|
17
|
+
pmt_public_sessions;
|
|
18
|
+
credit_ledger;
|
|
19
|
+
http;
|
|
20
|
+
base_url;
|
|
21
|
+
get_token;
|
|
22
|
+
constructor(opts) {
|
|
23
|
+
this.payments = newCRUDClient({
|
|
24
|
+
http: opts.http,
|
|
25
|
+
base_url: opts.base_url,
|
|
26
|
+
svc: SvcPayments,
|
|
27
|
+
col: ColPaymentsPayments,
|
|
28
|
+
get_token: opts.get_token,
|
|
29
|
+
});
|
|
30
|
+
this.pmt_accounts = newCRUDClient({
|
|
31
|
+
http: opts.http,
|
|
32
|
+
base_url: opts.base_url,
|
|
33
|
+
svc: SvcPayments,
|
|
34
|
+
col: ColPaymentsPmtAccounts,
|
|
35
|
+
get_token: opts.get_token,
|
|
36
|
+
});
|
|
37
|
+
this.pmt_bank_accounts = newCRUDClient({
|
|
38
|
+
http: opts.http,
|
|
39
|
+
base_url: opts.base_url,
|
|
40
|
+
svc: SvcPayments,
|
|
41
|
+
col: ColPaymentsPmtBankAccounts,
|
|
42
|
+
get_token: opts.get_token,
|
|
43
|
+
});
|
|
44
|
+
this.pmt_cards = newCRUDClient({
|
|
45
|
+
http: opts.http,
|
|
46
|
+
base_url: opts.base_url,
|
|
47
|
+
svc: SvcPayments,
|
|
48
|
+
col: ColPaymentsPmtCards,
|
|
49
|
+
get_token: opts.get_token,
|
|
50
|
+
});
|
|
51
|
+
this.pmt_refunds = newCRUDClient({
|
|
52
|
+
http: opts.http,
|
|
53
|
+
base_url: opts.base_url,
|
|
54
|
+
svc: SvcPayments,
|
|
55
|
+
col: ColPaymentsPmtRefunds,
|
|
56
|
+
get_token: opts.get_token,
|
|
57
|
+
});
|
|
58
|
+
this.pmt_customers = newCRUDClient({
|
|
59
|
+
http: opts.http,
|
|
60
|
+
base_url: opts.base_url,
|
|
61
|
+
svc: SvcPayments,
|
|
62
|
+
col: ColPaymentsPmtCustomers,
|
|
63
|
+
get_token: opts.get_token,
|
|
64
|
+
});
|
|
65
|
+
this.pmt_public_sessions = newCRUDClient({
|
|
66
|
+
http: opts.http,
|
|
67
|
+
base_url: opts.base_url,
|
|
68
|
+
svc: SvcPayments,
|
|
69
|
+
col: ColPaymentsPmtPublicSessions,
|
|
70
|
+
get_token: opts.get_token,
|
|
71
|
+
});
|
|
72
|
+
this.credit_ledger = newCRUDClient({
|
|
73
|
+
http: opts.http,
|
|
74
|
+
base_url: opts.base_url,
|
|
75
|
+
svc: SvcPayments,
|
|
76
|
+
col: ColPaymentsCreditLedger,
|
|
77
|
+
get_token: opts.get_token,
|
|
78
|
+
});
|
|
79
|
+
this.http = opts.http;
|
|
80
|
+
this.base_url = opts.base_url;
|
|
81
|
+
this.get_token = opts.get_token;
|
|
82
|
+
}
|
|
83
|
+
async queryPayments(opts) {
|
|
84
|
+
return await this.payments.query(opts);
|
|
85
|
+
}
|
|
86
|
+
async insertOnePayment(opts) {
|
|
87
|
+
return await this.payments.insertOne(opts);
|
|
88
|
+
}
|
|
89
|
+
async findOnePayment(opts) {
|
|
90
|
+
return await this.payments.findOne(opts);
|
|
91
|
+
}
|
|
92
|
+
async replaceOnePayment(opts) {
|
|
93
|
+
return await this.payments.replaceOne(opts);
|
|
94
|
+
}
|
|
95
|
+
async deleteOnePayment(opts) {
|
|
96
|
+
return await this.payments.deleteOne(opts);
|
|
97
|
+
}
|
|
98
|
+
async deleteManyPayments(opts) {
|
|
99
|
+
return await this.payments.deleteMany(opts);
|
|
100
|
+
}
|
|
101
|
+
async searchManyPayments(opts) {
|
|
102
|
+
return await this.payments.searchMany(opts);
|
|
103
|
+
}
|
|
104
|
+
async queryPmtAccounts(opts) {
|
|
105
|
+
return await this.pmt_accounts.query(opts);
|
|
106
|
+
}
|
|
107
|
+
async insertOnePmtAccount(opts) {
|
|
108
|
+
return await this.pmt_accounts.insertOne(opts);
|
|
109
|
+
}
|
|
110
|
+
async findOnePmtAccount(opts) {
|
|
111
|
+
return await this.pmt_accounts.findOne(opts);
|
|
112
|
+
}
|
|
113
|
+
async replaceOnePmtAccount(opts) {
|
|
114
|
+
return await this.pmt_accounts.replaceOne(opts);
|
|
115
|
+
}
|
|
116
|
+
async deleteOnePmtAccount(opts) {
|
|
117
|
+
return await this.pmt_accounts.deleteOne(opts);
|
|
118
|
+
}
|
|
119
|
+
async deleteManyPmtAccounts(opts) {
|
|
120
|
+
return await this.pmt_accounts.deleteMany(opts);
|
|
121
|
+
}
|
|
122
|
+
async searchManyPmtAccounts(opts) {
|
|
123
|
+
return await this.pmt_accounts.searchMany(opts);
|
|
124
|
+
}
|
|
125
|
+
async queryPmtBankAccounts(opts) {
|
|
126
|
+
return await this.pmt_bank_accounts.query(opts);
|
|
127
|
+
}
|
|
128
|
+
async insertOnePmtBankAccount(opts) {
|
|
129
|
+
return await this.pmt_bank_accounts.insertOne(opts);
|
|
130
|
+
}
|
|
131
|
+
async findOnePmtBankAccount(opts) {
|
|
132
|
+
return await this.pmt_bank_accounts.findOne(opts);
|
|
133
|
+
}
|
|
134
|
+
async replaceOnePmtBankAccount(opts) {
|
|
135
|
+
return await this.pmt_bank_accounts.replaceOne(opts);
|
|
136
|
+
}
|
|
137
|
+
async deleteOnePmtBankAccount(opts) {
|
|
138
|
+
return await this.pmt_bank_accounts.deleteOne(opts);
|
|
139
|
+
}
|
|
140
|
+
async deleteManyPmtBankAccounts(opts) {
|
|
141
|
+
return await this.pmt_bank_accounts.deleteMany(opts);
|
|
142
|
+
}
|
|
143
|
+
async searchManyPmtBankAccounts(opts) {
|
|
144
|
+
return await this.pmt_bank_accounts.searchMany(opts);
|
|
145
|
+
}
|
|
146
|
+
async queryPmtCards(opts) {
|
|
147
|
+
return await this.pmt_cards.query(opts);
|
|
148
|
+
}
|
|
149
|
+
async insertOnePmtCard(opts) {
|
|
150
|
+
return await this.pmt_cards.insertOne(opts);
|
|
151
|
+
}
|
|
152
|
+
async findOnePmtCard(opts) {
|
|
153
|
+
return await this.pmt_cards.findOne(opts);
|
|
154
|
+
}
|
|
155
|
+
async replaceOnePmtCard(opts) {
|
|
156
|
+
return await this.pmt_cards.replaceOne(opts);
|
|
157
|
+
}
|
|
158
|
+
async deleteOnePmtCard(opts) {
|
|
159
|
+
return await this.pmt_cards.deleteOne(opts);
|
|
160
|
+
}
|
|
161
|
+
async deleteManyPmtCards(opts) {
|
|
162
|
+
return await this.pmt_cards.deleteMany(opts);
|
|
163
|
+
}
|
|
164
|
+
async searchManyPmtCards(opts) {
|
|
165
|
+
return await this.pmt_cards.searchMany(opts);
|
|
166
|
+
}
|
|
167
|
+
async queryPmtRefunds(opts) {
|
|
168
|
+
return await this.pmt_refunds.query(opts);
|
|
169
|
+
}
|
|
170
|
+
async insertOnePmtRefund(opts) {
|
|
171
|
+
return await this.pmt_refunds.insertOne(opts);
|
|
172
|
+
}
|
|
173
|
+
async findOnePmtRefund(opts) {
|
|
174
|
+
return await this.pmt_refunds.findOne(opts);
|
|
175
|
+
}
|
|
176
|
+
async replaceOnePmtRefund(opts) {
|
|
177
|
+
return await this.pmt_refunds.replaceOne(opts);
|
|
178
|
+
}
|
|
179
|
+
async deleteOnePmtRefund(opts) {
|
|
180
|
+
return await this.pmt_refunds.deleteOne(opts);
|
|
181
|
+
}
|
|
182
|
+
async deleteManyPmtRefunds(opts) {
|
|
183
|
+
return await this.pmt_refunds.deleteMany(opts);
|
|
184
|
+
}
|
|
185
|
+
async searchManyPmtRefunds(opts) {
|
|
186
|
+
return await this.pmt_refunds.searchMany(opts);
|
|
187
|
+
}
|
|
188
|
+
async queryPmtCustomers(opts) {
|
|
189
|
+
return await this.pmt_customers.query(opts);
|
|
190
|
+
}
|
|
191
|
+
async insertOnePmtCustomer(opts) {
|
|
192
|
+
return await this.pmt_customers.insertOne(opts);
|
|
193
|
+
}
|
|
194
|
+
async findOnePmtCustomer(opts) {
|
|
195
|
+
return await this.pmt_customers.findOne(opts);
|
|
196
|
+
}
|
|
197
|
+
async replaceOnePmtCustomer(opts) {
|
|
198
|
+
return await this.pmt_customers.replaceOne(opts);
|
|
199
|
+
}
|
|
200
|
+
async deleteOnePmtCustomer(opts) {
|
|
201
|
+
return await this.pmt_customers.deleteOne(opts);
|
|
202
|
+
}
|
|
203
|
+
async deleteManyPmtCustomers(opts) {
|
|
204
|
+
return await this.pmt_customers.deleteMany(opts);
|
|
205
|
+
}
|
|
206
|
+
async searchManyPmtCustomers(opts) {
|
|
207
|
+
return await this.pmt_customers.searchMany(opts);
|
|
208
|
+
}
|
|
209
|
+
async queryPmtPublicSessions(opts) {
|
|
210
|
+
return await this.pmt_public_sessions.query(opts);
|
|
211
|
+
}
|
|
212
|
+
async insertOnePmtPublicSession(opts) {
|
|
213
|
+
return await this.pmt_public_sessions.insertOne(opts);
|
|
214
|
+
}
|
|
215
|
+
async findOnePmtPublicSession(opts) {
|
|
216
|
+
return await this.pmt_public_sessions.findOne(opts);
|
|
217
|
+
}
|
|
218
|
+
async replaceOnePmtPublicSession(opts) {
|
|
219
|
+
return await this.pmt_public_sessions.replaceOne(opts);
|
|
220
|
+
}
|
|
221
|
+
async deleteOnePmtPublicSession(opts) {
|
|
222
|
+
return await this.pmt_public_sessions.deleteOne(opts);
|
|
223
|
+
}
|
|
224
|
+
async deleteManyPmtPublicSessions(opts) {
|
|
225
|
+
return await this.pmt_public_sessions.deleteMany(opts);
|
|
226
|
+
}
|
|
227
|
+
async searchManyPmtPublicSessions(opts) {
|
|
228
|
+
return await this.pmt_public_sessions.searchMany(opts);
|
|
229
|
+
}
|
|
230
|
+
async queryCreditLedger(opts) {
|
|
231
|
+
return await this.credit_ledger.query(opts);
|
|
232
|
+
}
|
|
233
|
+
async insertOneCreditLedgerEntry(opts) {
|
|
234
|
+
return await this.credit_ledger.insertOne(opts);
|
|
235
|
+
}
|
|
236
|
+
async findOneCreditLedgerEntry(opts) {
|
|
237
|
+
return await this.credit_ledger.findOne(opts);
|
|
238
|
+
}
|
|
239
|
+
async replaceOneCreditLedgerEntry(opts) {
|
|
240
|
+
return await this.credit_ledger.replaceOne(opts);
|
|
241
|
+
}
|
|
242
|
+
async deleteOneCreditLedgerEntry(opts) {
|
|
243
|
+
return await this.credit_ledger.deleteOne(opts);
|
|
244
|
+
}
|
|
245
|
+
async deleteManyCreditLedger(opts) {
|
|
246
|
+
return await this.credit_ledger.deleteMany(opts);
|
|
247
|
+
}
|
|
248
|
+
async searchManyCreditLedger(opts) {
|
|
249
|
+
return await this.credit_ledger.searchMany(opts);
|
|
250
|
+
}
|
|
251
|
+
async balance(opts) {
|
|
252
|
+
const token = await requiredToken(this.get_token);
|
|
253
|
+
return await this.http.do({
|
|
254
|
+
base_url: this.base_url,
|
|
255
|
+
path: pmtAccountPath(PathPaymentsBalance),
|
|
256
|
+
method: HTTPMethodPost,
|
|
257
|
+
token,
|
|
258
|
+
body: opts,
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
async openPmtPublicSession(opts) {
|
|
262
|
+
return await this.http.do({
|
|
263
|
+
base_url: this.base_url,
|
|
264
|
+
path: pmtPublicSessionPath(PathPaymentsOpen),
|
|
265
|
+
method: HTTPMethodPost,
|
|
266
|
+
body: opts,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
async paymentFromPublicSession(opts) {
|
|
270
|
+
return await this.http.do({
|
|
271
|
+
base_url: this.base_url,
|
|
272
|
+
path: paymentPath(PathPaymentsFromPublicSession),
|
|
273
|
+
method: HTTPMethodPost,
|
|
274
|
+
body: opts,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
async purchaseCredits(opts) {
|
|
278
|
+
const token = await requiredToken(this.get_token);
|
|
279
|
+
return await this.http.do({
|
|
280
|
+
base_url: this.base_url,
|
|
281
|
+
path: creditLedgerPath(PathPaymentsPurchase),
|
|
282
|
+
method: HTTPMethodPost,
|
|
283
|
+
token,
|
|
284
|
+
body: opts,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
async totalCredits(opts) {
|
|
288
|
+
const token = await requiredToken(this.get_token);
|
|
289
|
+
return await this.http.do({
|
|
290
|
+
base_url: this.base_url,
|
|
291
|
+
path: creditLedgerPath(PathPaymentsTotal),
|
|
292
|
+
method: HTTPMethodPost,
|
|
293
|
+
token,
|
|
294
|
+
body: opts,
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
export function newPaymentsClient(opts) {
|
|
299
|
+
return new PaymentsClient(opts);
|
|
300
|
+
}
|
|
301
|
+
function paymentPath(action) {
|
|
302
|
+
return buildPath({
|
|
303
|
+
svc: SvcPayments,
|
|
304
|
+
col: ColPaymentsPayments,
|
|
305
|
+
action,
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
function pmtAccountPath(action) {
|
|
309
|
+
return buildPath({
|
|
310
|
+
svc: SvcPayments,
|
|
311
|
+
col: ColPaymentsPmtAccounts,
|
|
312
|
+
action,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function pmtPublicSessionPath(action) {
|
|
316
|
+
return buildPath({
|
|
317
|
+
svc: SvcPayments,
|
|
318
|
+
col: ColPaymentsPmtPublicSessions,
|
|
319
|
+
action,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function creditLedgerPath(action) {
|
|
323
|
+
return buildPath({
|
|
324
|
+
svc: SvcPayments,
|
|
325
|
+
col: ColPaymentsCreditLedger,
|
|
326
|
+
action,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
import type { TokenProvider } from "../core/auth.js";
|
|
3
|
+
import type { DeleteManyOptionsCRUD, DeleteOneOptionsCRUD, FindOneOptionsCRUD, InsertOneOptionsCRUD, OperationResultOf, QueryOptionsCRUD, ReplaceOneOptionsCRUD, SearchManyOptionsCRUD, SearchResultOf } from "../core/crud.js";
|
|
4
|
+
import type { HTTPDoer } from "../core/http.js";
|
|
5
|
+
export type GeneratePayrollOptions = InPayroll;
|
|
6
|
+
export type GeneratePayrollFromEntitiesOptions = PLPayrollsGeneratePayrollFromEntities;
|
|
7
|
+
export type AggregateAdjustmentsOptions = InAdjustmentAggregate;
|
|
8
|
+
export type PayrollsClientOptions = {
|
|
9
|
+
http: HTTPDoer;
|
|
10
|
+
base_url: string;
|
|
11
|
+
get_token?: TokenProvider;
|
|
12
|
+
};
|
|
13
|
+
export interface PayrollsOperator {
|
|
14
|
+
queryPayables(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payable[]>>;
|
|
15
|
+
insertOnePayable(opts: InsertOneOptionsCRUD<InPayable>): Promise<OperationResult>;
|
|
16
|
+
findOnePayable(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payable>>;
|
|
17
|
+
replaceOnePayable(opts: ReplaceOneOptionsCRUD<InPayable>): Promise<OperationResult>;
|
|
18
|
+
deleteOnePayable(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
19
|
+
deleteManyPayables(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
20
|
+
searchManyPayables(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payable>>>;
|
|
21
|
+
queryPayrolls(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payroll[]>>;
|
|
22
|
+
insertOnePayroll(opts: InsertOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
|
|
23
|
+
findOnePayroll(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payroll>>;
|
|
24
|
+
replaceOnePayroll(opts: ReplaceOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
|
|
25
|
+
deleteOnePayroll(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
26
|
+
deleteManyPayrolls(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
27
|
+
searchManyPayrolls(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payroll>>>;
|
|
28
|
+
queryPayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayConfig[]>>;
|
|
29
|
+
insertOnePayConfig(opts: InsertOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
|
|
30
|
+
findOnePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayConfig>>;
|
|
31
|
+
replaceOnePayConfig(opts: ReplaceOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
|
|
32
|
+
deleteOnePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
33
|
+
deleteManyPayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
34
|
+
searchManyPayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayConfig>>>;
|
|
35
|
+
queryHourBanks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<HourBank[]>>;
|
|
36
|
+
insertOneHourBank(opts: InsertOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
|
|
37
|
+
findOneHourBank(opts: FindOneOptionsCRUD): Promise<OperationResultOf<HourBank>>;
|
|
38
|
+
replaceOneHourBank(opts: ReplaceOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
|
|
39
|
+
deleteOneHourBank(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
40
|
+
deleteManyHourBanks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
41
|
+
searchManyHourBanks(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<HourBank>>>;
|
|
42
|
+
queryAdjustments(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Adjustment[]>>;
|
|
43
|
+
insertOneAdjustment(opts: InsertOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
|
|
44
|
+
findOneAdjustment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Adjustment>>;
|
|
45
|
+
replaceOneAdjustment(opts: ReplaceOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
|
|
46
|
+
deleteOneAdjustment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
47
|
+
deleteManyAdjustments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
48
|
+
searchManyAdjustments(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Adjustment>>>;
|
|
49
|
+
queryAdjustmentFolders(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder[]>>;
|
|
50
|
+
insertOneAdjustmentFolder(opts: InsertOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
|
|
51
|
+
findOneAdjustmentFolder(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder>>;
|
|
52
|
+
replaceOneAdjustmentFolder(opts: ReplaceOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
|
|
53
|
+
deleteOneAdjustmentFolder(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
54
|
+
deleteManyAdjustmentFolders(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
55
|
+
searchManyAdjustmentFolders(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentFolder>>>;
|
|
56
|
+
queryAdjustmentRecords(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord[]>>;
|
|
57
|
+
insertOneAdjustmentRecord(opts: InsertOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
|
|
58
|
+
findOneAdjustmentRecord(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord>>;
|
|
59
|
+
replaceOneAdjustmentRecord(opts: ReplaceOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
|
|
60
|
+
deleteOneAdjustmentRecord(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
61
|
+
deleteManyAdjustmentRecords(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
62
|
+
searchManyAdjustmentRecords(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentRecord>>>;
|
|
63
|
+
queryAdjustmentAggregates(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate[]>>;
|
|
64
|
+
insertOneAdjustmentAggregate(opts: InsertOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
|
|
65
|
+
findOneAdjustmentAggregate(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate>>;
|
|
66
|
+
replaceOneAdjustmentAggregate(opts: ReplaceOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
|
|
67
|
+
deleteOneAdjustmentAggregate(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
68
|
+
deleteManyAdjustmentAggregates(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
69
|
+
searchManyAdjustmentAggregates(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentAggregate>>>;
|
|
70
|
+
queryEmployeePayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig[]>>;
|
|
71
|
+
insertOneEmployeePayConfig(opts: InsertOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
|
|
72
|
+
findOneEmployeePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig>>;
|
|
73
|
+
replaceOneEmployeePayConfig(opts: ReplaceOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
|
|
74
|
+
deleteOneEmployeePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
75
|
+
deleteManyEmployeePayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
76
|
+
searchManyEmployeePayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<EmployeePayConfig>>>;
|
|
77
|
+
queryPayrollPrograms(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayrollProgram[]>>;
|
|
78
|
+
insertOnePayrollProgram(opts: InsertOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
|
|
79
|
+
findOnePayrollProgram(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayrollProgram>>;
|
|
80
|
+
replaceOnePayrollProgram(opts: ReplaceOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
|
|
81
|
+
deleteOnePayrollProgram(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
82
|
+
deleteManyPayrollPrograms(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
83
|
+
searchManyPayrollPrograms(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayrollProgram>>>;
|
|
84
|
+
generatePayroll(opts: GeneratePayrollOptions): Promise<OperationResult>;
|
|
85
|
+
generatePayrollFromPayables(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
|
|
86
|
+
generatePayrollFromHourBanks(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
|
|
87
|
+
aggregateAdjustments(opts: AggregateAdjustmentsOptions): Promise<OperationResult>;
|
|
88
|
+
}
|
|
89
|
+
export declare class PayrollsClient implements PayrollsOperator {
|
|
90
|
+
private payables;
|
|
91
|
+
private payrolls;
|
|
92
|
+
private pay_configs;
|
|
93
|
+
private hour_banks;
|
|
94
|
+
private adjustments;
|
|
95
|
+
private adjustment_folders;
|
|
96
|
+
private adjustment_records;
|
|
97
|
+
private adjustment_aggregates;
|
|
98
|
+
private employee_pay_configs;
|
|
99
|
+
private payroll_programs;
|
|
100
|
+
private http;
|
|
101
|
+
private base_url;
|
|
102
|
+
private get_token?;
|
|
103
|
+
constructor(opts: PayrollsClientOptions);
|
|
104
|
+
queryPayables(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payable[]>>;
|
|
105
|
+
insertOnePayable(opts: InsertOneOptionsCRUD<InPayable>): Promise<OperationResult>;
|
|
106
|
+
findOnePayable(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payable>>;
|
|
107
|
+
replaceOnePayable(opts: ReplaceOneOptionsCRUD<InPayable>): Promise<OperationResult>;
|
|
108
|
+
deleteOnePayable(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
109
|
+
deleteManyPayables(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
110
|
+
searchManyPayables(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payable>>>;
|
|
111
|
+
queryPayrolls(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Payroll[]>>;
|
|
112
|
+
insertOnePayroll(opts: InsertOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
|
|
113
|
+
findOnePayroll(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Payroll>>;
|
|
114
|
+
replaceOnePayroll(opts: ReplaceOneOptionsCRUD<InPayroll>): Promise<OperationResult>;
|
|
115
|
+
deleteOnePayroll(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
116
|
+
deleteManyPayrolls(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
117
|
+
searchManyPayrolls(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Payroll>>>;
|
|
118
|
+
queryPayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayConfig[]>>;
|
|
119
|
+
insertOnePayConfig(opts: InsertOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
|
|
120
|
+
findOnePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayConfig>>;
|
|
121
|
+
replaceOnePayConfig(opts: ReplaceOneOptionsCRUD<InPayConfig>): Promise<OperationResult>;
|
|
122
|
+
deleteOnePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
123
|
+
deleteManyPayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
124
|
+
searchManyPayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayConfig>>>;
|
|
125
|
+
queryHourBanks(opts?: QueryOptionsCRUD): Promise<OperationResultOf<HourBank[]>>;
|
|
126
|
+
insertOneHourBank(opts: InsertOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
|
|
127
|
+
findOneHourBank(opts: FindOneOptionsCRUD): Promise<OperationResultOf<HourBank>>;
|
|
128
|
+
replaceOneHourBank(opts: ReplaceOneOptionsCRUD<InHourBank>): Promise<OperationResult>;
|
|
129
|
+
deleteOneHourBank(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
130
|
+
deleteManyHourBanks(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
131
|
+
searchManyHourBanks(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<HourBank>>>;
|
|
132
|
+
queryAdjustments(opts?: QueryOptionsCRUD): Promise<OperationResultOf<Adjustment[]>>;
|
|
133
|
+
insertOneAdjustment(opts: InsertOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
|
|
134
|
+
findOneAdjustment(opts: FindOneOptionsCRUD): Promise<OperationResultOf<Adjustment>>;
|
|
135
|
+
replaceOneAdjustment(opts: ReplaceOneOptionsCRUD<InAdjustment>): Promise<OperationResult>;
|
|
136
|
+
deleteOneAdjustment(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
137
|
+
deleteManyAdjustments(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
138
|
+
searchManyAdjustments(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<Adjustment>>>;
|
|
139
|
+
queryAdjustmentFolders(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder[]>>;
|
|
140
|
+
insertOneAdjustmentFolder(opts: InsertOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
|
|
141
|
+
findOneAdjustmentFolder(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentFolder>>;
|
|
142
|
+
replaceOneAdjustmentFolder(opts: ReplaceOneOptionsCRUD<InAdjustmentFolder>): Promise<OperationResult>;
|
|
143
|
+
deleteOneAdjustmentFolder(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
144
|
+
deleteManyAdjustmentFolders(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
145
|
+
searchManyAdjustmentFolders(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentFolder>>>;
|
|
146
|
+
queryAdjustmentRecords(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord[]>>;
|
|
147
|
+
insertOneAdjustmentRecord(opts: InsertOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
|
|
148
|
+
findOneAdjustmentRecord(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentRecord>>;
|
|
149
|
+
replaceOneAdjustmentRecord(opts: ReplaceOneOptionsCRUD<InAdjustmentRecord>): Promise<OperationResult>;
|
|
150
|
+
deleteOneAdjustmentRecord(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
151
|
+
deleteManyAdjustmentRecords(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
152
|
+
searchManyAdjustmentRecords(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentRecord>>>;
|
|
153
|
+
queryAdjustmentAggregates(opts?: QueryOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate[]>>;
|
|
154
|
+
insertOneAdjustmentAggregate(opts: InsertOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
|
|
155
|
+
findOneAdjustmentAggregate(opts: FindOneOptionsCRUD): Promise<OperationResultOf<AdjustmentAggregate>>;
|
|
156
|
+
replaceOneAdjustmentAggregate(opts: ReplaceOneOptionsCRUD<InAdjustmentAggregate>): Promise<OperationResult>;
|
|
157
|
+
deleteOneAdjustmentAggregate(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
158
|
+
deleteManyAdjustmentAggregates(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
159
|
+
searchManyAdjustmentAggregates(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<AdjustmentAggregate>>>;
|
|
160
|
+
queryEmployeePayConfigs(opts?: QueryOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig[]>>;
|
|
161
|
+
insertOneEmployeePayConfig(opts: InsertOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
|
|
162
|
+
findOneEmployeePayConfig(opts: FindOneOptionsCRUD): Promise<OperationResultOf<EmployeePayConfig>>;
|
|
163
|
+
replaceOneEmployeePayConfig(opts: ReplaceOneOptionsCRUD<InEmployeePayConfig>): Promise<OperationResult>;
|
|
164
|
+
deleteOneEmployeePayConfig(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
165
|
+
deleteManyEmployeePayConfigs(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
166
|
+
searchManyEmployeePayConfigs(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<EmployeePayConfig>>>;
|
|
167
|
+
queryPayrollPrograms(opts?: QueryOptionsCRUD): Promise<OperationResultOf<PayrollProgram[]>>;
|
|
168
|
+
insertOnePayrollProgram(opts: InsertOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
|
|
169
|
+
findOnePayrollProgram(opts: FindOneOptionsCRUD): Promise<OperationResultOf<PayrollProgram>>;
|
|
170
|
+
replaceOnePayrollProgram(opts: ReplaceOneOptionsCRUD<InPayrollProgram>): Promise<OperationResult>;
|
|
171
|
+
deleteOnePayrollProgram(opts: DeleteOneOptionsCRUD): Promise<OperationResult>;
|
|
172
|
+
deleteManyPayrollPrograms(opts?: DeleteManyOptionsCRUD): Promise<OperationResultOf<number>>;
|
|
173
|
+
searchManyPayrollPrograms(opts?: SearchManyOptionsCRUD): Promise<OperationResultOf<SearchResultOf<PayrollProgram>>>;
|
|
174
|
+
generatePayroll(opts: GeneratePayrollOptions): Promise<OperationResult>;
|
|
175
|
+
generatePayrollFromPayables(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
|
|
176
|
+
generatePayrollFromHourBanks(opts: GeneratePayrollFromEntitiesOptions): Promise<OperationResult>;
|
|
177
|
+
aggregateAdjustments(opts: AggregateAdjustmentsOptions): Promise<OperationResult>;
|
|
178
|
+
}
|
|
179
|
+
export declare function newPayrollsClient(opts: PayrollsClientOptions): PayrollsClient;
|