@fabriktor/schema 0.0.49 → 0.0.50

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.
@@ -249,36 +249,29 @@ export type InJob = {
249
249
  h: number;
250
250
  min: number;
251
251
  tz: string;
252
- lead_time_in_hours: number;
253
- is_active: boolean;
254
- auto_start: boolean;
255
- timezone: string;
256
252
  status: string;
253
+ expected_end_date: Date;
257
254
  name: string;
258
255
  description: string;
259
- all_members: string[];
260
256
  current_members: string[];
261
257
  foremen: string[];
262
258
  location_id: string;
263
259
  picture_id: string;
264
- recurrent: boolean;
265
260
  };
266
261
  export type InJobProgram = {
267
- timezone: string;
268
262
  job_name: string;
269
263
  job_description: string;
270
264
  job_start_date: Date;
265
+ job_expected_duration_in_minutes: number;
271
266
  job_current_members: string[];
272
267
  job_foremen: string[];
273
268
  job_location_id: string;
274
269
  job_pic_id: string;
275
- finished: boolean;
276
270
  recurrence_rate: number;
277
271
  recurrence_type: string;
278
272
  recurrence_end_type: string;
279
273
  occurrences_to_end: number;
280
274
  recurrence_end_date: Date;
281
- current_occurrences: number;
282
275
  };
283
276
  export type InLaborRate = {
284
277
  is_archived: boolean;
@@ -286,16 +279,7 @@ export type InLaborRate = {
286
279
  rate: number;
287
280
  };
288
281
  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
- lead_time_in_hours: number;
297
- is_active: boolean;
298
- auto_start: boolean;
282
+ is_archived: boolean;
299
283
  address_timezone: string;
300
284
  lat: number;
301
285
  lon: number;
@@ -307,12 +291,8 @@ export type InLocation = {
307
291
  formatted_address: string;
308
292
  place_name: string;
309
293
  place_id: string;
310
- status: string;
311
- end_date: Date;
312
294
  name: string;
313
- type: string;
314
295
  description: string;
315
- all_members: string[];
316
296
  current_members: string[];
317
297
  picture_id: string;
318
298
  client_id: string;
@@ -486,8 +466,6 @@ export type InPrefCompany = {
486
466
  payment_terms: number;
487
467
  invoice_note: string;
488
468
  estimate_note: string;
489
- activation_lead_time_jobs: number;
490
- activation_lead_time_locations: number;
491
469
  tax_ids: TaxID[];
492
470
  };
493
471
  export type InPrefEmail = {
@@ -1075,6 +1053,12 @@ export type Job = {
1075
1053
  updated_at: string;
1076
1054
  created_at: string;
1077
1055
  owner_id: string;
1056
+ timezone: string;
1057
+ all_members: string[];
1058
+ recurrent: boolean;
1059
+ started_at: string;
1060
+ completed_at: string;
1061
+ cancelled_at: string;
1078
1062
  utc: string;
1079
1063
  y: number;
1080
1064
  m: number;
@@ -1082,19 +1066,14 @@ export type Job = {
1082
1066
  h: number;
1083
1067
  min: number;
1084
1068
  tz: string;
1085
- lead_time_in_hours: number;
1086
- is_active: boolean;
1087
- auto_start: boolean;
1088
- timezone: string;
1089
1069
  status: string;
1070
+ expected_end_date: Date;
1090
1071
  name: string;
1091
1072
  description: string;
1092
- all_members: string[];
1093
1073
  current_members: string[];
1094
1074
  foremen: string[];
1095
1075
  location_id: string;
1096
1076
  picture_id: string;
1097
- recurrent: boolean;
1098
1077
  };
1099
1078
  export type JobProgram = {
1100
1079
  id: string;
@@ -1102,20 +1081,21 @@ export type JobProgram = {
1102
1081
  created_at: string;
1103
1082
  owner_id: string;
1104
1083
  timezone: string;
1084
+ finished: boolean;
1085
+ current_occurrences: number;
1105
1086
  job_name: string;
1106
1087
  job_description: string;
1107
1088
  job_start_date: Date;
1089
+ job_expected_duration_in_minutes: number;
1108
1090
  job_current_members: string[];
1109
1091
  job_foremen: string[];
1110
1092
  job_location_id: string;
1111
1093
  job_pic_id: string;
1112
- finished: boolean;
1113
1094
  recurrence_rate: number;
1114
1095
  recurrence_type: string;
1115
1096
  recurrence_end_type: string;
1116
1097
  occurrences_to_end: number;
1117
1098
  recurrence_end_date: Date;
1118
- current_occurrences: number;
1119
1099
  };
1120
1100
  export type LaborRate = {
1121
1101
  id: string;
@@ -1132,16 +1112,8 @@ export type Location = {
1132
1112
  created_at: string;
1133
1113
  owner_id: string;
1134
1114
  timezone: string;
1135
- utc: string;
1136
- y: number;
1137
- m: number;
1138
- d: number;
1139
- h: number;
1140
- min: number;
1141
- tz: string;
1142
- lead_time_in_hours: number;
1143
- is_active: boolean;
1144
- auto_start: boolean;
1115
+ all_members: string[];
1116
+ is_archived: boolean;
1145
1117
  address_timezone: string;
1146
1118
  lat: number;
1147
1119
  lon: number;
@@ -1153,12 +1125,8 @@ export type Location = {
1153
1125
  formatted_address: string;
1154
1126
  place_name: string;
1155
1127
  place_id: string;
1156
- status: string;
1157
- end_date: Date;
1158
1128
  name: string;
1159
- type: string;
1160
1129
  description: string;
1161
- all_members: string[];
1162
1130
  current_members: string[];
1163
1131
  picture_id: string;
1164
1132
  client_id: string;
@@ -1483,8 +1451,6 @@ export type PrefCompany = {
1483
1451
  payment_terms: number;
1484
1452
  invoice_note: string;
1485
1453
  estimate_note: string;
1486
- activation_lead_time_jobs: number;
1487
- activation_lead_time_locations: number;
1488
1454
  tax_ids: TaxID[];
1489
1455
  };
1490
1456
  export type PrefEmail = {
@@ -1772,11 +1738,6 @@ export type AccountLock = {
1772
1738
  owner_id: string;
1773
1739
  r: string;
1774
1740
  };
1775
- export type InActivation = {
1776
- lead_time_in_hours: number;
1777
- is_active: boolean;
1778
- auto_start: boolean;
1779
- };
1780
1741
  export type InAddress = {
1781
1742
  lat: number;
1782
1743
  lon: number;
@@ -1849,11 +1810,6 @@ export type InTimezone = {
1849
1810
  export type InTok = {
1850
1811
  token: string;
1851
1812
  };
1852
- export type Activation = {
1853
- lead_time_in_hours: number;
1854
- is_active: boolean;
1855
- auto_start: boolean;
1856
- };
1857
1813
  export type Address = {
1858
1814
  address_timezone: string;
1859
1815
  lat: number;
@@ -2191,10 +2147,6 @@ export type Stop = {
2191
2147
  export type ChatRoomID = {
2192
2148
  chat_room_id: string;
2193
2149
  };
2194
- export type Overlap = {
2195
- member_id: string;
2196
- locations: Location[];
2197
- };
2198
2150
  export type ID = string;
2199
2151
  export type Dt = {
2200
2152
  y: number;
@@ -2469,16 +2421,6 @@ export type PLNotificationsRelay = {
2469
2421
  url_custom_sound: string;
2470
2422
  notif_k: string;
2471
2423
  };
2472
- export type PLJobsFindOverlaps = {
2473
- lat: number;
2474
- lon: number;
2475
- start_date: Dt;
2476
- end_date: Dt;
2477
- source_id: string;
2478
- exclude_pending: boolean;
2479
- exclude_started: boolean;
2480
- exclude_terminated: boolean;
2481
- };
2482
2424
  export type PLStorageDownload = {
2483
2425
  owner_id: string;
2484
2426
  mime_prefix: string;
@@ -2620,10 +2562,6 @@ export type RPPrintfulRateShipmentItem = {
2620
2562
  export type RPProcessesSpeechToText = {
2621
2563
  transcriptions: SpeechToTextTranscription[];
2622
2564
  };
2623
- export type RPJobsFindOverlaps = {
2624
- overlaps: Overlap[];
2625
- locations: Location[];
2626
- };
2627
2565
  export type OperationResult = {
2628
2566
  message?: string;
2629
2567
  id?: string;
@@ -2773,8 +2711,6 @@ export declare const PurchaseKindProduct = "product";
2773
2711
  export declare const PurchaseKindSubscription = "subscription";
2774
2712
  export declare const IDKey = "id";
2775
2713
  export declare const OwnerIDKey = "owner_id";
2776
- export declare const LocationTypeScheduled = "scheduled";
2777
- export declare const LocationTypePersistent = "persistent";
2778
2714
  export declare const ExtImageJPEG = ".jpg";
2779
2715
  export declare const ExtImagePNG = ".png";
2780
2716
  export declare const ExtVideoMP4 = ".mp4";
@@ -2812,10 +2748,8 @@ export declare const PathFilehubWeb = "web";
2812
2748
  export declare const PathFilehubApp = "app";
2813
2749
  export declare const PathFilehubMedia = "media";
2814
2750
  export declare const PathFulfillmentsStatus = "status";
2815
- export declare const PathJobsActivate = "activate";
2816
2751
  export declare const PathJobsToJobs = "to_jobs";
2817
2752
  export declare const PathJobsImmediate = "immediate";
2818
- export declare const PathJobsOverlaps = "overlaps";
2819
2753
  export declare const PathJobsMine = "mine";
2820
2754
  export declare const PathNotificationsRelay = "relay";
2821
2755
  export declare const PathNotificationsSend = "send";
@@ -3002,7 +2936,8 @@ export declare const PostTypeEmployment = "employment";
3002
2936
  export declare const PostTypeJob = "job";
3003
2937
  export declare const Pending = "pending";
3004
2938
  export declare const Started = "started";
3005
- export declare const Terminated = "terminated";
2939
+ export declare const Completed = "completed";
2940
+ export declare const Cancelled = "cancelled";
3006
2941
  export declare const HTTPMethodPost = "POST";
3007
2942
  export declare const HTTPMethodPatch = "PATCH";
3008
2943
  export declare const HTTPMethodDelete = "DELETE";
@@ -123,8 +123,6 @@ export const PurchaseKindProduct = "product";
123
123
  export const PurchaseKindSubscription = "subscription";
124
124
  export const IDKey = "id";
125
125
  export const OwnerIDKey = "owner_id";
126
- export const LocationTypeScheduled = "scheduled";
127
- export const LocationTypePersistent = "persistent";
128
126
  export const ExtImageJPEG = ".jpg";
129
127
  export const ExtImagePNG = ".png";
130
128
  export const ExtVideoMP4 = ".mp4";
@@ -162,10 +160,8 @@ export const PathFilehubWeb = "web";
162
160
  export const PathFilehubApp = "app";
163
161
  export const PathFilehubMedia = "media";
164
162
  export const PathFulfillmentsStatus = "status";
165
- export const PathJobsActivate = "activate";
166
163
  export const PathJobsToJobs = "to_jobs";
167
164
  export const PathJobsImmediate = "immediate";
168
- export const PathJobsOverlaps = "overlaps";
169
165
  export const PathJobsMine = "mine";
170
166
  export const PathNotificationsRelay = "relay";
171
167
  export const PathNotificationsSend = "send";
@@ -352,7 +348,8 @@ export const PostTypeEmployment = "employment";
352
348
  export const PostTypeJob = "job";
353
349
  export const Pending = "pending";
354
350
  export const Started = "started";
355
- export const Terminated = "terminated";
351
+ export const Completed = "completed";
352
+ export const Cancelled = "cancelled";
356
353
  export const HTTPMethodPost = "POST";
357
354
  export const HTTPMethodPatch = "PATCH";
358
355
  export const HTTPMethodDelete = "DELETE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/schema",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {