@fabriktor/schema 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2570 @@
1
+ export type InAdjustment = {
2
+ currency: string;
3
+ is_archived: boolean;
4
+ type: string;
5
+ rate: number;
6
+ unit_amount: number;
7
+ is_accrued: boolean;
8
+ name: string;
9
+ folder_id: string;
10
+ sub_contributions: AdjustmentRule[];
11
+ apply_to_work_hours: boolean;
12
+ apply_to_transport_hours: boolean;
13
+ apply_to_accumulated_work_hours: boolean;
14
+ apply_to_accumulated_transport_hours: boolean;
15
+ is_employer_contribution: boolean;
16
+ };
17
+ export type InAdjustmentAggregate = {
18
+ currency: string;
19
+ period_indexes: number[];
20
+ periods: Period[];
21
+ employee_ids: string[];
22
+ };
23
+ export type InAdjustmentFolder = {
24
+ is_archived: boolean;
25
+ folder_name: string;
26
+ folder_description: string;
27
+ };
28
+ export type InAdjustmentRecord = {
29
+ currency: string;
30
+ employee_id: string;
31
+ payroll_id: string;
32
+ applied_deductions: AppliedAdjustment[];
33
+ applied_contributions: AppliedAdjustment[];
34
+ deduction_total: SInt;
35
+ contribution_total: SInt;
36
+ total: SInt;
37
+ };
38
+ export type InAuthorizeMany = {
39
+ entity_ids: string[];
40
+ principal_id: string;
41
+ role: number;
42
+ };
43
+ export type InBill = {
44
+ is_archived: boolean;
45
+ utc: string;
46
+ y: number;
47
+ m: number;
48
+ d: number;
49
+ h: number;
50
+ min: number;
51
+ tz: string;
52
+ timezone: string;
53
+ upfront_rate: number;
54
+ title: string;
55
+ top_note: string;
56
+ start_date: Date;
57
+ end_date: Date;
58
+ type: string;
59
+ client_id: string;
60
+ location_id: string;
61
+ salary_taxes: Tax[];
62
+ vendor_taxes: Tax[];
63
+ charge_taxes: Tax[];
64
+ exclude_billed: boolean;
65
+ is_estimate: boolean;
66
+ is_internal_client: boolean;
67
+ include_transport: boolean;
68
+ include_salary: boolean;
69
+ include_vendor: boolean;
70
+ include_charge: boolean;
71
+ is_location_achieved: boolean;
72
+ is_canceled: boolean;
73
+ salary_estimate: SalaryEstimate;
74
+ };
75
+ export type InBillableFolder = {
76
+ folder_name: string;
77
+ folder_description: string;
78
+ };
79
+ export type InCharge = {
80
+ is_archived: boolean;
81
+ utc: string;
82
+ y: number;
83
+ m: number;
84
+ d: number;
85
+ h: number;
86
+ min: number;
87
+ tz: string;
88
+ timezone: string;
89
+ employer_id: string;
90
+ entity_id: string;
91
+ location_id: string;
92
+ type: string;
93
+ warehouse_id: string;
94
+ quantity: number;
95
+ is_estimate: boolean;
96
+ is_billed: boolean;
97
+ };
98
+ export type InChat = {
99
+ chat_room_id: string;
100
+ text: string;
101
+ quoted_message_id: string;
102
+ mentions: string[];
103
+ has_objects: boolean;
104
+ objects_uploaded: boolean;
105
+ };
106
+ export type InChatRoom = {
107
+ seen_by: string[];
108
+ latest_sender: string;
109
+ latest_text: string;
110
+ name: string;
111
+ };
112
+ export type InChatRoomMember = {
113
+ chat_room_id: string;
114
+ };
115
+ export type InClientAvailability = {
116
+ timezone: string;
117
+ from: Date;
118
+ to: Date;
119
+ employer_id: string;
120
+ location_id: string;
121
+ };
122
+ export type InConnection = {
123
+ lat: number;
124
+ lon: number;
125
+ };
126
+ export type InContact = {
127
+ is_archived: boolean;
128
+ contact_id: string;
129
+ requested_relation: string;
130
+ relation: string;
131
+ is_pending: boolean;
132
+ };
133
+ export type InCreditLedgerEntry = {
134
+ amount: number;
135
+ operation: string;
136
+ source: string;
137
+ payment_id: string;
138
+ };
139
+ export type InDeletionRequest = {
140
+ email: string;
141
+ uid: string;
142
+ };
143
+ export type InDelegation = {
144
+ is_default: boolean;
145
+ subject: string;
146
+ toggles: Record<string, boolean>;
147
+ };
148
+ export type InDTok = {
149
+ token: string;
150
+ };
151
+ export type InEmployeePayConfig = {
152
+ currency: string;
153
+ is_archived: boolean;
154
+ name: string;
155
+ employee_id: string;
156
+ pay_config_id: string;
157
+ bank_transport: boolean;
158
+ bank_work: boolean;
159
+ };
160
+ export type InEntity = {
161
+ entity_id: string;
162
+ readers: string[];
163
+ writers: string[];
164
+ owners: string[];
165
+ };
166
+ export type InEquipment = {
167
+ is_archived: boolean;
168
+ name: string;
169
+ price: number;
170
+ folder_id: string;
171
+ tax_ids: string[];
172
+ rental_type: string;
173
+ warehouse_id: string;
174
+ };
175
+ export type InEvent = {
176
+ timestamp: string;
177
+ event: string;
178
+ room_sid: string;
179
+ room_id: string;
180
+ user_sid: string;
181
+ user_id: string;
182
+ };
183
+ export type InFeedFavorite = {
184
+ post_id: string;
185
+ };
186
+ export type InFeedInterest = {
187
+ embedding: PlotEmbedding;
188
+ weight: number;
189
+ };
190
+ export type InFeedPost = {
191
+ objects: FeedObject[];
192
+ text: PlotEmbedding;
193
+ is_uploading: boolean;
194
+ has_media: boolean;
195
+ visibility: number;
196
+ referenced_post_id: string;
197
+ reply_to_post_id: string;
198
+ };
199
+ export type InFeedReaction = {
200
+ post_id: string;
201
+ reaction_type: number;
202
+ };
203
+ export type InFeedView = {
204
+ post_id: string;
205
+ };
206
+ export type InFulfillOrder = {
207
+ address_timezone: string;
208
+ lat: number;
209
+ lon: number;
210
+ street: string;
211
+ city: string;
212
+ state: string;
213
+ postal_code: string;
214
+ country: string;
215
+ formatted_address: string;
216
+ place_name: string;
217
+ place_id: string;
218
+ provider: string;
219
+ product_name: string;
220
+ quantity: number;
221
+ file_url: string;
222
+ recipient_name: string;
223
+ };
224
+ export type InHourBank = {
225
+ is_payrolled: boolean;
226
+ period_indexes: number[];
227
+ periods: Period[];
228
+ timezone: string;
229
+ currency: string;
230
+ employee_id: string;
231
+ work_hours: number;
232
+ transport_hours: number;
233
+ };
234
+ export type InItem = {
235
+ is_archived: boolean;
236
+ name: string;
237
+ price: number;
238
+ per_warehouse_quantity: WarehouseQuantity[];
239
+ quantifier_id: string;
240
+ folder_id: string;
241
+ tax_ids: string[];
242
+ track_quantity: boolean;
243
+ };
244
+ export type InJob = {
245
+ utc: string;
246
+ y: number;
247
+ m: number;
248
+ d: number;
249
+ h: number;
250
+ min: number;
251
+ tz: string;
252
+ lead_time_in_hours: number;
253
+ is_active: boolean;
254
+ auto_start: boolean;
255
+ timezone: string;
256
+ status: string;
257
+ name: string;
258
+ description: string;
259
+ all_members: string[];
260
+ current_members: string[];
261
+ foremen: string[];
262
+ location_id: string;
263
+ picture_id: string;
264
+ recurrent: boolean;
265
+ };
266
+ export type InJobProgram = {
267
+ timezone: string;
268
+ job_name: string;
269
+ job_description: string;
270
+ job_start_date: Date;
271
+ job_current_members: string[];
272
+ job_foremen: string[];
273
+ job_location_id: string;
274
+ job_pic_id: string;
275
+ finished: boolean;
276
+ recurrence_rate: number;
277
+ recurrence_type: string;
278
+ recurrence_end_type: string;
279
+ occurrences_to_end: number;
280
+ recurrence_end_date: Date;
281
+ current_occurrences: number;
282
+ };
283
+ export type InLaborRate = {
284
+ is_archived: boolean;
285
+ employee_id: string;
286
+ rate: number;
287
+ };
288
+ export type InLocation = {
289
+ utc: string;
290
+ y: number;
291
+ m: number;
292
+ d: number;
293
+ h: number;
294
+ min: number;
295
+ tz: string;
296
+ timezone: string;
297
+ lead_time_in_hours: number;
298
+ is_active: boolean;
299
+ auto_start: boolean;
300
+ address_timezone: string;
301
+ lat: number;
302
+ lon: number;
303
+ street: string;
304
+ city: string;
305
+ state: string;
306
+ postal_code: string;
307
+ country: string;
308
+ formatted_address: string;
309
+ place_name: string;
310
+ place_id: string;
311
+ status: string;
312
+ end_date: Date;
313
+ name: string;
314
+ type: string;
315
+ description: string;
316
+ all_members: string[];
317
+ current_members: string[];
318
+ picture_id: string;
319
+ client_id: string;
320
+ };
321
+ export type InMarketplaceFavorite = {
322
+ post_id: string;
323
+ };
324
+ export type InMarketplacePost = {
325
+ text: PlotEmbedding;
326
+ post_type: number;
327
+ user_type: number;
328
+ country: string;
329
+ city: string;
330
+ state: string;
331
+ };
332
+ export type InMarketplaceSession = {};
333
+ export type InMemo = {
334
+ is_archived: boolean;
335
+ folder_id: string;
336
+ title: string;
337
+ text: string;
338
+ };
339
+ export type InMemoFolder = {
340
+ folder_name: string;
341
+ folder_description: string;
342
+ };
343
+ export type InMeterReading = {
344
+ equipment_id: string;
345
+ location_id: string;
346
+ employee_id: string;
347
+ reading_in_hours: number;
348
+ is_charged: boolean;
349
+ };
350
+ export type InObject = {
351
+ embedding: PlotEmbedding;
352
+ uploader_id: string;
353
+ name: string;
354
+ mime_prefix: string;
355
+ original_name: string;
356
+ full_quality: boolean;
357
+ signed_url?: string;
358
+ is_temporary?: boolean;
359
+ };
360
+ export type InPayable = {
361
+ currency: string;
362
+ is_payrolled: boolean;
363
+ employee_id: string;
364
+ adjustment_id: string;
365
+ payroll_id: string;
366
+ amount: SInt;
367
+ };
368
+ export type InPayConfig = {
369
+ type: string;
370
+ work_normal_rate: number;
371
+ work_overtime_rate: number;
372
+ transport_normal_rate: number;
373
+ transport_overtime_rate: number;
374
+ default_fixed_hours: number;
375
+ currency: string;
376
+ is_archived: boolean;
377
+ deduction_ids: string[];
378
+ contribution_ids: string[];
379
+ name: string;
380
+ };
381
+ export type InPayment = {
382
+ psp_confirm: boolean;
383
+ psp_account_psp_id: string;
384
+ is_manual: boolean;
385
+ is_external: boolean;
386
+ external_payer_name: string;
387
+ external_payer_email: string;
388
+ external_customer_id: string;
389
+ pmt_public_session_id: string;
390
+ currency: string;
391
+ entity_id: string;
392
+ type: string;
393
+ kind: string;
394
+ payer_payment_method_psp_id: string;
395
+ payer_id: string;
396
+ fees_payment_method_psp_id: string;
397
+ fees_payer_id: string;
398
+ return_url: string;
399
+ recipient_id: string;
400
+ use_psp_sdk: boolean;
401
+ original_amount: SInt;
402
+ original_balance_amount: SInt;
403
+ gross_amount: SInt;
404
+ is_off_session: boolean;
405
+ parent_payment_id: string;
406
+ };
407
+ export type InPayroll = {
408
+ currency: string;
409
+ utc: string;
410
+ y: number;
411
+ m: number;
412
+ d: number;
413
+ h: number;
414
+ min: number;
415
+ tz: string;
416
+ timezone: string;
417
+ period_indexes: number[];
418
+ periods: Period[];
419
+ employee_pay_config_id: string;
420
+ };
421
+ export type InPayrollProgram = {
422
+ currency: string;
423
+ timezone: string;
424
+ employee_id: string;
425
+ employee_pay_config_id: string;
426
+ next_payroll_date: Date;
427
+ recurrence_rate: number;
428
+ recurrence_type: string;
429
+ is_enabled: boolean;
430
+ };
431
+ export type InPmtAccount = {
432
+ currency: string;
433
+ psp_deactivate: boolean;
434
+ return_url: string;
435
+ refresh_url: string;
436
+ country: string;
437
+ };
438
+ export type InPmtBankAccount = {
439
+ psp_account_psp_id: string;
440
+ currency: string;
441
+ holder_name: string;
442
+ holder_type: string;
443
+ account_number: string;
444
+ country: string;
445
+ routing_number: string;
446
+ };
447
+ export type InPmtCard = {
448
+ token: string;
449
+ psp_confirm: boolean;
450
+ post_code: string;
451
+ return_url: string;
452
+ };
453
+ export type InPmtCustomer = {};
454
+ export type InPmtPublicSession = {
455
+ currency: string;
456
+ psp_account_psp_id: string;
457
+ entity_id: string;
458
+ type: string;
459
+ recipient_id: string;
460
+ original_amount: number;
461
+ balance_amount: number;
462
+ is_consumed: boolean;
463
+ is_internal_client: boolean;
464
+ };
465
+ export type InPmtRefund = {
466
+ psp_account_psp_id: string;
467
+ is_manual: boolean;
468
+ payment_id: string;
469
+ reason: string;
470
+ original_payer_id: string;
471
+ amount: SInt;
472
+ };
473
+ export type InPrefClient = {
474
+ is_default: boolean;
475
+ };
476
+ export type InPrefCompany = {
477
+ is_default: boolean;
478
+ pause_duration_in_minutes: number;
479
+ lunch_duration_in_minutes: number;
480
+ work_day_start_hour: number;
481
+ work_day_end_hour: number;
482
+ max_work_hours: number;
483
+ max_transport_hours: number;
484
+ non_remunerated_transport_hours: number;
485
+ salary_rate: number;
486
+ transport_rate: number;
487
+ vendor_invoice_rate: number;
488
+ period_offset: number;
489
+ payment_terms: number;
490
+ invoice_note: string;
491
+ estimate_note: string;
492
+ activation_lead_time_jobs: number;
493
+ activation_lead_time_locations: number;
494
+ tax_ids: TaxID[];
495
+ };
496
+ export type InPrefEmail = {
497
+ is_default: boolean;
498
+ toggles: Record<string, boolean>;
499
+ };
500
+ export type InPrefEmployee = {
501
+ is_default: boolean;
502
+ };
503
+ export type InPrefLanguage = {
504
+ is_default: boolean;
505
+ country: string;
506
+ language: string;
507
+ speech_to_text_source_language: string;
508
+ };
509
+ export type InPrefNotif = {
510
+ is_default: boolean;
511
+ toggles: Record<string, boolean>;
512
+ };
513
+ export type InPrefPayment = {
514
+ is_default: boolean;
515
+ main_payment_method_id: string;
516
+ fees_payment_method_id: string;
517
+ };
518
+ export type InPrefTutorial = {
519
+ is_default: boolean;
520
+ toggles: Record<string, boolean>;
521
+ };
522
+ export type InPrefVisibility = {
523
+ is_default: boolean;
524
+ email: number;
525
+ phone: number;
526
+ country: number;
527
+ state: number;
528
+ complete_address: number;
529
+ };
530
+ export type InQuantifier = {
531
+ is_archived: boolean;
532
+ name: string;
533
+ description: string;
534
+ };
535
+ export type InRoute = {
536
+ timezone: string;
537
+ from: Date;
538
+ to: Date;
539
+ vehicles: Vehicle[];
540
+ start_place_id: string;
541
+ destinations: Destination[];
542
+ override_itinerary: boolean;
543
+ consider_traffic: boolean;
544
+ start_early: boolean;
545
+ };
546
+ export type InRouteTeam = {
547
+ description: string;
548
+ employee_ids: string[];
549
+ };
550
+ export type InSignal = {};
551
+ export type InSMS = {
552
+ num_sender: string;
553
+ num_receiver: string;
554
+ body: string;
555
+ };
556
+ export type InSummary = {};
557
+ export type InTag = {
558
+ v: string;
559
+ };
560
+ export type InTax = {
561
+ is_archived: boolean;
562
+ name: string;
563
+ description: string;
564
+ rate: number;
565
+ };
566
+ export type InTmpBillNumber = {
567
+ v: number;
568
+ };
569
+ export type InTmpPhone = {
570
+ uid: string;
571
+ num: string;
572
+ code: string;
573
+ };
574
+ export type InTmpUsername = {
575
+ uid: string;
576
+ username: string;
577
+ };
578
+ export type InTracking = {
579
+ lat: number;
580
+ lon: number;
581
+ route_id: string;
582
+ vehicle_id: string;
583
+ employee_id: string;
584
+ timestamp: Date;
585
+ };
586
+ export type InUser = {
587
+ address_timezone: string;
588
+ lat: number;
589
+ lon: number;
590
+ street: string;
591
+ city: string;
592
+ state: string;
593
+ postal_code: string;
594
+ country: string;
595
+ formatted_address: string;
596
+ place_name: string;
597
+ place_id: string;
598
+ username: string;
599
+ first_name: string;
600
+ last_name: string;
601
+ phone: string;
602
+ company_name: string;
603
+ user_type: number;
604
+ user_type_switch: number;
605
+ privacy: Privacy;
606
+ picture_id: string;
607
+ qr_id: string;
608
+ ExternalOwner: Owner;
609
+ };
610
+ export type InVendorInvoice = {
611
+ is_archived: boolean;
612
+ utc: string;
613
+ y: number;
614
+ m: number;
615
+ d: number;
616
+ h: number;
617
+ min: number;
618
+ tz: string;
619
+ timezone: string;
620
+ taxes: PrintTax[];
621
+ sub_total: SInt;
622
+ tax_total: SInt;
623
+ total: SInt;
624
+ vendor_id: string;
625
+ location_id: string;
626
+ print_description: string;
627
+ number: string;
628
+ is_billed: boolean;
629
+ is_estimate: boolean;
630
+ is_internal_vendor: boolean;
631
+ };
632
+ export type InWarehouse = {
633
+ address_timezone: string;
634
+ lat: number;
635
+ lon: number;
636
+ street: string;
637
+ city: string;
638
+ state: string;
639
+ postal_code: string;
640
+ country: string;
641
+ formatted_address: string;
642
+ place_name: string;
643
+ place_id: string;
644
+ is_archived: boolean;
645
+ name: string;
646
+ };
647
+ export type InWeekSheet = {};
648
+ export type InAccountLock = {
649
+ r: string;
650
+ };
651
+ export type Adjustment = {
652
+ id: string;
653
+ updated_at: string;
654
+ created_at: string;
655
+ owner_id: string;
656
+ currency: string;
657
+ is_archived: boolean;
658
+ type: string;
659
+ rate: number;
660
+ unit_amount: number;
661
+ is_accrued: boolean;
662
+ name: string;
663
+ folder_id: string;
664
+ sub_contributions: AdjustmentRule[];
665
+ apply_to_work_hours: boolean;
666
+ apply_to_transport_hours: boolean;
667
+ apply_to_accumulated_work_hours: boolean;
668
+ apply_to_accumulated_transport_hours: boolean;
669
+ is_employer_contribution: boolean;
670
+ };
671
+ export type AdjustmentAggregate = {
672
+ id: string;
673
+ updated_at: string;
674
+ created_at: string;
675
+ owner_id: string;
676
+ aggregate_record_ids: string[];
677
+ deduction_total_per_period: {
678
+ [key: number]: number;
679
+ };
680
+ contribution_total_per_period: {
681
+ [key: number]: number;
682
+ };
683
+ applied_deductions_per_period: {
684
+ [key: number]: AppliedAdjustment[];
685
+ };
686
+ applied_contributions_per_period: {
687
+ [key: number]: AppliedAdjustment[];
688
+ };
689
+ total_per_deduction_name: {
690
+ [key: string]: number;
691
+ };
692
+ total_per_contribution_name: {
693
+ [key: string]: number;
694
+ };
695
+ total_per_folder_name: {
696
+ [key: string]: number;
697
+ };
698
+ applied_deductions: AppliedAdjustment[];
699
+ applied_contributions: AppliedAdjustment[];
700
+ deduction_total: SInt;
701
+ contribution_total: SInt;
702
+ total: SInt;
703
+ currency: string;
704
+ period_indexes: number[];
705
+ periods: Period[];
706
+ employee_ids: string[];
707
+ };
708
+ export type AdjustmentFolder = {
709
+ id: string;
710
+ updated_at: string;
711
+ created_at: string;
712
+ owner_id: string;
713
+ is_archived: boolean;
714
+ folder_name: string;
715
+ folder_description: string;
716
+ };
717
+ export type AdjustmentRecord = {
718
+ id: string;
719
+ updated_at: string;
720
+ created_at: string;
721
+ owner_id: string;
722
+ period_index: number;
723
+ period: number;
724
+ period_year: number;
725
+ currency: string;
726
+ employee_id: string;
727
+ payroll_id: string;
728
+ applied_deductions: AppliedAdjustment[];
729
+ applied_contributions: AppliedAdjustment[];
730
+ deduction_total: SInt;
731
+ contribution_total: SInt;
732
+ total: SInt;
733
+ };
734
+ export type AuthorizeMany = {
735
+ entity_ids: string[];
736
+ principal_id: string;
737
+ role: number;
738
+ };
739
+ export type Bill = {
740
+ id: string;
741
+ updated_at: string;
742
+ created_at: string;
743
+ owner_id: string;
744
+ period_index: number;
745
+ period: number;
746
+ period_year: number;
747
+ number: number;
748
+ upfront: SInt;
749
+ upfront_balance: SInt;
750
+ vendor_rate: number;
751
+ start_period: Period;
752
+ end_period: Period;
753
+ due_date: Date;
754
+ due_date_str: string;
755
+ salary_entries: PrintEntry[];
756
+ transport_entries: PrintEntry[];
757
+ charge_entries: PrintEntry[];
758
+ vendor_entries: PrintEntry[];
759
+ salary_total: Total;
760
+ transport_total: Total;
761
+ charge_total: Total;
762
+ vendor_total: Total;
763
+ total: Total;
764
+ username: string;
765
+ is_archived: boolean;
766
+ utc: string;
767
+ y: number;
768
+ m: number;
769
+ d: number;
770
+ h: number;
771
+ min: number;
772
+ tz: string;
773
+ timezone: string;
774
+ upfront_rate: number;
775
+ title: string;
776
+ top_note: string;
777
+ start_date: Date;
778
+ end_date: Date;
779
+ type: string;
780
+ client_id: string;
781
+ location_id: string;
782
+ salary_taxes: Tax[];
783
+ vendor_taxes: Tax[];
784
+ charge_taxes: Tax[];
785
+ exclude_billed: boolean;
786
+ is_estimate: boolean;
787
+ is_internal_client: boolean;
788
+ include_transport: boolean;
789
+ include_salary: boolean;
790
+ include_vendor: boolean;
791
+ include_charge: boolean;
792
+ is_location_achieved: boolean;
793
+ is_canceled: boolean;
794
+ salary_estimate: SalaryEstimate;
795
+ };
796
+ export type BillableFolder = {
797
+ id: string;
798
+ updated_at: string;
799
+ created_at: string;
800
+ owner_id: string;
801
+ folder_name: string;
802
+ folder_description: string;
803
+ };
804
+ export type Charge = {
805
+ id: string;
806
+ updated_at: string;
807
+ created_at: string;
808
+ owner_id: string;
809
+ period_index: number;
810
+ period: number;
811
+ period_year: number;
812
+ is_archived: boolean;
813
+ utc: string;
814
+ y: number;
815
+ m: number;
816
+ d: number;
817
+ h: number;
818
+ min: number;
819
+ tz: string;
820
+ timezone: string;
821
+ employer_id: string;
822
+ entity_id: string;
823
+ location_id: string;
824
+ type: string;
825
+ warehouse_id: string;
826
+ quantity: number;
827
+ is_estimate: boolean;
828
+ is_billed: boolean;
829
+ };
830
+ export type Chat = {
831
+ id: string;
832
+ updated_at: string;
833
+ created_at: string;
834
+ owner_id: string;
835
+ reactions: {
836
+ [key: string]: number;
837
+ };
838
+ chat_room_id: string;
839
+ text: string;
840
+ quoted_message_id: string;
841
+ mentions: string[];
842
+ has_objects: boolean;
843
+ objects_uploaded: boolean;
844
+ };
845
+ export type ChatRoom = {
846
+ id: string;
847
+ updated_at: string;
848
+ created_at: string;
849
+ seen_by: string[];
850
+ latest_sender: string;
851
+ latest_text: string;
852
+ name: string;
853
+ };
854
+ export type ChatRoomMember = {
855
+ id: string;
856
+ updated_at: string;
857
+ created_at: string;
858
+ owner_id: string;
859
+ chat_room_id: string;
860
+ };
861
+ export type ClientAvailability = {
862
+ id: string;
863
+ updated_at: string;
864
+ created_at: string;
865
+ owner_id: string;
866
+ timezone: string;
867
+ from: Date;
868
+ to: Date;
869
+ employer_id: string;
870
+ location_id: string;
871
+ };
872
+ export type Connection = {
873
+ id: string;
874
+ updated_at: string;
875
+ created_at: string;
876
+ owner_id: string;
877
+ request_ip: string;
878
+ connection_id: string;
879
+ user_agent: string;
880
+ location: string;
881
+ lat: number;
882
+ lon: number;
883
+ };
884
+ export type Contact = {
885
+ id: string;
886
+ updated_at: string;
887
+ created_at: string;
888
+ owner_id: string;
889
+ is_archived: boolean;
890
+ contact_id: string;
891
+ requested_relation: string;
892
+ relation: string;
893
+ is_pending: boolean;
894
+ };
895
+ export type CreditLedgerEntry = {
896
+ id: string;
897
+ updated_at: string;
898
+ created_at: string;
899
+ owner_id: string;
900
+ amount: number;
901
+ operation: string;
902
+ source: string;
903
+ payment_id: string;
904
+ };
905
+ export type DeletionRequest = {
906
+ id: string;
907
+ updated_at: string;
908
+ created_at: string;
909
+ owner_id: string;
910
+ email: string;
911
+ uid: string;
912
+ };
913
+ export type Delegation = {
914
+ id: string;
915
+ updated_at: string;
916
+ created_at: string;
917
+ owner_id: string;
918
+ is_default: boolean;
919
+ subject: string;
920
+ toggles: Record<string, boolean>;
921
+ };
922
+ export type DTok = {
923
+ id: string;
924
+ updated_at: string;
925
+ created_at: string;
926
+ owner_id: string;
927
+ token: string;
928
+ };
929
+ export type EmployeePayConfig = {
930
+ id: string;
931
+ updated_at: string;
932
+ created_at: string;
933
+ owner_id: string;
934
+ currency: string;
935
+ is_archived: boolean;
936
+ name: string;
937
+ employee_id: string;
938
+ pay_config_id: string;
939
+ bank_transport: boolean;
940
+ bank_work: boolean;
941
+ };
942
+ export type Entity = {
943
+ id: string;
944
+ updated_at: string;
945
+ created_at: string;
946
+ entity_id: string;
947
+ readers: string[];
948
+ writers: string[];
949
+ owners: string[];
950
+ };
951
+ export type Equipment = {
952
+ id: string;
953
+ updated_at: string;
954
+ created_at: string;
955
+ owner_id: string;
956
+ is_archived: boolean;
957
+ name: string;
958
+ price: number;
959
+ folder_id: string;
960
+ tax_ids: string[];
961
+ rental_type: string;
962
+ warehouse_id: string;
963
+ };
964
+ export type Event = {
965
+ id: string;
966
+ updated_at: string;
967
+ created_at: string;
968
+ timestamp: string;
969
+ event: string;
970
+ room_sid: string;
971
+ room_id: string;
972
+ user_sid: string;
973
+ user_id: string;
974
+ };
975
+ export type FeedFavorite = {
976
+ id: string;
977
+ updated_at: string;
978
+ created_at: string;
979
+ owner_id: string;
980
+ post_id: string;
981
+ };
982
+ export type FeedInterest = {
983
+ id: string;
984
+ updated_at: string;
985
+ created_at: string;
986
+ owner_id: string;
987
+ embedding: PlotEmbedding;
988
+ weight: number;
989
+ };
990
+ export type FeedPost = {
991
+ id: string;
992
+ updated_at: string;
993
+ created_at: string;
994
+ owner_id: string;
995
+ stats: FeedPostStat;
996
+ self: FeedPostSelf;
997
+ is_censored: boolean;
998
+ avg_embedding: PlotEmbedding;
999
+ objects: FeedObject[];
1000
+ text: PlotEmbedding;
1001
+ is_uploading: boolean;
1002
+ has_media: boolean;
1003
+ visibility: number;
1004
+ referenced_post_id: string;
1005
+ reply_to_post_id: string;
1006
+ };
1007
+ export type FeedReaction = {
1008
+ id: string;
1009
+ updated_at: string;
1010
+ created_at: string;
1011
+ owner_id: string;
1012
+ post_id: string;
1013
+ reaction_type: number;
1014
+ };
1015
+ export type FeedView = {
1016
+ id: string;
1017
+ updated_at: string;
1018
+ created_at: string;
1019
+ owner_id: string;
1020
+ post_id: string;
1021
+ };
1022
+ export type FulfillOrder = {
1023
+ id: string;
1024
+ updated_at: string;
1025
+ created_at: string;
1026
+ owner_id: string;
1027
+ status: string;
1028
+ provider_order_id: string;
1029
+ address_timezone: string;
1030
+ lat: number;
1031
+ lon: number;
1032
+ street: string;
1033
+ city: string;
1034
+ state: string;
1035
+ postal_code: string;
1036
+ country: string;
1037
+ formatted_address: string;
1038
+ place_name: string;
1039
+ place_id: string;
1040
+ provider: string;
1041
+ product_name: string;
1042
+ quantity: number;
1043
+ file_url: string;
1044
+ recipient_name: string;
1045
+ };
1046
+ export type HourBank = {
1047
+ id: string;
1048
+ updated_at: string;
1049
+ created_at: string;
1050
+ owner_id: string;
1051
+ is_payrolled: boolean;
1052
+ period_indexes: number[];
1053
+ periods: Period[];
1054
+ timezone: string;
1055
+ currency: string;
1056
+ employee_id: string;
1057
+ work_hours: number;
1058
+ transport_hours: number;
1059
+ };
1060
+ export type Item = {
1061
+ id: string;
1062
+ updated_at: string;
1063
+ created_at: string;
1064
+ owner_id: string;
1065
+ global_quantity: number;
1066
+ is_archived: boolean;
1067
+ name: string;
1068
+ price: number;
1069
+ per_warehouse_quantity: WarehouseQuantity[];
1070
+ quantifier_id: string;
1071
+ folder_id: string;
1072
+ tax_ids: string[];
1073
+ track_quantity: boolean;
1074
+ };
1075
+ export type Job = {
1076
+ id: string;
1077
+ updated_at: string;
1078
+ created_at: string;
1079
+ owner_id: string;
1080
+ utc: string;
1081
+ y: number;
1082
+ m: number;
1083
+ d: number;
1084
+ h: number;
1085
+ min: number;
1086
+ tz: string;
1087
+ lead_time_in_hours: number;
1088
+ is_active: boolean;
1089
+ auto_start: boolean;
1090
+ timezone: string;
1091
+ status: string;
1092
+ name: string;
1093
+ description: string;
1094
+ all_members: string[];
1095
+ current_members: string[];
1096
+ foremen: string[];
1097
+ location_id: string;
1098
+ picture_id: string;
1099
+ recurrent: boolean;
1100
+ };
1101
+ export type JobProgram = {
1102
+ id: string;
1103
+ updated_at: string;
1104
+ created_at: string;
1105
+ owner_id: string;
1106
+ timezone: string;
1107
+ job_name: string;
1108
+ job_description: string;
1109
+ job_start_date: Date;
1110
+ job_current_members: string[];
1111
+ job_foremen: string[];
1112
+ job_location_id: string;
1113
+ job_pic_id: string;
1114
+ finished: boolean;
1115
+ recurrence_rate: number;
1116
+ recurrence_type: string;
1117
+ recurrence_end_type: string;
1118
+ occurrences_to_end: number;
1119
+ recurrence_end_date: Date;
1120
+ current_occurrences: number;
1121
+ };
1122
+ export type LaborRate = {
1123
+ id: string;
1124
+ updated_at: string;
1125
+ created_at: string;
1126
+ owner_id: string;
1127
+ is_archived: boolean;
1128
+ employee_id: string;
1129
+ rate: number;
1130
+ };
1131
+ export type Location = {
1132
+ id: string;
1133
+ updated_at: string;
1134
+ created_at: string;
1135
+ owner_id: string;
1136
+ utc: string;
1137
+ y: number;
1138
+ m: number;
1139
+ d: number;
1140
+ h: number;
1141
+ min: number;
1142
+ tz: string;
1143
+ timezone: string;
1144
+ lead_time_in_hours: number;
1145
+ is_active: boolean;
1146
+ auto_start: boolean;
1147
+ address_timezone: string;
1148
+ lat: number;
1149
+ lon: number;
1150
+ street: string;
1151
+ city: string;
1152
+ state: string;
1153
+ postal_code: string;
1154
+ country: string;
1155
+ formatted_address: string;
1156
+ place_name: string;
1157
+ place_id: string;
1158
+ status: string;
1159
+ end_date: Date;
1160
+ name: string;
1161
+ type: string;
1162
+ description: string;
1163
+ all_members: string[];
1164
+ current_members: string[];
1165
+ picture_id: string;
1166
+ client_id: string;
1167
+ };
1168
+ export type MarketplaceFavorite = {
1169
+ id: string;
1170
+ updated_at: string;
1171
+ created_at: string;
1172
+ owner_id: string;
1173
+ post_id: string;
1174
+ };
1175
+ export type MarketplacePost = {
1176
+ id: string;
1177
+ updated_at: string;
1178
+ created_at: string;
1179
+ owner_id: string;
1180
+ text: PlotEmbedding;
1181
+ post_type: number;
1182
+ user_type: number;
1183
+ country: string;
1184
+ city: string;
1185
+ state: string;
1186
+ };
1187
+ export type MarketplaceSession = {
1188
+ id: string;
1189
+ updated_at: string;
1190
+ created_at: string;
1191
+ owner_id: string;
1192
+ token: string;
1193
+ pull_state: Record<string, object>;
1194
+ };
1195
+ export type Memo = {
1196
+ id: string;
1197
+ updated_at: string;
1198
+ created_at: string;
1199
+ owner_id: string;
1200
+ normalized_text: string;
1201
+ is_archived: boolean;
1202
+ folder_id: string;
1203
+ title: string;
1204
+ text: string;
1205
+ };
1206
+ export type MemoFolder = {
1207
+ id: string;
1208
+ updated_at: string;
1209
+ created_at: string;
1210
+ owner_id: string;
1211
+ folder_name: string;
1212
+ folder_description: string;
1213
+ };
1214
+ export type MeterReading = {
1215
+ id: string;
1216
+ updated_at: string;
1217
+ created_at: string;
1218
+ owner_id: string;
1219
+ equipment_id: string;
1220
+ location_id: string;
1221
+ employee_id: string;
1222
+ reading_in_hours: number;
1223
+ is_charged: boolean;
1224
+ };
1225
+ export type Object = {
1226
+ id: string;
1227
+ updated_at: string;
1228
+ created_at: string;
1229
+ owner_id: string;
1230
+ caption: PlotEmbedding;
1231
+ embedding: PlotEmbedding;
1232
+ uploader_id: string;
1233
+ name: string;
1234
+ mime_prefix: string;
1235
+ original_name: string;
1236
+ full_quality: boolean;
1237
+ signed_url?: string;
1238
+ is_temporary?: boolean;
1239
+ };
1240
+ export type Payable = {
1241
+ id: string;
1242
+ updated_at: string;
1243
+ created_at: string;
1244
+ owner_id: string;
1245
+ period_index: number;
1246
+ period: number;
1247
+ period_year: number;
1248
+ currency: string;
1249
+ is_payrolled: boolean;
1250
+ employee_id: string;
1251
+ adjustment_id: string;
1252
+ payroll_id: string;
1253
+ amount: SInt;
1254
+ };
1255
+ export type PayConfig = {
1256
+ id: string;
1257
+ updated_at: string;
1258
+ created_at: string;
1259
+ owner_id: string;
1260
+ type: string;
1261
+ work_normal_rate: number;
1262
+ work_overtime_rate: number;
1263
+ transport_normal_rate: number;
1264
+ transport_overtime_rate: number;
1265
+ default_fixed_hours: number;
1266
+ currency: string;
1267
+ is_archived: boolean;
1268
+ deduction_ids: string[];
1269
+ contribution_ids: string[];
1270
+ name: string;
1271
+ };
1272
+ export type Payment = {
1273
+ id: string;
1274
+ updated_at: string;
1275
+ created_at: string;
1276
+ owner_id: string;
1277
+ psp_id: string;
1278
+ psp_actionable_status: string;
1279
+ requires_action: boolean;
1280
+ next_action_url: string;
1281
+ failure_reason: string;
1282
+ client_secret: string;
1283
+ fee_amount: SInt;
1284
+ fee_tax_amount: SInt;
1285
+ fee_total_amount: SInt;
1286
+ fee_tax_breakdown: TaxLine[];
1287
+ fee_tax_calculation_psp_id: string;
1288
+ tax_amount: SInt;
1289
+ tax_breakdown: TaxLine[];
1290
+ tax_calculation_psp_id: string;
1291
+ psp_payment_status: string;
1292
+ psp_fees_payer: string;
1293
+ balance_amount: SInt;
1294
+ payout_amount: SInt;
1295
+ has_separate_fees: boolean;
1296
+ psp_confirm: boolean;
1297
+ psp_account_psp_id: string;
1298
+ is_manual: boolean;
1299
+ is_external: boolean;
1300
+ external_payer_name: string;
1301
+ external_payer_email: string;
1302
+ external_customer_id: string;
1303
+ pmt_public_session_id: string;
1304
+ currency: string;
1305
+ entity_id: string;
1306
+ type: string;
1307
+ kind: string;
1308
+ payer_payment_method_psp_id: string;
1309
+ payer_id: string;
1310
+ fees_payment_method_psp_id: string;
1311
+ fees_payer_id: string;
1312
+ return_url: string;
1313
+ recipient_id: string;
1314
+ use_psp_sdk: boolean;
1315
+ original_amount: SInt;
1316
+ original_balance_amount: SInt;
1317
+ gross_amount: SInt;
1318
+ is_off_session: boolean;
1319
+ parent_payment_id: string;
1320
+ };
1321
+ export type Payroll = {
1322
+ id: string;
1323
+ updated_at: string;
1324
+ created_at: string;
1325
+ owner_id: string;
1326
+ is_banked: boolean;
1327
+ is_problematic: boolean;
1328
+ hour_bank_id: string;
1329
+ employee_id: string;
1330
+ summary_ids: string[];
1331
+ work_amount: SInt;
1332
+ transport_amount: SInt;
1333
+ gross_amount: SInt;
1334
+ deduction_amount: SInt;
1335
+ contribution_amount: SInt;
1336
+ adjustment_amount: SInt;
1337
+ net_amount: SInt;
1338
+ currency: string;
1339
+ utc: string;
1340
+ y: number;
1341
+ m: number;
1342
+ d: number;
1343
+ h: number;
1344
+ min: number;
1345
+ tz: string;
1346
+ timezone: string;
1347
+ period_indexes: number[];
1348
+ periods: Period[];
1349
+ employee_pay_config_id: string;
1350
+ };
1351
+ export type PayrollProgram = {
1352
+ id: string;
1353
+ updated_at: string;
1354
+ created_at: string;
1355
+ owner_id: string;
1356
+ currency: string;
1357
+ timezone: string;
1358
+ employee_id: string;
1359
+ employee_pay_config_id: string;
1360
+ next_payroll_date: Date;
1361
+ recurrence_rate: number;
1362
+ recurrence_type: string;
1363
+ is_enabled: boolean;
1364
+ };
1365
+ export type PmtAccount = {
1366
+ id: string;
1367
+ updated_at: string;
1368
+ created_at: string;
1369
+ owner_id: string;
1370
+ psp_id: string;
1371
+ is_currently_due: boolean;
1372
+ is_external_account_due: boolean;
1373
+ is_onboarded: boolean;
1374
+ business_type: string;
1375
+ account_link: string;
1376
+ currency: string;
1377
+ psp_deactivate: boolean;
1378
+ return_url: string;
1379
+ refresh_url: string;
1380
+ country: string;
1381
+ };
1382
+ export type PmtBankAccount = {
1383
+ id: string;
1384
+ updated_at: string;
1385
+ created_at: string;
1386
+ owner_id: string;
1387
+ psp_id: string;
1388
+ psp_account_psp_id: string;
1389
+ currency: string;
1390
+ holder_name: string;
1391
+ holder_type: string;
1392
+ account_number: string;
1393
+ country: string;
1394
+ routing_number: string;
1395
+ };
1396
+ export type PmtCard = {
1397
+ id: string;
1398
+ updated_at: string;
1399
+ created_at: string;
1400
+ owner_id: string;
1401
+ psp_id: string;
1402
+ psp_actionable_status: string;
1403
+ requires_action: boolean;
1404
+ next_action_url: string;
1405
+ failure_reason: string;
1406
+ client_secret: string;
1407
+ expiry_status: string;
1408
+ setup_intent_id: string;
1409
+ last4: string;
1410
+ name_on_card: string;
1411
+ exp_month: number;
1412
+ exp_year: number;
1413
+ is_cvc_verified: boolean;
1414
+ is_postal_code_verified: boolean;
1415
+ is_usable: boolean;
1416
+ token: string;
1417
+ psp_confirm: boolean;
1418
+ post_code: string;
1419
+ return_url: string;
1420
+ };
1421
+ export type PmtCustomer = {
1422
+ id: string;
1423
+ updated_at: string;
1424
+ created_at: string;
1425
+ owner_id: string;
1426
+ psp_id: string;
1427
+ };
1428
+ export type PmtPublicSession = {
1429
+ id: string;
1430
+ updated_at: string;
1431
+ created_at: string;
1432
+ owner_id: string;
1433
+ currency: string;
1434
+ psp_account_psp_id: string;
1435
+ entity_id: string;
1436
+ type: string;
1437
+ recipient_id: string;
1438
+ original_amount: number;
1439
+ balance_amount: number;
1440
+ is_consumed: boolean;
1441
+ is_internal_client: boolean;
1442
+ };
1443
+ export type PmtRefund = {
1444
+ id: string;
1445
+ updated_at: string;
1446
+ created_at: string;
1447
+ owner_id: string;
1448
+ psp_id: string;
1449
+ psp_actionable_status: string;
1450
+ requires_action: boolean;
1451
+ next_action_url: string;
1452
+ failure_reason: string;
1453
+ client_secret: string;
1454
+ psp_account_psp_id: string;
1455
+ is_manual: boolean;
1456
+ payment_id: string;
1457
+ reason: string;
1458
+ original_payer_id: string;
1459
+ amount: SInt;
1460
+ };
1461
+ export type PrefClient = {
1462
+ id: string;
1463
+ updated_at: string;
1464
+ created_at: string;
1465
+ owner_id: string;
1466
+ is_default: boolean;
1467
+ };
1468
+ export type PrefCompany = {
1469
+ id: string;
1470
+ updated_at: string;
1471
+ created_at: string;
1472
+ owner_id: string;
1473
+ is_default: boolean;
1474
+ pause_duration_in_minutes: number;
1475
+ lunch_duration_in_minutes: number;
1476
+ work_day_start_hour: number;
1477
+ work_day_end_hour: number;
1478
+ max_work_hours: number;
1479
+ max_transport_hours: number;
1480
+ non_remunerated_transport_hours: number;
1481
+ salary_rate: number;
1482
+ transport_rate: number;
1483
+ vendor_invoice_rate: number;
1484
+ period_offset: number;
1485
+ payment_terms: number;
1486
+ invoice_note: string;
1487
+ estimate_note: string;
1488
+ activation_lead_time_jobs: number;
1489
+ activation_lead_time_locations: number;
1490
+ tax_ids: TaxID[];
1491
+ };
1492
+ export type PrefEmail = {
1493
+ id: string;
1494
+ updated_at: string;
1495
+ created_at: string;
1496
+ owner_id: string;
1497
+ is_default: boolean;
1498
+ toggles: Record<string, boolean>;
1499
+ };
1500
+ export type PrefEmployee = {
1501
+ id: string;
1502
+ updated_at: string;
1503
+ created_at: string;
1504
+ owner_id: string;
1505
+ is_default: boolean;
1506
+ };
1507
+ export type PrefLanguage = {
1508
+ id: string;
1509
+ updated_at: string;
1510
+ created_at: string;
1511
+ owner_id: string;
1512
+ locale: string;
1513
+ is_default: boolean;
1514
+ country: string;
1515
+ language: string;
1516
+ speech_to_text_source_language: string;
1517
+ };
1518
+ export type PrefNotif = {
1519
+ id: string;
1520
+ updated_at: string;
1521
+ created_at: string;
1522
+ owner_id: string;
1523
+ is_default: boolean;
1524
+ toggles: Record<string, boolean>;
1525
+ };
1526
+ export type PrefPayment = {
1527
+ id: string;
1528
+ updated_at: string;
1529
+ created_at: string;
1530
+ owner_id: string;
1531
+ is_default: boolean;
1532
+ main_payment_method_id: string;
1533
+ fees_payment_method_id: string;
1534
+ };
1535
+ export type PrefTutorial = {
1536
+ id: string;
1537
+ updated_at: string;
1538
+ created_at: string;
1539
+ owner_id: string;
1540
+ is_default: boolean;
1541
+ toggles: Record<string, boolean>;
1542
+ };
1543
+ export type PrefVisibility = {
1544
+ id: string;
1545
+ updated_at: string;
1546
+ created_at: string;
1547
+ owner_id: string;
1548
+ is_default: boolean;
1549
+ email: number;
1550
+ phone: number;
1551
+ country: number;
1552
+ state: number;
1553
+ complete_address: number;
1554
+ };
1555
+ export type Quantifier = {
1556
+ id: string;
1557
+ updated_at: string;
1558
+ created_at: string;
1559
+ owner_id: string;
1560
+ is_archived: boolean;
1561
+ name: string;
1562
+ description: string;
1563
+ };
1564
+ export type Route = {
1565
+ id: string;
1566
+ updated_at: string;
1567
+ created_at: string;
1568
+ owner_id: string;
1569
+ employee_ids: string[];
1570
+ utilized_employee_ids: string[];
1571
+ location_ids: string[];
1572
+ utilized_location_ids: string[];
1573
+ client_ids: string[];
1574
+ utilized_client_ids: string[];
1575
+ itinerary: Itinerary;
1576
+ timezone: string;
1577
+ from: Date;
1578
+ to: Date;
1579
+ vehicles: Vehicle[];
1580
+ start_place_id: string;
1581
+ destinations: Destination[];
1582
+ override_itinerary: boolean;
1583
+ consider_traffic: boolean;
1584
+ start_early: boolean;
1585
+ };
1586
+ export type RouteTeam = {
1587
+ id: string;
1588
+ updated_at: string;
1589
+ created_at: string;
1590
+ owner_id: string;
1591
+ description: string;
1592
+ employee_ids: string[];
1593
+ };
1594
+ export type Signal = {
1595
+ id: string;
1596
+ updated_at: string;
1597
+ created_at: string;
1598
+ owner_id: string;
1599
+ };
1600
+ export type SMS = {
1601
+ num_sender: string;
1602
+ num_receiver: string;
1603
+ body: string;
1604
+ };
1605
+ export type Summary = {
1606
+ id: string;
1607
+ updated_at: string;
1608
+ created_at: string;
1609
+ owner_id: string;
1610
+ timezone: string;
1611
+ period_index: number;
1612
+ period: number;
1613
+ period_year: number;
1614
+ punched_days: number[];
1615
+ start_date: Date;
1616
+ end_date: Date;
1617
+ employer_id: string;
1618
+ global_record: GlobalRecord;
1619
+ location_records: LocationRecord[];
1620
+ day_records: DayRecord[];
1621
+ };
1622
+ export type Tag = {
1623
+ id: string;
1624
+ updated_at: string;
1625
+ created_at: string;
1626
+ owner_id: string;
1627
+ v: string;
1628
+ };
1629
+ export type Tax = {
1630
+ id: string;
1631
+ updated_at: string;
1632
+ created_at: string;
1633
+ owner_id: string;
1634
+ is_archived: boolean;
1635
+ name: string;
1636
+ description: string;
1637
+ rate: number;
1638
+ };
1639
+ export type TmpBillNumber = {
1640
+ id: string;
1641
+ updated_at: string;
1642
+ created_at: string;
1643
+ owner_id: string;
1644
+ v: number;
1645
+ };
1646
+ export type TmpPhone = {
1647
+ id: string;
1648
+ updated_at: string;
1649
+ created_at: string;
1650
+ uid: string;
1651
+ num: string;
1652
+ code: string;
1653
+ };
1654
+ export type TmpUsername = {
1655
+ id: string;
1656
+ updated_at: string;
1657
+ created_at: string;
1658
+ uid: string;
1659
+ username: string;
1660
+ };
1661
+ export type Tracking = {
1662
+ id: string;
1663
+ updated_at: string;
1664
+ created_at: string;
1665
+ owner_id: string;
1666
+ lat: number;
1667
+ lon: number;
1668
+ route_id: string;
1669
+ vehicle_id: string;
1670
+ employee_id: string;
1671
+ timestamp: Date;
1672
+ };
1673
+ export type User = {
1674
+ id: string;
1675
+ updated_at: string;
1676
+ created_at: string;
1677
+ full_name: string;
1678
+ uid: string;
1679
+ email: string;
1680
+ is_email_verified: boolean;
1681
+ is_firebase_disabled: boolean;
1682
+ address_timezone: string;
1683
+ lat: number;
1684
+ lon: number;
1685
+ street: string;
1686
+ city: string;
1687
+ state: string;
1688
+ postal_code: string;
1689
+ country: string;
1690
+ formatted_address: string;
1691
+ place_name: string;
1692
+ place_id: string;
1693
+ username: string;
1694
+ first_name: string;
1695
+ last_name: string;
1696
+ phone: string;
1697
+ company_name: string;
1698
+ user_type: number;
1699
+ user_type_switch: number;
1700
+ privacy: Privacy;
1701
+ picture_id: string;
1702
+ qr_id: string;
1703
+ ExternalOwner: Owner;
1704
+ };
1705
+ export type VendorInvoice = {
1706
+ id: string;
1707
+ updated_at: string;
1708
+ created_at: string;
1709
+ owner_id: string;
1710
+ period_index: number;
1711
+ period: number;
1712
+ period_year: number;
1713
+ is_archived: boolean;
1714
+ utc: string;
1715
+ y: number;
1716
+ m: number;
1717
+ d: number;
1718
+ h: number;
1719
+ min: number;
1720
+ tz: string;
1721
+ timezone: string;
1722
+ taxes: PrintTax[];
1723
+ sub_total: SInt;
1724
+ tax_total: SInt;
1725
+ total: SInt;
1726
+ vendor_id: string;
1727
+ location_id: string;
1728
+ print_description: string;
1729
+ number: string;
1730
+ is_billed: boolean;
1731
+ is_estimate: boolean;
1732
+ is_internal_vendor: boolean;
1733
+ };
1734
+ export type Warehouse = {
1735
+ id: string;
1736
+ updated_at: string;
1737
+ created_at: string;
1738
+ owner_id: string;
1739
+ address_timezone: string;
1740
+ lat: number;
1741
+ lon: number;
1742
+ street: string;
1743
+ city: string;
1744
+ state: string;
1745
+ postal_code: string;
1746
+ country: string;
1747
+ formatted_address: string;
1748
+ place_name: string;
1749
+ place_id: string;
1750
+ is_archived: boolean;
1751
+ name: string;
1752
+ };
1753
+ export type WeekSheet = {
1754
+ id: string;
1755
+ updated_at: string;
1756
+ created_at: string;
1757
+ owner_id: string;
1758
+ is_archived: boolean;
1759
+ timezone: string;
1760
+ period_index: number;
1761
+ period: number;
1762
+ period_year: number;
1763
+ punched_days: number[];
1764
+ sheets: DaySheet[];
1765
+ start_date: Date;
1766
+ end_date: Date;
1767
+ employer_id: string;
1768
+ };
1769
+ export type AccountLock = {
1770
+ id: string;
1771
+ updated_at: string;
1772
+ created_at: string;
1773
+ owner_id: string;
1774
+ r: string;
1775
+ };
1776
+ export type InActivation = {
1777
+ lead_time_in_hours: number;
1778
+ is_active: boolean;
1779
+ auto_start: boolean;
1780
+ };
1781
+ export type InAddress = {
1782
+ lat: number;
1783
+ lon: number;
1784
+ street: string;
1785
+ city: string;
1786
+ state: string;
1787
+ postal_code: string;
1788
+ country: string;
1789
+ formatted_address: string;
1790
+ place_name: string;
1791
+ place_id: string;
1792
+ };
1793
+ export type InArchive = {
1794
+ is_archived: boolean;
1795
+ };
1796
+ export type InCommon = {
1797
+ id: string;
1798
+ updated_at: string;
1799
+ created_at: string;
1800
+ };
1801
+ export type InCurrency = {
1802
+ currency: string;
1803
+ };
1804
+ export type InDate = {
1805
+ y: number;
1806
+ m: number;
1807
+ d: number;
1808
+ h: number;
1809
+ min: number;
1810
+ tz: string;
1811
+ };
1812
+ export type InDefaultV = {
1813
+ is_default: boolean;
1814
+ };
1815
+ export type InFolder = {
1816
+ folder_name: string;
1817
+ folder_description: string;
1818
+ };
1819
+ export type InLatLon = {
1820
+ lat: number;
1821
+ lon: number;
1822
+ };
1823
+ export type InOwner = {
1824
+ owner_id: string;
1825
+ };
1826
+ export type InPeriod = {
1827
+ period: number;
1828
+ period_year: number;
1829
+ };
1830
+ export type InPeriods = {
1831
+ periods: Period[];
1832
+ };
1833
+ export type InPlotEmbedding = {
1834
+ text: string;
1835
+ file: string;
1836
+ file_url: string;
1837
+ mime: string;
1838
+ };
1839
+ export type InSFloat = {
1840
+ raw: number;
1841
+ text: string;
1842
+ };
1843
+ export type InSInt = {
1844
+ raw: number;
1845
+ text: string;
1846
+ };
1847
+ export type InTimezone = {
1848
+ timezone: string;
1849
+ };
1850
+ export type InTok = {
1851
+ token: string;
1852
+ };
1853
+ export type Activation = {
1854
+ lead_time_in_hours: number;
1855
+ is_active: boolean;
1856
+ auto_start: boolean;
1857
+ };
1858
+ export type Address = {
1859
+ address_timezone: string;
1860
+ lat: number;
1861
+ lon: number;
1862
+ street: string;
1863
+ city: string;
1864
+ state: string;
1865
+ postal_code: string;
1866
+ country: string;
1867
+ formatted_address: string;
1868
+ place_name: string;
1869
+ place_id: string;
1870
+ };
1871
+ export type Archive = {
1872
+ is_archived: boolean;
1873
+ };
1874
+ export type Common = {
1875
+ id: string;
1876
+ updated_at: string;
1877
+ created_at: string;
1878
+ };
1879
+ export type Currency = {
1880
+ currency: string;
1881
+ };
1882
+ export type Date = {
1883
+ utc: string;
1884
+ y: number;
1885
+ m: number;
1886
+ d: number;
1887
+ h: number;
1888
+ min: number;
1889
+ tz: string;
1890
+ };
1891
+ export type DefaultV = {
1892
+ is_default: boolean;
1893
+ };
1894
+ export type Folder = {
1895
+ folder_name: string;
1896
+ folder_description: string;
1897
+ };
1898
+ export type LatLon = {
1899
+ lat: number;
1900
+ lon: number;
1901
+ };
1902
+ export type Owner = {
1903
+ owner_id: string;
1904
+ };
1905
+ export type Period = {
1906
+ period_index: number;
1907
+ period: number;
1908
+ period_year: number;
1909
+ };
1910
+ export type Periods = {
1911
+ period_indexes: number[];
1912
+ periods: Period[];
1913
+ };
1914
+ export type PlotEmbedding = {
1915
+ embedding_version: string;
1916
+ dim: number;
1917
+ modality: number;
1918
+ plot_embedding: number[];
1919
+ text: string;
1920
+ file: string;
1921
+ file_url: string;
1922
+ mime: string;
1923
+ };
1924
+ export type SFloat = {
1925
+ raw: number;
1926
+ text: string;
1927
+ };
1928
+ export type SInt = {
1929
+ raw: number;
1930
+ text: string;
1931
+ };
1932
+ export type Timezone = {
1933
+ timezone: string;
1934
+ };
1935
+ export type Tok = {
1936
+ token: string;
1937
+ };
1938
+ export type AdjustmentRule = {
1939
+ type: string;
1940
+ rate: number;
1941
+ unit_amount: number;
1942
+ is_accrued: boolean;
1943
+ };
1944
+ export type AppliedAdjustment = {
1945
+ total: number;
1946
+ name: string;
1947
+ adjustment_id: string;
1948
+ folder_id: string;
1949
+ is_sub_contribution: boolean;
1950
+ };
1951
+ export type SalaryEstimate = {
1952
+ employee_ids: string[];
1953
+ daily_work_hours: number;
1954
+ daily_transport_hours: number;
1955
+ days_per_week: number;
1956
+ };
1957
+ export type PrintEntry = {
1958
+ item_name: string;
1959
+ details: string;
1960
+ quantifier_name: string;
1961
+ quantity: number;
1962
+ unit_price: number;
1963
+ sub_total: number;
1964
+ tax_total: number;
1965
+ total: number;
1966
+ applied_taxes: string[];
1967
+ };
1968
+ export type Total = {
1969
+ taxes: PrintTax[];
1970
+ sub_total: SInt;
1971
+ tax_total: SInt;
1972
+ total: SInt;
1973
+ };
1974
+ export type WarehouseQuantity = {
1975
+ warehouse_id: string;
1976
+ quantity: number;
1977
+ };
1978
+ export type PrintTax = {
1979
+ tax_id: string;
1980
+ tax_total: number;
1981
+ tax_name: string;
1982
+ };
1983
+ export type Destination = {
1984
+ tags: string[];
1985
+ location_id: string;
1986
+ client_id: string;
1987
+ place_id: string;
1988
+ duration_in_minutes: number;
1989
+ use_time_window: boolean;
1990
+ time_window_start_hour_in_minutes: number;
1991
+ time_window_end_hour_in_minutes: number;
1992
+ };
1993
+ export type Itinerary = {
1994
+ routes: VehicleRoute[];
1995
+ total_distance_in_meters: number;
1996
+ total_duration_in_seconds: number;
1997
+ utilized_location_ids: string[];
1998
+ unutilized_location_ids: string[];
1999
+ unutilized_employee_ids: string[];
2000
+ };
2001
+ export type Vehicle = {
2002
+ vehicle_id: string;
2003
+ tags: string[];
2004
+ employee_ids: string[];
2005
+ };
2006
+ export type VehicleRoute = {
2007
+ employee_ids: string[];
2008
+ encoded_polyline: string;
2009
+ stops: Stop[];
2010
+ vehicle_id: string;
2011
+ route_distance_in_meters: number;
2012
+ route_duration_in_seconds: number;
2013
+ route_start: Date;
2014
+ route_end: Date;
2015
+ problems: string[];
2016
+ is_omitted: boolean;
2017
+ };
2018
+ export type FeedObject = {
2019
+ signed_url: string;
2020
+ mime_prefix: string;
2021
+ embedding: PlotEmbedding;
2022
+ };
2023
+ export type FeedPostSelf = {
2024
+ reaction_id: string;
2025
+ reply_id: string;
2026
+ reference_id: string;
2027
+ favorite_id: string;
2028
+ };
2029
+ export type FeedPostStat = {
2030
+ count_per_reaction: {
2031
+ [key: number]: number;
2032
+ };
2033
+ count_total_reactions: number;
2034
+ count_views: number;
2035
+ count_replies: number;
2036
+ count_reposts: number;
2037
+ engagement_percentage: number;
2038
+ };
2039
+ export type Privacy = {
2040
+ is_searchable: boolean;
2041
+ is_messageable: boolean;
2042
+ };
2043
+ export type DaySheet = {
2044
+ punches: Punch[];
2045
+ week_day: number;
2046
+ };
2047
+ export type DayRecord = {
2048
+ week_day: number;
2049
+ location_records: LocationRecord[];
2050
+ };
2051
+ export type GlobalRecord = {
2052
+ work_hours: number;
2053
+ ride_hours: number;
2054
+ accumulated_work_hours: number;
2055
+ accumulated_transport_hours: number;
2056
+ };
2057
+ export type LocationRecord = {
2058
+ work_hours: number;
2059
+ ride_hours: number;
2060
+ location_id: string;
2061
+ };
2062
+ export type Punch = {
2063
+ punch_in_time: Date;
2064
+ punch_out_time: Date;
2065
+ rides: Ride[];
2066
+ punch_status: string;
2067
+ work_hours: number;
2068
+ ride_hours: number;
2069
+ owner_id: string;
2070
+ timezone: string;
2071
+ punch_type: string;
2072
+ punch_mode: string;
2073
+ location_id: string;
2074
+ employer_id: string;
2075
+ total_pause_minutes: number;
2076
+ total_meal_minutes: number;
2077
+ is_explicit: boolean;
2078
+ explicit_date: Date;
2079
+ };
2080
+ export type AdjustmentRef = {
2081
+ deduction_ids: string[];
2082
+ contribution_ids: string[];
2083
+ };
2084
+ export type Availables = {
2085
+ locations: string[];
2086
+ employees: string[];
2087
+ };
2088
+ export type Assignations = {
2089
+ locations: Assignation[];
2090
+ employees: Assignation[];
2091
+ };
2092
+ export type Assignation = {
2093
+ entity_ids: string[];
2094
+ route_id: string;
2095
+ };
2096
+ export type ClientAvailabilities = {
2097
+ location_id: string;
2098
+ availabilities: ClientAvailability[];
2099
+ };
2100
+ export type UserContact = {
2101
+ phone: string;
2102
+ email: string;
2103
+ };
2104
+ export type IsPayrolled = {
2105
+ is_payrolled: boolean;
2106
+ };
2107
+ export type PayRule = {
2108
+ type: string;
2109
+ work_normal_rate: number;
2110
+ work_overtime_rate: number;
2111
+ transport_normal_rate: number;
2112
+ transport_overtime_rate: number;
2113
+ default_fixed_hours: number;
2114
+ };
2115
+ export type Chargeable = {
2116
+ name: string;
2117
+ price: number;
2118
+ };
2119
+ export type ManualPayment = {
2120
+ is_manual: boolean;
2121
+ };
2122
+ export type ExternalPayment = {
2123
+ is_external: boolean;
2124
+ external_payer_name: string;
2125
+ external_payer_email: string;
2126
+ external_customer_id: string;
2127
+ pmt_public_session_id: string;
2128
+ };
2129
+ export type PSPAccount = {
2130
+ psp_account_psp_id: string;
2131
+ };
2132
+ export type PSPConfirmable = {
2133
+ psp_confirm: boolean;
2134
+ };
2135
+ export type PSPExpirable = {
2136
+ expiry_status: string;
2137
+ };
2138
+ export type PSPActionable = {
2139
+ psp_actionable_status: string;
2140
+ requires_action: boolean;
2141
+ next_action_url: string;
2142
+ failure_reason: string;
2143
+ client_secret: string;
2144
+ };
2145
+ export type PSPDeactivatable = {
2146
+ psp_deactivate: boolean;
2147
+ };
2148
+ export type PmtFee = {
2149
+ fee_amount: SInt;
2150
+ fee_tax_amount: SInt;
2151
+ fee_total_amount: SInt;
2152
+ fee_tax_breakdown: TaxLine[];
2153
+ fee_tax_calculation_psp_id: string;
2154
+ };
2155
+ export type PmtTax = {
2156
+ tax_amount: SInt;
2157
+ tax_breakdown: TaxLine[];
2158
+ tax_calculation_psp_id: string;
2159
+ };
2160
+ export type FeedPState = {
2161
+ replies: Record<string, object>;
2162
+ reactions: Record<string, object>;
2163
+ references: Record<string, object>;
2164
+ };
2165
+ export type Ride = {
2166
+ is_active: boolean;
2167
+ start_time: Date;
2168
+ end_time: Date;
2169
+ };
2170
+ export type TimeRecord = {
2171
+ work_hours: number;
2172
+ ride_hours: number;
2173
+ };
2174
+ export type SummaryLite = {
2175
+ work_hours: number;
2176
+ ride_hours: number;
2177
+ accumulated_work_hours: number;
2178
+ accumulated_transport_hours: number;
2179
+ period_index: number;
2180
+ period: number;
2181
+ period_year: number;
2182
+ source_summary_id: string;
2183
+ };
2184
+ export type YearSpan = {
2185
+ start: Date;
2186
+ end: Date;
2187
+ };
2188
+ export type Stop = {
2189
+ arrival: Date;
2190
+ location_id: string;
2191
+ };
2192
+ export type ChatRoomID = {
2193
+ chat_room_id: string;
2194
+ };
2195
+ export type Dt = {
2196
+ y: number;
2197
+ m: number;
2198
+ d: number;
2199
+ h: number;
2200
+ min: number;
2201
+ tz: string;
2202
+ };
2203
+ export type TaxID = {
2204
+ type: string;
2205
+ value: string;
2206
+ };
2207
+ export type TaxLine = {
2208
+ name: string;
2209
+ amount: number;
2210
+ };
2211
+ export type VerifyAppleOptions = {
2212
+ transaction_id: string;
2213
+ };
2214
+ export type VerifyGoogleOptions = {
2215
+ product_id: string;
2216
+ purchase_token: string;
2217
+ kind: string;
2218
+ };
2219
+ export type PrintfulRecipient = {
2220
+ name?: string;
2221
+ company?: string;
2222
+ address1?: string;
2223
+ address2?: string;
2224
+ city?: string;
2225
+ state_code?: string;
2226
+ state_name?: string;
2227
+ country_code: string;
2228
+ country_name?: string;
2229
+ zip?: string;
2230
+ phone?: string;
2231
+ email?: string;
2232
+ tax_number?: string;
2233
+ };
2234
+ export type PrintfulRetailCosts = {
2235
+ calculation_status?: string;
2236
+ currency?: string;
2237
+ subtotal?: string;
2238
+ discount?: string;
2239
+ shipping?: string;
2240
+ vat?: string;
2241
+ tax?: string;
2242
+ total?: string;
2243
+ };
2244
+ export type PrintfulCustomization = {
2245
+ gift?: PrintfulGift;
2246
+ packing_slip?: PrintfulPackingSlip;
2247
+ };
2248
+ export type PrintfulLink = {
2249
+ href?: string;
2250
+ };
2251
+ export type PrintfulGift = {
2252
+ subject?: string;
2253
+ message?: string;
2254
+ };
2255
+ export type PrintfulPackingSlip = {
2256
+ email?: string;
2257
+ phone?: string;
2258
+ message?: string;
2259
+ logo_url?: string;
2260
+ store_name?: string;
2261
+ custom_order_id?: string;
2262
+ };
2263
+ export type PrintfulOptionValue = {
2264
+ name: string;
2265
+ value: unknown;
2266
+ };
2267
+ export type RPPrintfulShippingRate = {
2268
+ shipping: string;
2269
+ shipping_method_name: string;
2270
+ rate: string;
2271
+ currency: string;
2272
+ min_delivery_days: number;
2273
+ max_delivery_days: number;
2274
+ min_delivery_date: string;
2275
+ max_delivery_date: string;
2276
+ shipments: RPPrintfulRateShipment[];
2277
+ };
2278
+ export type RPPrintfulRateShipment = {
2279
+ departure_country: string;
2280
+ shipment_items: RPPrintfulRateShipmentItem[];
2281
+ customs_fees_possible: boolean;
2282
+ };
2283
+ export type RPPrintfulOrderCosts = {
2284
+ calculation_status: string;
2285
+ currency: string;
2286
+ subtotal: string;
2287
+ discount: string;
2288
+ shipping: string;
2289
+ digitization: string;
2290
+ additional_fee: string;
2291
+ fulfillment_fee: string;
2292
+ retail_delivery_fee: string;
2293
+ vat: string;
2294
+ tax: string;
2295
+ total: string;
2296
+ };
2297
+ export type RPPrintfulOrderItem = {
2298
+ id: number;
2299
+ type: string;
2300
+ source: string;
2301
+ catalog_variant_id: number;
2302
+ external_id: string;
2303
+ quantity: number;
2304
+ retail_price: string;
2305
+ price: string;
2306
+ currency: string;
2307
+ retail_currency: string;
2308
+ name: string;
2309
+ orientation: string;
2310
+ placements: string[];
2311
+ product_options: PrintfulOptionValue[];
2312
+ _links: {
2313
+ [key: string]: PrintfulLink;
2314
+ };
2315
+ };
2316
+ export type RPPrintfulShipment = {
2317
+ id: number;
2318
+ order_id: number;
2319
+ status: string;
2320
+ tracking_url: string;
2321
+ tracking_number: string;
2322
+ carrier: string;
2323
+ service: string;
2324
+ created_at: string;
2325
+ updated_at: string;
2326
+ };
2327
+ export type RPPrintfulRateShipmentItem = {
2328
+ catalog_variant_id: number;
2329
+ quantity: number;
2330
+ };
2331
+ export type PLFeedPull = {
2332
+ contact_ids: string[];
2333
+ session_token: string;
2334
+ is_new_session: boolean;
2335
+ pull_type: number;
2336
+ entity_id: string;
2337
+ research: string;
2338
+ };
2339
+ export type PLFeedRestrict = {
2340
+ new_visibility: number;
2341
+ };
2342
+ export type PLMarketplacePull = {
2343
+ session_token: string;
2344
+ is_new_session: boolean;
2345
+ pull_type: number;
2346
+ entity_id: string;
2347
+ research: string;
2348
+ research_user_type: number;
2349
+ };
2350
+ export type PLTimesheetsSync = {
2351
+ from_id: string;
2352
+ to_ids: string[];
2353
+ days: number[];
2354
+ };
2355
+ export type PLTimesheetsApprove = {
2356
+ ids: string[];
2357
+ employer_id: string;
2358
+ };
2359
+ export type PLCallsMintVideoToken = {
2360
+ room_id: string;
2361
+ };
2362
+ export type PLContactsGenerateQR = {
2363
+ v: string;
2364
+ red: number;
2365
+ green: number;
2366
+ blue: number;
2367
+ };
2368
+ export type PLChatReact = {
2369
+ chat_id: string;
2370
+ v: string;
2371
+ };
2372
+ export type PLChatEnsure = {
2373
+ members: string[];
2374
+ };
2375
+ export type PLPayrollsGeneratePayrollFromEntities = {
2376
+ AdjustmentRef: AdjustmentRef;
2377
+ work_rate: number;
2378
+ transport_rate: number;
2379
+ currency: string;
2380
+ period_index: number;
2381
+ employee_id: string;
2382
+ ids: string[];
2383
+ date: Dt;
2384
+ };
2385
+ export type PLBillableSetItemQuantity = {
2386
+ item_id: string;
2387
+ warehouse_id: string;
2388
+ quantity: number;
2389
+ };
2390
+ export type PLBillableVendorInvoiceFromBill = {
2391
+ bill_id: string;
2392
+ location_id: string;
2393
+ date: Dt;
2394
+ company_name: string;
2395
+ };
2396
+ export type PLBillableYearSpan = {
2397
+ employer_id: string;
2398
+ year: number;
2399
+ use_offset: boolean;
2400
+ };
2401
+ export type PLBillablePeriodsFromDates = {
2402
+ employer_id: string;
2403
+ start: Dt;
2404
+ end: Dt;
2405
+ };
2406
+ export type PLProcessesSpeechToText = {
2407
+ audio_locale: string;
2408
+ file_uri: string;
2409
+ };
2410
+ export type PLRoutesAvailability = {
2411
+ employee_ids: string[];
2412
+ days_ago: number;
2413
+ date: Dt;
2414
+ };
2415
+ export type PLRoutesDesignation = {
2416
+ employer_id: string;
2417
+ date: Dt;
2418
+ };
2419
+ export type PLUsersUsername = {
2420
+ words: string[];
2421
+ to_validate: string;
2422
+ };
2423
+ export type PLUsersSendCode = {
2424
+ phone: string;
2425
+ };
2426
+ export type PLUsersVerifyCode = {
2427
+ phone: string;
2428
+ code: string;
2429
+ };
2430
+ export type PLUsersContactList = {
2431
+ contacts: UserContact[];
2432
+ };
2433
+ export type PLUsersForgotPassword = {
2434
+ email: string;
2435
+ };
2436
+ export type PLUsersSignInLink = {
2437
+ email: string;
2438
+ };
2439
+ export type PLUsersResolveUsername = {
2440
+ username: string;
2441
+ };
2442
+ export type PLPaymentsTotalCredits = {
2443
+ owner_id: string;
2444
+ };
2445
+ export type PLPaymentsConsumeCredits = {
2446
+ owner_id: string;
2447
+ op: string;
2448
+ };
2449
+ export type PLPaymentsPurchaseCredits = {
2450
+ src: string;
2451
+ pkg: string;
2452
+ iap_apple: VerifyAppleOptions;
2453
+ iap_google: VerifyGoogleOptions;
2454
+ payer_payment_method_psp_id: string;
2455
+ return_url: string;
2456
+ };
2457
+ export type PLPaymentsBalance = {
2458
+ psp_account_id: string;
2459
+ };
2460
+ export type PLPaymentsPaymentFromPublicSession = {
2461
+ pmt_public_session_id: string;
2462
+ amount: string;
2463
+ payment_method_psp_id: string;
2464
+ payer_email: string;
2465
+ payer_name: string;
2466
+ return_url: string;
2467
+ };
2468
+ export type PLPaymentsOpenPublicSession = {
2469
+ is_direct: boolean;
2470
+ entity_id: string;
2471
+ username: string;
2472
+ type: string;
2473
+ entity_number: string;
2474
+ amount: string;
2475
+ };
2476
+ export type PLFulfillmentsShipmentStatus = {
2477
+ id: string;
2478
+ };
2479
+ export type RPFeedPull = {
2480
+ session_token: string;
2481
+ posts: FeedPost[];
2482
+ reactions: FeedReaction[];
2483
+ };
2484
+ export type RPMarketplacePull = {
2485
+ session_token: string;
2486
+ v: MarketplacePost[];
2487
+ };
2488
+ export type RPBillablePeriodsFromDates = {
2489
+ strings: string[];
2490
+ ints: number[];
2491
+ };
2492
+ export type RPRoutesAvailability = {
2493
+ availables: Availables;
2494
+ assignations: Assignations;
2495
+ client_availabilities: ClientAvailabilities[];
2496
+ };
2497
+ export type RPPaymentsTotalCredits = {
2498
+ total: number;
2499
+ };
2500
+ export type RPPaymentsConsumeCredits = {
2501
+ valid: boolean;
2502
+ balance: number;
2503
+ consumed: number;
2504
+ remaining: number;
2505
+ };
2506
+ export type RPFulfillmentsFulfillCreateAndConfirm = {
2507
+ provider: string;
2508
+ provider_order_id: string;
2509
+ status: string;
2510
+ provider_status: string;
2511
+ };
2512
+ export type RPFulfillmentsFulfillShipmentStatus = {
2513
+ provider: string;
2514
+ provider_order_id: string;
2515
+ provider_status: string;
2516
+ shipment_provider_statuses: string[];
2517
+ tracking_urls: string[];
2518
+ };
2519
+ export type RPFulfillmentsPrintfulShippingRates = {
2520
+ data: RPPrintfulShippingRate[];
2521
+ };
2522
+ export type RPFulfillmentsPrintfulOrder = {
2523
+ id: number;
2524
+ external_id: string;
2525
+ store_id: number;
2526
+ shipping: string;
2527
+ status: string;
2528
+ created_at: string;
2529
+ updated_at: string;
2530
+ recipient: PrintfulRecipient;
2531
+ costs: RPPrintfulOrderCosts;
2532
+ retail_costs: PrintfulRetailCosts;
2533
+ order_items: RPPrintfulOrderItem[];
2534
+ customization: PrintfulCustomization;
2535
+ _links: {
2536
+ [key: string]: PrintfulLink;
2537
+ };
2538
+ };
2539
+ export type RPFulfillmentsPrintfulShipments = {
2540
+ data: RPPrintfulShipment[];
2541
+ };
2542
+ export type RPStorageUpload = {
2543
+ contains_forbidden: boolean;
2544
+ all_forbidden: boolean;
2545
+ };
2546
+ export type OperationResult = {
2547
+ message?: string;
2548
+ id?: string;
2549
+ value?: unknown;
2550
+ };
2551
+ export type SearchResult = {
2552
+ results?: unknown[];
2553
+ total_count?: number;
2554
+ last_page?: number;
2555
+ };
2556
+ export type UpsertResult = {
2557
+ id?: string;
2558
+ inserted?: boolean;
2559
+ };
2560
+ export type AuthorizationResult = {
2561
+ unallowed_records: string[];
2562
+ };
2563
+ export type HTTPErr = {
2564
+ code: number;
2565
+ msg: string;
2566
+ app_err?: WrenchErr;
2567
+ };
2568
+ export type WrenchErr = {
2569
+ msg: string;
2570
+ };